mocactl: show a turn's tool calls in a headless run (--show-tools)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli
Research direction
Start in headless.ts, where plain-mode output currently writes only text frames, and review docs/demos/vm-multi-user-demo.md and its fix-list item. Add the run option so tool_use commands and failed tool_result frames are interleaved with text using sanitizeRemote; done means the demo no longer needs its jq filter.
Written by the indexing model from the issue text.
Description
Found on the VM demo's live run (#370, docs/demos/vm-multi-user-demo.md, fix list 8; reported in the #412 review).
A headless mocactl run prints only the assistant's text (headless.ts: only text frames are written in plain mode). To show an audience the commands an agent runs in its sandbox, the demo's research act needs --json and a jq filter:
mocactl run "$P" --json | jq -j '
if .type == "tool_use" then "\n$ \(.args.command // .args)\n"
elif .type == "tool_result" and .isError then " (that command failed)\n"
elif .type == "text" then .delta
elif .type == "error" then "\nerror: \(.errorMessage // .stopReason)\n"
else empty end'
Proposed: a --show-tools flag (or a -v) on mocactl run. It would print each tool_use frame's command and flag a tool_result with isError, interleaved with the text, using the same sanitizeRemote the text path uses. The demo's filter could then go.
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 9
- Avg merge
- 9h 31m
- Merged PRs (30d)
- 139
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rossoctl/moca
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rossoctl/moca#421 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
openclaw/openclaw#182077 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
aikido high security
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dequelabs/axe-linter-action#161 ·
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand markPossibly taken @eric8810 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lyswhut/lx-music-desktop#3026 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
abhigyanpatwari/GitNexus#3704 ·
Maintainers usually reply within 1 day