Discuss a task with another agent using distilled context, selected assets, and resumable thread state.
agent-discuss is a Claude/Codex skill repo for a different workflow than a2a.
a2aends with a review verdict.agent-discussends with a sharper direction and a reusable thread.
agent-discuss lets the orchestrating agent:
- Distill the current task into a compact packet
- Attach a few high-value assets
- Dispatch the packet to another agent
- Save the remote reply in a structured format
- Update a thread state so the next round does not need the full history again
This is useful when you want to "talk it through" with another agent, not ask for a formal review.
scripts/discuss.sh start "state ownership refactor" \
--understanding "The feature works, but responsibilities are smeared across page and child components." \
--direction "Centralize the write path and keep read-only sections dumb." \
--constraints "No new dependencies. Preserve route API." \
--ask "Push back on this direction and suggest a simpler ownership split." \
--asset src/pages/editor.tsx \
--asset src/components/FormPanel.tsxscripts/discuss.sh continue 20260313-state-ownership-refactor \
--direction "I am considering moving validation to the page level." \
--asset src/lib/validation.tsscripts/discuss.sh status 20260313-state-ownership-refactorscripts/discuss.sh validate /path/to/raw-reply.txt \
--thread-id 20260313-debug-normalizerEach discussion thread lives under:
.ai/discuss/<thread-id>/
Important files:
packet.md— the exact prompt sent to the other agentraw-reply.txt— raw adapter outputdebug.log— adapter stderr and parser diagnosticsreply.json— normalized reply contractreply.md— human-readable renderingbrief.md— shortest current-state summary for the next roundstate.json— thread state for resume and automationtimeline.md— appended round summaries
agent-discuss writes and reads the same project-local adapter cache shape used by sibling tools:
.ai/cache/preflight/adapters.json
Supported adapters in v1:
codexclaude
Selection order:
- explicit
--adapter - cache recommendation
- fallback:
codex, thenclaude
This repo ignores local coordination files on purpose:
task_plan.mdfindings.mdprogress.mdtodo.md.ai/
They are for cross-agent collaboration in a working tree, not for published releases.
v1 ships:
SKILL.mdREADME.mdCLAUDE.mdCHANGELOG.mdscripts/preflight.shscripts/invoke_adapter.shscripts/discuss.shreferences/thread-contract.mdreferences/preflight-contract.mdtemplates/discussion_packet.md
python3 /Users/xin/.codex/skills/.system/skill-creator/scripts/quick_validate.py agent-discuss
scripts/preflight.sh --json
scripts/discuss.sh start "smoke test" --understanding "dry run" --direction "verify packet generation" --ask "give pushback" --dry-run
scripts/discuss.sh validate /path/to/raw-reply.txt --thread-id validate-demo