Skip to content

Releases

Trajectory 0.6.5-beta.4

Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 04 Dec 08:34
1343215

Trajectory 0.6.5-beta.4

This beta release expands Skill Scanner coverage across Claude Code and Codex, adds Gemini 4 model pricing, restores the live running-agents gauge, enriches turn timing and attribution metrics, and reduces authentication and replay overhead.

Highlights

Broader Skill Scanner coverage for Claude Code and Codex

When Skill Scanner is enabled, Claude Code now inspects skills located in folders passed with --add-dir as well as skills imported from CLAUDE.md via @path. When an imported skill is blocked, the next prompt is blocked with recovery steps and subsequent prompts in that session run with a warning to the model; a first prompt sent before Claude reports the import is not checked. For Codex, Skill Scanner now checks skills referenced with $name in prompts and skills read with a plain cat of SKILL.md in observe mode, recording findings without stopping the prompt or command. Personal installs created with the shell installer also enable Skill Scanner in the default security configuration.

Gemini 4 model pricing

Trajectory now reports token costs for Gemini 4 Neon, Gemini 4 Hydrogen, and Gemini 4 Carbon requests from their November 2026 launches, including sessions recorded before this release.

Live running-agents gauge and richer turn metrics

trajectory serve again reports trajectory.ops.agent.running every minute with the count of active sessions and sub-agents per coding agent (agent_kind:session and agent_kind:subagent, and 0 when idle). Completed turns now also publish measured model time, owner-scoped tool time, and first-response-byte latency when available, while session, turn, and hook latency metrics include bounded application launch attribution and active reader client context.

Custom CLI tool lists for markers and Codex hook diagnostics

Markers using normalizer: cli_tool can now declare additional command-line tools in cli_tools without waiting for a Trajectory update, and shell tool-use metrics can tag calls with the matched command-line tool. For Codex users, trajectory doctor now reports when Codex does not trust or execute Trajectory's plugin hooks and shows the command to resolve it:

trajectory doctor

Fixes

  • AI Gateway Pup authentication now caches tokens by JWT expiry with backoff for near-expiry tokens, avoids spawning pup when no ai-gateway session exists on disk, and backs off repeated missing sign-in checks until local authentication state changes.
  • Pi terminal and print modes are classified cleanly without guessing SDK or RPC host surfaces, and published turn identity is preserved when Pi surface metadata arrives later.
  • Replaying an unchanged local session no longer deletes and recreates its evaluated markers, reducing sync traffic for Reader V2 clients.

Privacy and safety

  • Skill Scanner inspects Claude Code --add-dir folders and CLAUDE.md @path imports, blocks the next prompt with recovery guidance after a blocked import, and observes Codex $name and SKILL.md reads without disrupting the session.
  • Active HTTP reader client identity is recorded only after successful authorization, remote reader identity starts after registration, and versioned local buffers keep new attribution tags isolated from older processes.

Trajectory 0.6.5-beta.3

Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 02 Dec 20:42
171acb9

Trajectory 0.6.5-beta.3

This beta release adds Datadog Application Key delivery for managed macOS Jamf Pro deployments, extends Agent Security Skill Scanner coverage to Claude Code --plugin-dir skill folders, reports Skill Scanner coverage gaps for directories added at runtime with /add-dir, and fixes macOS Cursor detection for Grok Build.app.

Highlights

Datadog Application Key delivery through Jamf Pro

Managed deployment intents now accept an optional destinations[].app_key_ref field so Jamf Pro policies can deliver Datadog Application Keys (such as dd_app_key for trajectory-security) into the signed-in user's login keychain alongside destination API keys. This lets administrators provision both API and Application Keys through a single managed Jamf kit instead of maintaining a separate keychain script.

Claude Code --plugin-dir Skill Scanner coverage and /add-dir gap reporting

Agent Security Skill Scanner now inspects skills from directories passed to Claude Code with --plugin-dir, closing a coverage gap where plugin-directory skills were previously unchecked. When a Claude Code session uses /add-dir to attach a directory whose .claude/skills folder is not scanned, Trajectory now records a coverage_gaps entry with reason add_dir_runtime so administrators have visibility into unscanned runtime directories.

Fixes

  • macOS detection now recognizes Cursor while running and when installed before first launch, including releases installed as Grok Build.app.

Privacy and safety

  • Datadog Application Keys delivered via Jamf Pro are written directly to the signed-in user's login keychain under the configured app_key_ref account name and are not stored in plaintext configuration files or profile plists.
  • Skill Scanner inspects skills loaded from Claude Code --plugin-dir directories and surfaces add_dir_runtime coverage gaps when /add-dir adds directories outside the scanner's scope.

Trajectory 0.6.5-beta.2

Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 02 Dec 05:22
d306ede

Trajectory 0.6.5-beta.2

