brain trace command and a background job that read
your Claude Code and Codex session transcripts and send them to Atlan as
traces. You then see coding sessions in Atlan the same way you see traces from
the SDK.
brain reads the transcripts the coding agents already write. It installs no
hooks into Claude Code or Codex.
Before you start
brainand the Atlan adapter, signed in. See Use brain with Atlan. Traces need a signed-in account: aREGISTRY_TOKEN_<NAME>variable is not enough.- The name of the account to send traces to. Run
brain auth list: it’s the registry name you signed in with, such asatlan. On a machine with Atlan Desktop, it’s your organization’s slug, its short name, with one account per organization you belong to.
brain job list before you add one.
Look before you send
List the sessionsbrain can read:
--content setting keeps. Your organization’s
trace policy, and the fields Atlan adds when it sends, aren’t applied.
--dry-run doesn’t mark sessions as sent, so a later export still includes
them.
Send sessions once
- name sessions by ID, by an ID prefix of at least 8 characters, or by
transcript path:
brain trace export <session> --account atlan; - read one coding agent only:
--for claudeor--for codex; - send again, from the start, sessions changed since a date:
--since 2026-10-01. It doesn’t skip older sessions that were never sent.
brain sends only work that has finished. A turn or tool call still in
progress stays on this machine until it finishes, so a session you’re still in
may send nothing yet. A later export, or the background job, sends the rest.
Traces go to your personal workspace, or to the workspace set as
default_namespace for that registry. The command exits with status 1 if any
session fails to send.
Send sessions on a schedule
Add a background job that, every 15 minutes, sends the sessions it hasn’t sent yet. Its first run includes the sessions already on this machine:--cwd <folder>.
For the job’s other options, and for starting the brain background service
that runs it, see brain job in the
brain CLI reference. To check on the job,
run brain job list and brain job runs.
brain help job add doesn’t list --traces yet, because the Atlan adapter
adds it.
Choose what leaves your machine
By default, prompts and completions are sent with each trace. To send the structure of each session without its content, add--content drop:
brain follows it whatever
you set.
Installing the Atlan adapter also turns on usage and crash reporting. See
Usage and crash reporting
for what it sends and how to turn it off.