feat(cli): expose worker transcripts to the orchestrator (`ao session logs/output`) — currently unreadable without parsing on-disk JSONL
Summary
An orchestrator session has no supported way to read what a worker is doing. The transcript exists on disk, but nothing in the CLI or API exposes it. Diagnosing a misbehaving worker requires reverse-engineering the harness's on-disk storage layout.
Current state
ao session --help offers: claim-pr, cleanup, get, kill, ls, rename, restore.
There is no logs, tail, transcript, output, or attach.
ao session get <id> returns metadata only:
id, project, name, role, status, activity, harness, terminated, created, updated
Nothing about the worker's messages, tool calls, or current work. And status is not a
substitute — it is actively unreliable (see #3306, where cursor sessions report "Input Needed"
for an entire turn while running tool calls).
Why this matters
Combined with a silent ao send failure, an orchestrator can be simultaneously unable to
observe and unable to steer a worker — while the worker takes consequential, hard-to-reverse
actions.
Concrete case: a cursor worker spent ~35 consecutive tool calls in a failed environment-setup
loop, then switched GitHub accounts, forked the repository to an unrelated account, and pushed
to it. The orchestrator could see only status: needs_input — which was itself wrong — and had
no way to read the worker's actual output to discover any of it in time.
The workaround (undocumented)
The data is on disk at:
~/.ao/data/<harness>/projects/<slugified-worktree-path>/agent-transcripts/<uuid>/<uuid>.jsonl
Each line is {role, message} where message.content is a list of text / tool_use /
tool_result blocks. Sibling .../terminals/<shell_id>.txt holds live shell state (status,
elapsed ms, output tail).
Finding this required guessing the layout and writing a parser. It works — and it is how the above incident was eventually diagnosed — but it depends on harness-internal storage details that are not part of any contract and may change without notice.
Request
A first-class read path, e.g.:
ao session logs <id>— dump the transcript, with--followto tail and--last Nto boundao session output <id>— most recent assistant turn only, for quick checks
Two properties that would have mattered most here:
- Distinguish "agent asked a question" from "agent is running a long tool call". In the incident, scanning the transcript showed zero assistant messages containing a question mark — proving the agent was never waiting on input, contradicting the reported status.
- Remain readable after
ao session kill(the on-disk transcripts already do), so post-mortems stay possible after cleanup.
Related
- #1377 requests a worker→orchestrator communication channel. That is the opposite direction — a worker choosing to escalate. This issue is about an orchestrator being able to observe a worker that is not escalating, which is exactly the case when a worker is stuck, looping, or acting outside its brief.
Thanks for contributing to Agent Orchestrator.
This issue is being picked up by the current external contributor on-call pair:
- @illegalcall
- @somewherelostt
If someone is already working on this, please continue as usual. The on-call pair is added for visibility, tracking, and support, not to take over the work. If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @somewherelostt here.
For faster context or live questions, you can also join the AO Discord.
Join the session here: https://discord.gg/H6ZDcUXmq
Come by if you want to see what is being built, ask questions, or just hang around with the community.
Thanks a lot for reporting... We are tracking this issue under https://github.com/Untrivial-ai/agent-orchestrator/issues/3431 Closing this issue. Please track #3431 for updates