This beta release adds per-client command shim selection and single-client shim restoration, introduces opt-in Claude subscription routing through AI Gateway, expands Agent Security Skill Scanner coverage across GitHub Copilot CLI and Claude Code, and improves Codex session capture under custom CODEX_HOME paths and macOS Jamf setup confirmation.

Highlights

Per-client command shims and single-client restore

trajectory setup --install-client-shims and managed client_command_shims now accept an explicit client list (such as --install-client-shims=cc or client_command_shims.clients: ["cc"]), so teams can enable command shims one client at a time without wrapping other coding agents. Users can also remove Trajectory's command shim and launcher link for a single client with trajectory setup shims restore <client>, keeping capture hooks and other clients intact while recording a local opt-out so managed reconciliation does not reinstall that shim.

trajectory setup --install-client-shims=cc
trajectory setup shims restore claude

Opt-in Claude subscription routing for AI Gateway

trajectory claude --subscription --provider <slug> adds an opt-in path (off by default) to forward a signed-in Claude /login or CLAUDE_CODE_OAUTH_TOKEN session through an AI Gateway subscription provider while preserving Datadog authentication and tagging sessions with trajectory.billing_lane:subscription.

trajectory claude --subscription --provider <slug>

Expanded Skill Scanner coverage for Copilot CLI and Claude Code

Agent Security Skill Scanner now inspects skills loaded by GitHub Copilot CLI whenever managed configuration enables Skill Scanner, blocking malicious skills in enforce mode before Copilot uses them (sessions that disable hooks are not checked). For Claude Code, Skill Scanner now also checks skills invoked before session-start discovery finishes, skills in parent folders outside a Git repository, and skills loaded from subfolders during a session.

Fixes

  • Codex hook setup now verifies Trajectory hook ownership when CODEX_HOME uses a symlinked parent directory or a case-variant path.
  • Codex sessions running under newly created per-workspace CODEX_HOME directories are captured promptly by the watcher fallback and reconcile full token usage, cost, and tool calls when hooks are active.
  • macOS Jamf installs now wait for the background service to apply the managed profile before reporting incomplete setup.
  • Skill Scanner continues blocking a skill it already found unsafe even when background scanning is busy and cannot answer in time.

Privacy and safety

  • On Linux, Skill Scanner inspects Claude Code skills in /etc/claude-code/.claude/skills, including managed skills that override personal or project skills with the same name; on macOS and Windows it reports a coverage gap when that directory exists.
  • With Skill Scanner enabled, Claude Code 2.1.332 and later no longer execute shell lines from a blocked skill, including skills preloaded by a subagent, while the skill text itself still loads.

Trajectory 0.6.5-beta

Trajectory 0.6.5-beta Pre-release
Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 01 Dec 14:58
54c54dd

Trajectory 0.6.5-beta

This beta release introduces an opt-in background module scheduler, adds additive per-turn duration and prompt-word metrics, expands agent configuration and plugin inventory reporting, extends AI Gateway model filtering to Codex, and improves capture reliability, metric accuracy, and Safari support in Trajectory Lens.

Highlights

Background module scheduler

trajectory scheduler runs periodic background work for enabled modules while you are signed in (off by default behind module_scheduler). Use trajectory scheduler install to register the OS launcher on macOS, Windows, or Linux, or enable and register it during setup with trajectory setup --scheduler (and install.sh --scheduler). The scheduler restarts on the new version after Trajectory updates itself, and scheduled checks for running and installed AI tools now deliver their metrics to your Datadog destinations when both process_inventory and module_scheduler are enabled.

trajectory setup --scheduler
trajectory scheduler status

Additive per-turn duration and prompt-word metrics

Trajectory now exports trajectory.turn.typed_words.additive, trajectory.turn.duration_ms.additive, and trajectory.turn.subagent_duration_ms.additive to measure human-typed prompt words, parent-turn execution time, and confirmed subagent execution time. Local turn records and opt-in Reader V2 turn queries expose typed_words and subagent_duration_ms as well.

Expanded agent configuration and plugin inventory

trajectory agent-inventory-metrics --emit-metrics (and the opt-in process_inventory installed-tools check) now reports configured MCP servers for Claude Code, Cursor, Kiro, and Codex—including name, scope, enabled state, and remote host—along with the configured default model for Claude Code and Codex. Agent Security and trajectory doctor also match GitHub Copilot CLI plugin and skill discovery, including manifest, root, and linked skills, while ignoring invalid Copilot settings.json entries.

trajectory agent-inventory-metrics --emit-metrics

AI Gateway model filtering for Claude Code and Codex

Pass --provider-slugs <slug>,<slug> to trajectory claude or trajectory codex to limit the /model picker to models from those AI Gateway accounts and Gateway routers. An organization's managed provider_slugs setting takes precedence over the flag, and the first Codex launch sets the shared Codex model list.

trajectory codex --provider-slugs <slug>,<slug>

