Muse

Muse is an agent CLI host with no documented MCP server support, so there’s nothing to wire a config into. KYA still gates it, through kya wrap, which evaluates a command before it runs and records the decision in the record (trail).

Setup

Nothing to install beyond the KYA CLI itself:

npm i -g @shield-agent/kya

Then put wrap in front of however you invoke Muse: a shell alias, a script, a cron job:

kya wrap --tool-id muse.run -- muse run "Summarize this diff"

Wrap exits 0 on Allow, 4 on Hold (a person must approve), 1 on Deny, so kya wrap … && ./next-step.sh can’t skip the gate.

What KYA reports

Every wrapped invocation leaves a record row: tool id, decision, timestamp, duration. kya receipt --open shows them; --offline rows stay local.

Files written

None. Wrap writes record rows under .kya/ in the project where you run it; Muse’s own config is untouched.

Verify

kya wrap --offline --tool-id Write --irreversible --args '{"path":"x.ts","content":"hi"}'

Expect a REQUIRE_APPROVE row. An irreversible write with no policy never auto-allows. Then wrap a trivial Allow-path call and see both rows on the receipt. This exact record-row check runs in CI against the recipe.

Uninstall

Nothing was wired. Delete the wrap from your scripts/aliases and remove .kya/ if you don’t want the local record.

Troubleshooting

Honesty note

Wrap gates the commands you route through it. Muse invocations made any other way (an interactive session, an unwrapped script) never touch KYA. Coverage is exactly the set of invocations you wrap, no more.

If Muse ships MCP support

This page gets promoted to a kya connect recipe when a verified MCP config path exists. The bar for promotion is the checklist in docs/host-recipe.md.