Skip to content

Trajectory 0.6.4-beta.2

Pre-release
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.