Improvements

  • trajectory config sync honors org.sync_interval (default 3600s) and skips remote fetches while local organization config is still fresh, unless --force is passed.
  • Codex capture tracks twice as many recent sessions before reaching its capacity limit.
  • Turn token and cost metrics keep their first published value when a late correction arrives after send instead of sending a reversal and replacement pair; corrections known before first send still publish once, and post-send differences are recorded locally under changed_after_send.
  • Session activity reports the turn number that produced it for Claude Code, Codex, Cursor, Pi, and OpenCode sessions.

Fixes

  • Process detection on macOS now recognizes running Windsurf instances, including current releases packaged as Devin.app.
  • Trajectory Lens now opens in Safari instead of failing on pages that relied on an unavailable idle-callback API.
  • trajectory setup and trajectory plugins security setup succeed on Claude Code 2.1.331 and later when installing a plugin that clears an earlier decline entry.
  • Claude Code turns interrupted during stop processing now close on the next prompt or session end, and sessions that record native tool timing after closing are recognized as ended by recovery, rebuild, and doctor checks.
  • Retried hook deliveries no longer duplicate captured session events after an interrupted server or fallback write, and completed turns accepted while the local database is briefly locked settle to idle once it is available.
  • Session activity no longer flips back to working when a tool result arrives after a turn has already completed or failed.
  • Restarted Pi sessions reopen so session messaging can resume, and automatically retried Pi errors no longer report the turn as failed while the retry runs.
  • Published session duration metrics and the trajectory view and Lens session lists now match client-reported and stored session durations; recovered session ends are dated at the last recorded event; and zero-turn sessions no longer emit trajectory.session.completed, trajectory.session.duration_ms, or trajectory.session.last_seen.unix.
  • Live count metrics handled late are stamped at handling time when sent to Datadog, while backfilled and replayed sessions keep their recorded timestamps.
  • Clean shutdown closes and checkpoints local cache and metric outbox databases so the next start reads less data.

Privacy and safety

  • The background service no longer reads DD_SITE; it uses export.site with any organization-managed site taking precedence, so a managed API key is never sent to another Datadog site.
  • Agent Security now inspects complex shell commands—including cd with relative paths, split verbs, variables, and nested shells—that modify hook, settings, or .mcp.json files for Claude Code, Codex, Cursor, Gemini, Copilot, Windsurf, and .agents, leaving the command seen by other rules unchanged.

Trajectory 0.6.4

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 24 Nov 20:00
cae9766

Trajectory 0.6.4

This release brings Trajectory Lens as the new local session viewer, simplifies installation, updates, and MDM deployment, adds Claude Code prompt-cache optimization and one-step AI Gateway setup, expands cross-OS device and identity attribution, and lowers background service disk I/O. Some unused metrics are retired and MDM kit layouts changed: see Before you upgrade.

Highlights

Trajectory Lens

trajectory lens opens the new local viewer for your coding-agent sessions, with Insights pages for usage, work categories, outliers, reliability, skills, and recommendations. On request, an installed coding agent can investigate an expensive session or reliability problem with read-only access to your local data; its own session runs in incognito mode and Trajectory's internal sessions stay hidden from your session list unless enabled in Settings.

trajectory lens

trajectory view is deprecated in favor of Lens and continues working for now.

Simpler lifecycle commands and MDM kits

trajectory install, trajectory update, and trajectory uninstall now manage the full user lifecycle, and trajectory doctor opens with a concise summary of the release, management state, update ring, version floor, and config sync status. Jamf Pro and Intune kits from trajectory-mdm prepare now ship one MDM script (trajectory-jamf.sh or trajectory-intune.sh) and a configuration profile, while automatic updates (auto_update: true) and hosted client or security module settings can be managed from hosted config.defaults.yaml.

trajectory install --format json
trajectory uninstall --dry-run

Prompt-cache optimization and one-step AI Gateway setup

Analyze Claude Code prompt-cache routes and replay transcripts to optimize cache usage with the new trajectory cost optimize command and authenticated /api/trajectory/v2/optimize endpoint. Setting up AI Gateway is now one step with trajectory setup --plugin ai-gateway (or install.sh --plugin ai-gateway), and trajectory plugins ai-gateway setup defaults to the coding agents Trajectory already captures. Filter Claude Code and Codex model pickers to specific Gateway accounts with trajectory claude --provider-slugs or the managed provider_slugs setting.

trajectory cost optimize
trajectory setup --plugin ai-gateway

Cross-OS identity and device attribution

Metrics, LLM Observability spans, AI Usage skill events, and Agent Security spans and finding logs now carry trajectory.device_id (or device_id) across macOS, Windows, and non-container Linux hosts. Published metrics and spans also add trajectory.user_source, trajectory.user_email_source, and trajectory.actor_type, alongside opt-in identity settings for username normalization, non-person accounts, allowed email domains, and directory lookups.

Broader client capture and quieter background service

Trajectory now captures OpenCode 2 sessions live (2.0.31+), captures Claude Desktop Cowork sessions and detects tools on PATH on Windows, records Kiro CLI sub-agents, tool durations, and turn replies, and discovers running AI-tool processes with native signing evidence on macOS. trajectory serve writes and reads far less to disk during live capture, restarts, and idle periods.

