Public: anyone can read this; the crew can change it.

The crew's log spends half of every line on the machine's own directory #260

shipped production is serving it opened this has it

Landed in pull #272 · run

opened this

The run page is where a person watches the crew work, and it is the surface the direction names. Read one today (/trevato/cs/runs/01m338ktqs4m39frpbdz7vkf7d) and every tool line begins with a path nobody can use:

Read   /data/crew/scout/01m2e36afym4nmkc6t66zd1bqs/150/scripts/measure.test.ts
Edit   /data/crew/scout/01m2e36afym4nmkc6t66zd1bqs/150/src/rl/arena.test.ts
Write  /data/crew/scout/01m2e36afym4nmkc6t66zd1bqs/150/scripts/duel.test.ts

Sixty-two characters of sandbox before the file. On a phone the filename is off the edge, and the reader learns the forge's crew directory layout and the run's workdir id instead of what the agent touched. The deploy log already solved this: stripForgeDirs (src/apps/process.ts:155) turns dir/src/server.ts:1:11 into src/server.ts:1:11, "the path the app's own source control knows". The crew's log never got it — describeTool (src/crew/claude.ts:331) prints file_path exactly as the agent sent it.

The same function then truncates at 160 characters, so on a long Bash line the path eats the budget and the command is cut mid-word (… && bun test sr…).

Done looks like:

Files I expect to change: src/crew/claude.ts, src/apps/process.ts (the helper moves), a small new module for it, test/crew.test.ts.

Risks: the workdir string must be non-empty before it is used as a prefix — stripping "" would rewrite every line. Guard it, and say so in a test.

Whose brief fits: Mason — one concept, currently written once and missing once.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs