Repository navigation
Agents know cmux: chat guidance for every harness, and your own skills in every chat - #36411
Conversation
…wn skills
Leo, 2026-11-05: "cmux-next should add a few and we can think about
extending them as well and letting other users define stuff too!"
- cmux:cmux-chat skill (plan list, side sessions, session links, closing
recap, editing cmux live) in the Claude Code session plugin.
- First-turn context part cmux-guidance: a pointer to the skill for Claude
Code, the compact guidance for Codex and other harnesses (the channel
Codex uses for AGENTS.md), beside the default/user/project rule.
- The person's skills in ~/.config/cmux/skills: a cmux-user plugin for
Claude Code, an index of names, descriptions and paths for the others.
- Settings agents.guidance.{claude,codex,otherAgents,userSkills}, on by
default, user-only, in Settings > Agents > Guidance and Skills.
- Design: plans/cmux-next/agent-guidance-DESIGN.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-a939b1bfc22025a8e085
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
web and size checks: green |
|
Owned by an agent session · session |
…e tools are listed Leo, 2026-11-05: "We just have to make sure we don't bloat the context, we don't confuse it". The Claude Code pointer drops the rules its own TodoWrite prompt and the cmux:cmux-chat skill already carry (about 200 to 95 tokens), and the side-session tools are named as optional: sub-sessions can be off and a chat outside the app shows no offers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-a939b1bfc22025a8e085
|
Found 15 test failures on Blacksmith runners: Failures
...and 5 more test failures. View all on Blacksmith: run 42037465781, run 42037465497
|
|
For the owner: this PR is Leo's ask ask-a933b133a7 (asks cluster c-a933b133a7, 3 h SLA from 09:10Z). Please add these two lines to the body so the asks reconciler links it, and land on the independent review once it posts: Leo-ask: ask-a933b133a7 A Codex router-review of this head has been started. |
|
Review (subagent claude-opus-5-5 medium): BLOCK at 1100929 Findings: Follow-ups: F2-F7 (one tracker |
Leo-Ask-Trace: ask-a933b133a7 Agent-Session: https://cmux.com/deeplink/agent?id=aid-a115f4176bb98d5b39bd
|
Finding outcome: comment-6656423850/F1 fixed 48dec5a F2-F7 go to a follow-up tracker. |
|
Review (subagent claude-opus-5-5 medium): SHIP at 48dec5a |
|
Review (codex, router-review): SHIP at 48dec5a Reviewer: codex gpt-6-astra high, fast tier. Leo-Ask-Trace: ask-a933b133a7 Follow-ups: 1. They land as checklist items in this PR's one follow-up tracking issue in this repo ( SHIP at 48dec5a Visual verdict: no images; Leo tries the build
Follow-ups:
|
…chet) Leo-Ask-Trace: ask-a933b133a7 Agent-Session: https://cmux.com/deeplink/agent?id=aid-a115f4176bb98d5b39bd
|
Review (codex gpt-6.1-sol xhigh, router-review): BLOCK at 6c9369d Leo-Ask-Trace: ask-a933b133a7 BLOCK at 6c9369d Visual verdict: no images; Leo tries the build
Follow-ups:
|
…KILL.md first Review BLOCK F1 at 6c9369d: the per-skill limits allowed about 12.8 GB, all held in memory before hashing, so a large skills folder could exhaust memory or fill the state volume on the first Claude spawn. Files past the budget are left out and logged. Leo-Ask-Trace: ask-a933b133a7 Agent-Session: https://cmux.com/deeplink/agent?id=aid-a115f4176bb98d5b39bd
|
Review (codex, router-review): SHIP at 4090d55 Reviewer: codex gpt-6-astra high, fast tier. Leo-Ask-Trace: ask-a933b133a7 Follow-ups: 2. They land as checklist items in this PR's one follow-up tracking issue in this repo ( SHIP at 4090d55 Visual verdict: no images; Leo tries the build
Follow-ups:
|
…5 unnecessary_to_owned) Leo-Ask-Trace: ask-a933b133a7 Agent-Session: https://cmux.com/deeplink/agent?id=aid-a115f4176bb98d5b39bd
|
Review (codex, router-review): SHIP at c857477 Reviewer: codex gpt-6-astra high, fast tier. Leo-Ask-Trace: ask-a933b133a7 Follow-ups: 2. They land as checklist items in this PR's one follow-up tracking issue in this repo ( SHIP at c857477 Visual verdict: no images; Leo tries the build
Follow-ups:
|
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Leo-ask: ask-a933b133a7
Leo-Ask-Trace: ask-a933b133a7
Leo, 2026-11-05, looking at the Claude Code desktop app's task list, proposed-session cards, session links and wrap-up box: "presumably specifically in the claude code desktop there are a few skills/system prompts that let you guys know about them... cmux-next should add a few and we can think about extending them as well and letting other users define stuff too!"
Design and audit of what agents were told before: plans/cmux-next/agent-guidance-DESIGN.md.
What every agent cmux runs now gets
Five pieces of guidance, each tied to a tool cmux already has and saying when it applies:
TodoWrite, Codexupdate_plan(drawn as the chat's checklist)start_session,offer_session,suggest_tasks,app_agent_opencmux-live,cmux-customizationskillsEach harness gets it through its own mechanism:
cmux:cmux-chatin the session plugin (only its description is in the prompt), plus a short first-turn pointer so the plan and recap rules hold before the skill is read.CODEX_HOMEor repo.The guidance is its own context part (
cmux-guidance), so a person's Context viewer override of the default rule keeps it. The Context viewer lists it with its tokens.The person's layer
~/.config/cmux/skills/<name>/SKILL.md(standard SKILL.md frontmatter). Claude Code gets them as a second session plugin,cmux-user:<name>(regular files only, no symlinks, size and count limits, written once per content hash). Other harnesses get an index (name, description, path) and read the file when it applies.agents.guidance.claude,agents.guidance.codex,agents.guidance.otherAgents,agents.guidance.userSkills, in Settings > Agents > Guidance and Skills, the palette,cmux settings, and MCPsettings_get. They apply to new chats.Verification
cargo fmt --check,cargo test -p acpmux --lib(agent_guidance, context_inventory, agent_tools, prompt_line_tests: 41 passed),--test tool_inventory,--test hub_integration prompt_context,cargo clippy -p acpmux --all-targets -D warnings: all pass.AgentGuidanceSettingsTestspass.SettingsSchemaExportTests.exportIsFreshfails only becausesettings-schema.jsonis generated; base autofix regenerates it (never hand-edited)."cmux chat guidance (cmux defaults; the person's own instructions win).",A two-or-three-sentence recap covering what is true, verified, unfinished, and any decision needed.andPELICAN-42: Tag the commit, then write the notes.The canary is only in the user skill, so the skill index reached Codex and it read the skill.cmux:cmux-chatandcmux-user:release-checklistattached (session tool rows), but no turn completed: the model gateway returned repeated 529 Overloaded on one host, and the Claude login on the other is at its weekly limit. Not yet shown in use.Observed / Not run
Observed: the runs above. Not run: a tagged app build (the palette row,
cmux settings get|set agents.guidance.codex, MCPsettings_get), and a completed Claude Code turn.Changelog
~/.config/cmux/skillsreach every chat; Settings > Agents > Guidance and Skills.acpmux owner (PL-acpmux) notice:
plans/cmux-next/acpmux-audit.md. Sibling work this builds beside: the plan rendering ("Agent plans in cmux chats") and the Live Web Reload PR that adds thecmux-liveskill.Agent session: agent session
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Agents in cmux chats now know how cmux shows their work, and the person's own skills reach every chat.
Built-in guidance
cmux:cmux-chatskill tells Claude Code to keep a plan checklist, start sub-sessions only when asked (offer them otherwise), link sessions in inline code, and end changed turns with a recap. A short first-turn pointer says when to read it, and side-session tools are named only when cmux lists them, so the pointer stays around 95 tokens.AGENTS.md; nothing is written to the person'sCODEX_HOMEor repo.The person's layer
~/.config/cmux/skills/<name>/SKILL.mdreach every chat: acmux-userplugin for Claude Code (regular files only, withSKILL.mdfiles copied first under a 32 MiB overall budget and per-file limits so a stray huge folder is not copied on each session start; a symlinkedSKILL.mdis refused), and an index for other agents whose descriptions are cut at 300 characters.agents.guidance.{claude,codex,otherAgents,userSkills}(on by default) in Settings > Agents > Guidance and Skills apply to chats created after the change; turning off the Claude switch also leavescmux-chatout of the plugin.Written for commit c857477. Summary will update on new commits.