Pre-invocation local skill security

Local agent skills are assessed before supported invocations following each client's source and name precedence. Skill Scanner findings reach AI Guard and AI-EDR with original assessment details and credential-file exclusions, honor available blocked verdicts when local storage fails, and stay within bounded resource limits.

Improvements

  • trajectory serve reports trajectory.ops.agent.running every minute and trajectory.ops.update.state for release ring, version floor, and update state.
  • trajectory ps lists all running Trajectory processes with their agent, session, and project.
  • Completed turns include gen_ai.request.reasoning_effort and trajectory.turn.agents.peak_running, Claude Code metrics add trajectory.client_surface, and Datadog AI Gateway traffic tags trajectory.provider_route:datadog_ai_gateway.
  • Restored trajectory.turn.user_frustrations and trajectory.turn.tool_decision per-turn metrics.
  • trajectory backfill progress reports caller origin, trigger, and outcome, and CLI backfill accepts --origin.
  • Administrators can drive chosen feature flag defaults from a Datadog Feature Flags environment.
  • install.sh verifies downloaded binaries against release checksums.

Fixes

  • install.sh --security sends AI Guard spans to Datadog again.
  • trajectory backfill no longer stops with a timeout error when saving progress is slow and no --timeout is set.
  • trajectory update restores the previous release if the capture service exits within seconds of starting.
  • trajectory serve stops repeatedly triggering macOS protected-folder prompts after Don't Allow, and trajectory install accepts macOS user home paths that differ only in case.
  • trajectory-mdm builds intents authored for earlier releases with warnings instead of errors for retired fields and accepts deployment.minimum_version at any schema_version.
  • Fixed Claude Code mid-reply session exits and hook timeouts, Codex provider-only models, Pi rate-card pricing fallbacks, and OpenCode/Kilo provider-error turn status.

Privacy and safety

  • Toggling incognito, publish opt-out, or capture no longer sends any metric to Datadog.
  • trajectory.pr.file_work.cost_indicator.usd.additive is now off by default because its file_path tag names repository files; set export.pr_file_work_cost_indicator: true to re-enable.
  • Skill security scans exclude credential files from discovery reads and uploads and enforce product authorization and privacy controls.
  • Agent Security for Kiro CLI detects additional shell patterns that tamper with Kiro hooks, agents, and MCP configuration.

Before you upgrade

  • 101 unused or duplicate metrics and several tags (git_remote_host, duration_basis, cost_coverage, and redundant agent_role) are retired; move dashboards and monitors to their documented replacements before upgrading.
  • OpenCode 2.0.0 through 2.0.30 are no longer captured; upgrade to OpenCode 2.0.31 or later and run trajectory setup --clients opencode if prompted.
  • Managed Macs now read auto_update: true from hosted config.defaults.yaml, and trajectory-mdm prepare produces only the MDM script and configuration profile; regenerate older Jamf Pro or Intune kits to adopt the new layout.
  • On existing install.sh --security installations, add module_spans (enabled: true, modules: [agent-security], native_composite_attributes: [agent-security]) to the ai-guard-apm destination in ~/.trajectory/config.defaults.yaml so AI Guard spans resume.

Trajectory 0.6.4-beta.5

Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 21 Nov 06:18
a63e2d2

Trajectory 0.6.4-beta.5

This beta restores compatibility for existing MDM rollout intents, brings back two per-turn metrics used by friction and permission dashboards, adds administrator controls over AI Gateway model pickers, and expands pre-invocation skill security checks. This is a beta prerelease for early evaluation on the beta channel. The stable installation channel does not change.

Highlights

Earlier MDM rollout intents build again

trajectory-mdm now accepts rollout intents written for 0.6.4-beta.3 and earlier instead of failing on moved or retired fields. You can set deployment.minimum_version in an intent at any schema_version to control the version floor for a Jamf Pro or Intune macOS kit, and trajectory-mdm prepare --minimum-version still overrides the intent floor when specified. Intents that still set binary_update or migration_mode: replace_untrusted now build with a warning that those settings are unused, while automatic updates continue to follow auto_update in your organization's hosted config.defaults.yaml.

Restored per-turn frustration and tool decision metrics

Trajectory once again emits trajectory.turn.user_frustrations and trajectory.turn.tool_decision per-turn metrics alongside trajectory.turn.code_edit_tool.decision. Teams tracking user friction and non-code-edit tool permission decisions in Datadog dashboards and analytics receive both metrics again without additional client-side configuration.

Managed provider filter for AI Gateway model pickers

Administrators can now restrict the AI Gateway model pickers in Claude Code and Codex to specific Gateway accounts using the managed provider_slugs setting under frontier-ai-gateway. Gateway routers remain available in the picker, and a launch fails with a clear message when none of the allowed accounts serves a usable model.

Pre-invocation security checks for local agent skills

Local agent skills are now assessed before supported skill invocations, following each client's source and name precedence. When local storage is unavailable, existing blocked verdicts are still honored so disallowed skills do not run unchecked. Discovery reads and uploads exclude credential files, report partial coverage when checks cannot inspect every item, and stay within resource limits.

Improvements

  • Backfill progress now reports caller origin, trigger, and a machine-readable outcome. CLI backfill runs default to manual origin and accept a custom caller label with --origin.

Fixes

  • trajectory-mdm builds intents authored for 0.6.4-beta.3 and earlier with warnings instead of errors for binary_update and migration_mode: replace_untrusted, and accepts deployment.minimum_version at any schema_version.
  • Backfill progress reliably attributes caller origin, trigger, and outcome across runs.

Privacy and safety

  • Local skill security assessments evaluate skills before invocation while excluding credential files from discovery reads and uploads.
  • Existing blocked skill verdicts remain enforced even when local storage fails, and skill checks report partial coverage while staying bounded by resource limits.

Trajectory 0.6.4-beta.4

Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 20 Nov 14:42
a63e2d2

Trajectory 0.6.4-beta.4

This beta is for teams rolling Trajectory out to managed Macs and Windows computers. Metrics keep flowing after an update, and macOS stops repeating folder prompts. Managed Macs take their updates from your organization's settings, and Windows support is broader. It also retires metrics that nothing used, so check your dashboards before you upgrade. This is a beta prerelease for early evaluation. The stable installation channel does not change.

Highlights

Turn metrics keep flowing after an update

On some computers, turn metrics and turn and session-end traces stopped after an update while another program that Trajectory could not identify kept running. They now resume when the background service starts on this release, and nothing already sent is sent again. trajectory doctor reports a failure while they are held back.

No repeated folder prompts on macOS

When a user clicks Don't Allow on a macOS prompt for a protected folder, such as Documents, the background service no longer asks again and again. It stops reading that folder until it restarts. It still captures and sends those sessions, with the folder name as their repository. trajectory doctor lists the refused folders.

Managed Macs follow your organization's update settings

On Macs managed with Jamf Pro or Intune, automatic updates, the update ring and the minimum version now come only from your organization's hosted config.defaults.yaml. Automatic updates stay off until it sets auto_update: true. trajectory-mdm refuses an intent that still sets binary_update or deployment.minimum_version, so move those values to the hosted file. The Jamf Pro and Intune scripts no longer pick a release: each places its kit's own signed release, and each Mac then follows your organization's ring. Kits built at 0.6.4-beta.3 or earlier must be replaced with a kit from trajectory-mdm prepare. Macs on 0.6.4-beta.3 or earlier refuse a newly generated profile, so update them before you assign it.

OpenCode 2 captured live

Trajectory now captures OpenCode 2 sessions live, from OpenCode 2.0.31, through its OpenCode plugin. OpenCode 2.0.0 to 2.0.30 are no longer captured, so update OpenCode. trajectory setup check warns on those versions. If it reports an outdated plugin, run:

trajectory setup --clients opencode

Windows: Claude Desktop Cowork and detection

Claude Desktop Cowork sessions are now captured on Windows, and Claude Desktop installed from its MSIX package is detected. Tools on PATH are now detected on Windows. To try this beta on Windows, download trajectory-windows-amd64.exe and checksums.sha256 from the v0.6.4-beta.4 release and check the file against its checksum.

Unused metrics retired

Trajectory no longer sends 101 metrics that nothing used, or that duplicated other metrics. If a dashboard or monitor reads one, move it before you upgrade. The deprecated metrics reference lists each one and its replacement, such as trajectory.turn.cost.usd.additive for trajectory.turn.cost.usd.total. Some metric tags are gone too, including git_remote_host and cost_coverage. Use query_source:subagent for sub-agent usage.

Improvements

  • Claude Code metrics say where Claude Code ran in trajectory.client_surface: desktop, cli, ide or exec.
  • trajectory.provider_route is datadog_ai_gateway for traffic through the Datadog AI Gateway. Other gateways stay llm_gateway.
  • Administrators can let a Datadog Feature Flags environment set the default of chosen Trajectory feature flags, for percentage rollouts and kill switches.
  • GPT-6.2 Astra and Sol are priced, and fast mode estimates Codex credits at twice the Standard rate for GPT-6 and GPT-6.1 models.
  • Every completed turn carries gen_ai.request.reasoning_effort, and trajectory.turn.agents.peak_running shows the most agents at work at once.
  • Kiro CLI records each sub-agent run with its name, prompt and reply.
  • Jamf: the policy log names why the binary could not be placed.
  • install.sh checks the downloaded binary against the release checksums.

Fixes

  • Claude Code turns stay separate when a hook times out on a busy machine, and a prompt is no longer refused with filelock: timeout after 0s.
  • Claude Desktop Cowork sessions count one turn per prompt.
  • A Codex session that names only its provider no longer reports the provider as its model.
  • Pi turns on models Pi has no price for take their cost from your rate cards. Gateway names for DeepSeek V4.1 Flash are priced.
  • OpenCode 1.x and Kilo turns that end after a provider error are recorded as failed.
  • trajectory update puts the previous release back when the capture service stops within seconds of starting.
  • A Mac rolled back to 0.6.4-beta.3 can still use its metric queue. A queue that 0.6.4-beta.3 already reorganized can't be read by 0.6.4-beta.2 or earlier, so don't roll that Mac back further.
  • An organization configuration that needs a service restart now stays installed for that restart.
  • Jamf: a run no longer reports a Mac as set up when the capture service is not running.
  • trajectory publish status and trajectory doctor report capture-only when no destination can receive data.

Privacy and safety

  • Turning incognito on or off, opting out of publishing, and turning capture off or on no longer send any metric to Datadog.
  • trajectory.pr.file_work.cost_indicator.usd.additive is off by default, because its file_path tag names repository files. Set export.pr_file_work_cost_indicator: true to keep it.
  • Agent Security for Kiro CLI flags more shell commands that change Kiro hook, agent and MCP files.
  • Local agent skills get a cached security assessment, and credential files are left out of its reads and uploads.

Trajectory 0.6.4-beta.3

Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 16 Nov 02:23
4d81791

Trajectory 0.6.4-beta.3

This beta is for administrators who deploy Trajectory with Jamf Pro, and for everyone who wants a quieter background service. trajectory doctor now opens with a short summary of the computer and how it is managed, a new Mac's first Jamf run reports the Mac set up, and macOS kits no longer pin one release. The capture service writes and reads far less from disk. This is a beta prerelease for early evaluation. The stable installation channel does not change.

Highlights

trajectory doctor reads at a glance

trajectory doctor now starts with a short summary: the release, how the computer is managed, the update ring, minimum version and automatic updates with who sets each, the last update check, and the last sync of your organization's settings. It reports a managed Mac with no configuration profile, managed setup that is not complete, a release below the minimum version, and an overdue update check. Each problem takes one line and names the command that fixes it, and long lines wrap instead of being cut off. trajectory doctor --json adds the summary as overview.

The first Jamf run reports a new Mac set up

On a new Mac whose configuration profile names an organization config source, the first Jamf run now reports the Mac set up, instead of install_not_confirmed until the next run. Organization config sync also no longer rewrites its files or reloads the background service when a host sends the same file again.

Users whose home folder differs only in case

A macOS user whose recorded home folder differs from the folder's name only in case, such as /Users/ADMIN for /Users/admin, is now set up like any other user. Before, trajectory install failed with user_installation_invalid or serve_not_answering.

macOS kits no longer pin a release

Intune macOS kits from trajectory-mdm prepare no longer pin one Trajectory release, so they no longer refuse a Mac whose Trajectory has updated itself. The kit holds trajectory-intune.sh, the Jamf Pro script made for Intune. It keeps a working Trajectory of any release and runs trajectory install --source intune as root. Generate the kit again without release files, and assign the new script in place of application/installer.sh.

Find managed Macs that stop reporting

Jamf Pro admins can now find managed Macs that do not report, with a new dashboard and monitor. Trajectory's metrics on macOS carry the Mac's hardware UUID in trajectory.device_id, so they join with the Jamf script's metrics.

A quieter background service

trajectory serve reads and writes much less to disk:

  • After a break, it catches up a long session's turns without redoing turns it already sent, and each turn's check reads only that turn's own points.
  • It reads a long session's file once while it publishes or catches up traces, not again for every few traces or every later turn.
  • After a restart or update, it reads only the end of a running Codex session's file.
  • It no longer writes PR evidence after every shell command, copies recent changes into its databases less often, writes fewer pages to queue each turn's metrics, and saves a running session's activity about once a second while Studio is connected.
  • An idle service no longer reads its state every minute for the running-agents gauge, and no longer uses more CPU as Claude Desktop sessions accumulate.

Improvements

  • trajectory ps lists every running Trajectory process, with the agent, session and project each one works for. Detailed serve health moved to trajectory ps --json.

  • Preview clients and saved-history reading have ordinary settings, clients.<client>.enabled and clients.<client>.history_sync:

    trajectory config set clients.windsurf.enabled true
  • Session metrics sent at session end name the session's main model, and a new trajectory.session_models tag says whether its turns used one model or more.

  • New fleet health metrics count turns that live capture missed and Trajectory later recovered, and trace deliveries that stop retrying.

  • Agent inventory metrics report only clients that are installed or in use, and metrics carry fewer tags: no git.email, github.username or catalog tags.

  • MCP tool calls from Pi and DD Harness carry the mcp_server and mcp_tool tags.

  • A Kiro CLI workflow step's session names the session that started the workflow as its parent.

  • Seven feature flags that were on by default are retired and their behavior is always on. trajectory doctor warns when managed settings still set a retired flag.

Fixes

  • uninstall.sh keeps the records of what Trajectory already sent, as trajectory uninstall does, so installing again doesn't send your history twice. Add --purge to remove them too.
  • A session whose turn IDs started over after a resume or compaction now sends its completed-session count, duration and cost.
  • Claude Desktop (Cowork): resumed sessions count as their own sessions; shell commands and web fetches report as Bash and WebFetch; sessions outside a repository send repo:unknown instead of your home folder's name.
  • Kiro CLI tool calls that fail on the V3 engine are recorded as failures.
  • A turn that never called a model, such as a local or ! shell command or a prompt interrupted before any reply, no longer counts as a completed turn.
  • Claude Desktop (Cowork) turns count the tokens of every model call, subagents included, priced with Trajectory's rate card.
  • Pi: trajectory setup removes a stale Trajectory server from ~/.pi/agent/mcp.json, so Pi no longer shows Trajectory's tools twice.
  • Codex auto-review and DD Harness token metrics carry the right model, and Pi notices a mid-session model switch.
  • identity.user_email_suffix no longer makes up an email for root, system or service accounts, and the MCP trajectory_status tool reports a personal install correctly.
  • On Linux, serve's logical read and write metrics count file I/O only, as on macOS.

Trajectory 0.6.4-beta.2

Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 14 Nov 15:28
2ad5556

Trajectory 0.6.4-beta.2

This beta is for administrators who deploy Trajectory with Jamf Pro and for teams that use Kiro CLI. The Jamf script now sets up a new Mac, and hands the whole install step to Trajectory, run once as root. Kiro CLI sessions record sub-agents and tool durations, and several capture fixes keep records from being lost. If you deployed the 0.6.4-beta Jamf kit, generate it again with this release: that kit cannot set up a Mac it did not upgrade from an earlier kit. This is a beta prerelease for early evaluation. The stable installation channel does not change.

Highlights

The Jamf script sets up new Macs, with one install run as root

On a Mac that only the Jamf script has set up, such as a new Mac or a new user's account, trajectory install now applies the Jamf configuration profile as soon as macOS shows it and reports the Mac set up. With the 0.6.4-beta kit, install failed on every run there with configuration_profile_pending_device or user_installation_invalid.

The script now does less. It places a Trajectory binary that only root can change, in /Library/Application Support/Trajectory/mdm-script/bin, and runs trajectory install --format jamf from it once, as root, with the API keys on standard input. Install finds the signed-in user and sets them up as that user: it places their binary in ~/.trajectory/bin when none works, checks the keys with Datadog, stores them in the user's login keychain and confirms the result with Trajectory's own status. Root never runs a file that another account can change. The script then prints install's result lines with Jamf's exit codes, so the policy reports the same result Trajectory sees.

To remove Trajectory from such a Mac, turn off the Jamf script policies, withdraw the profile, and have each user run ~/.trajectory/bin/trajectory uninstall. It removes the binary, the capture service and what setup added to each coding agent, and keeps only the records that stop a later install from sending the same history to Datadog again.

Kiro CLI sub-agents and tool durations

Agent Security now records when a Kiro CLI sub-agent starts and stops, as it does for Claude Code, Cursor and GitHub Copilot CLI. Run setup again to add the two hooks:

trajectory plugins security setup --clients kiro

Kiro CLI tool calls now have a duration. Kiro does not send one, so Trajectory measures it from its own hook times, and the value includes the time the hooks take.

Agent Security rules can read Kiro CLI replies

On Kiro CLI, Agent Security's AI-EDR rules can now read the agent's reply when a turn ends, as event.response. Kiro's Stop hook carries no reply, so Trajectory reads it from Kiro's session store in the background, without delaying Kiro. No built-in rule reads a reply yet, so no verdict changes until a managed rule does. To turn it off:

trajectory config features disable kiro_cli_stop_read

Fixes

  • macOS: when a user's recorded home folder differs from the folder's own name only in case, such as /Users/ADMIN for /Users/admin, trajectory install and trajectory managed status now accept the installation. Before, every run failed with user_installation_invalid.
  • trajectory serve ensure no longer requires --client. Without it, the request is labeled cli.
  • Agent Security no longer loses or mislabels a record when two hooks of the same session run at the same time, as when a Kiro CLI sub-agent starts next to its tool call. A session-start hook that met a busy check now waits too, so its evaluation is no longer skipped.
  • Agent Security notices a change to Kiro CLI's hook files in a session resumed with --resume-id that it had no record of, such as a session started before you enabled Agent Security.
  • Kiro CLI: a turn's credits are no longer dropped when the session ends right after the turn while more than one trajectory serve process runs.
  • Kiro CLI: a turn in a long session no longer loses its reply or credits, because Trajectory now reads only the latest turns of Kiro's session file.
  • Kiro CLI: the message Kiro sends when a workflow you launched finishes no longer counts as a prompt you typed.
  • When one saved OpenCode, Kilo or ZCode session holds a record Trajectory cannot read, Trajectory now imports the other saved sessions instead of none. It tries the skipped session again when that session changes.
  • Skill inventory scans no longer fail on deep directory trees or when they resume older queued scans, and a skill file larger than the scan batch limit is no longer retried.

Trajectory 0.6.4-beta

Trajectory 0.6.4-beta Pre-release
Pre-release

Choose a tag to compare

@dd-octo-sts dd-octo-sts released this 13 Nov 10:02
489a3d5

Trajectory 0.6.4-beta

This beta is for administrators who deploy Trajectory with Jamf Pro or another MDM, and for anyone who wants a simpler way to install, update and remove it. Three commands now cover a Mac's whole lifecycle, updates follow the update ring and version floor from your managed settings, and Trajectory Lens arrives as the new local viewer. This is a beta prerelease for early evaluation. The stable installation channel does not change.

Highlights

Install, update and remove with three commands

trajectory install sets up a Mac from its managed settings. It connects the coding agents the settings name, starts the background service when it isn't running, and updates Trajectory when the installed release is below deployment.minimum_version. Running it again changes nothing, and it prints one result.

trajectory install --format json

trajectory uninstall removes Trajectory from your user account: the capture service, each coding agent's integration, the binary and the rest of ~/.trajectory. It keeps only the records that stop a later install from sending the same history to Datadog again. --dry-run shows what it would remove, and --purge removes the kept records too.

trajectory uninstall --dry-run

Updates follow your update ring and version floor

trajectory update installs the release your update ring names when it is newer than the installed release and not below the version floor. It then restarts the capture service, and puts the previous binary back if the service does not answer. It takes only --source, --force, --dry-run and --format text|json, and prints one result. With automatic updates on, the background service runs it as a separate process once an hour.

An update no longer hands the background service over between releases, rolls out in stages, rolls back or follows deployment.json. trajectory install removes the records earlier updates left beside the binary, so a leftover record can no longer stop the service from starting. Both commands also restart a capture service that still runs another release, such as after an interrupted update.

A simpler Jamf Pro kit

Kits from trajectory-mdm prepare now hold one script in place of the installation and reconcile scripts. It stores the API keys, installs or keeps the binary for the deployment's update ring, and exits nonzero only when the binary or an API key needs your attention, so a recurring policy retries everything else. The Trajectory state extension attribute now reports failed when Trajectory does not answer, instead of holding up the Mac's inventory update. Regenerate and redeploy the kit to adopt both. --jamf-legacy-installer builds the earlier kit.

Hosted settings can change more without a new profile

A hosted config.defaults.yaml can now change security modules and the list of coding-agent clients, and turn on a managed capture audit with managed_capture. Keep the hosted file's modules the same as the profile's until every computer runs this release, and set deployment.minimum_version above 0.6.3 before the hosted file sets setup.clients or managed_capture.

Trajectory Lens

The new trajectory lens command opens Trajectory Lens, a local viewer for your sessions. Browse sessions by period and project, and read Insights pages on usage, work, outliers, reliability and skills. On request, an installed coding agent can investigate an expensive session or a reliability problem with read-only access to your local data. The agent can read any file your user account can read, and what it reads goes to its model provider. Its own session is incognito.

trajectory lens

The viewer that trajectory view opens is deprecated in favor of Lens. It keeps working for now.

Improvements

  • trajectory serve reports trajectory.ops.agent.running every minute: the sessions and sub-agents running now for each coding agent.
  • The new trajectory.ops.update.state gauge reports each computer's release ring, version floor and update state. trajectory.ops.convergence.heartbeat and trajectory.ops.update.wait_age_seconds are no longer sent.
  • trajectory managed status reports the running release with its update ring and version floor. trajectory update status and trajectory update doctor are gone.

Fixes

  • A Claude Code session that ends mid-reply, such as with /exit, reports that turn once with its tokens and cost, and sends the session's cost total.
  • Codex: a turn that patched files keeps its files-modified and lines-of-code counts when you queue a prompt while it runs.
  • OpenCode and Kilo keep the end-of-turn totals of a turn with very large responses, and record streamed reasoning once instead of repeating it.
  • Backfill no longer stays busy when its owner stops making progress, and a pass stopped partway reports the sessions it imported, so it continues at the next start.
  • A manually installed Claude Code plugin sends its events to the Trajectory home set by TRAJECTORY_HOME.
  • A home with a long session history no longer pays a growing disk cost every couple of minutes while idle.
  • Kiro CLI: trajectory doctor checks hooks under KIRO_HOME, trajectory setup no longer overwrites a hook file changed while it runs, and Agent Security names MCP servers whose names hold an underscore, hyphen or space.
  • Agent Security no longer reports a Kiro CLI command that only prints text as a settings change, and in observe mode evaluates every hook when several sessions run tools at once.
  • The MDM reconcile script's recovery line for a refused configuration profile now matches the refusal.