Skip to content

About

Marshal plugins for coding agents (Claude Code, and more). Mirror of marshal apps/agent-plugins.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Marshal agent plugins

Plugins that bring Marshal into coding agents. One folder per agent harness:

Folder Harness Plugins
claude/ Claude Code marshal

This folder is published as the public repo marshal-org/agent-plugins (a mirror; changes land here, in the marshal monorepo). Its root .claude-plugin/marketplace.json makes the repo a Claude Code plugin marketplace named marshal. A later harness (Codex, Gemini CLI, ...) gets its own folder and its own catalog file.

Claude Code: marshal

One plugin, marshal, in claude/marshal/:

Part Where it works What it does
Skills delegate, inbox, debug-run, improve-deputy, suggest-stack Anywhere the Marshal MCP is connected Teach Claude to hand a task to a Marshal run, triage what waits on you, find why a run failed, find where a deputy's runs lose time and money and what to change, and build the org's first stack and manifests from your repositories
Marshal Autopilot, skill autopilot Claude Code (it runs in the plugin's hooks) Answers the questions your runs ask, by rules you set, and notifies you about the rest; starts in Shadow (shows what it would answer). Watches running runs' PR checks and tells a run which check failed and why. Policy, train overlay and journal are local files, mode 0600, in the plugin's data folder
Fleet pane /marshal-fleet Claude Code on a laptop, or inside a space with marshal-orchestration Your runs on one Marshal cell: what needs you (answer with a press), failed or parked, running, queued, recently ended. Status line, toasts, a desktop notification on a new ask
Space inspector /marshal-space Claude Code inside a Marshal space (elsewhere the command says so) The space's own overview, audit, requests, reviews, ports, changes and cost. Read only

The panes are a Claude Code mod: a TypeScript hooks module (hooks/register.tsx) that draws with ui.render and reads Marshal through the MCP server Claude Code already has ($.mcp.call). There is no other network path and no credential in the plugin.

Spec and decisions: docs/specs/feat-claude-plugin/.

Install (laptop)

One command, with your own Marshal's MCP address (the Marshal web app shows this exact command, filled in, under Connect an agent). Run it again to upgrade: install does nothing when the plugin is there, and update refreshes the marketplace and moves to the latest version (restart Claude Code to load it).

claude plugin install marshal --marketplace marshal-org/agent-plugins --config url=https://<your-marshal>/mcp && claude plugin update marshal@marshal

Cannot add marketplace "marshal": its source doesn't match? You added the marshal marketplace earlier from another source (a branch or a local folder). Run claude plugin marketplace remove marshal once, then the command above.

Each plugin is released on its own, when its version changes: the GitHub release <plugin>-v<version> (for example marshal-v0.3.4) lists what changed, from the plugin's CHANGELOG.md. Pin one with marshal@marshal-org/agent-plugins#marshal-v0.3.4.

Then in Claude Code: /mcp, pick plugin:marshal:marshal, sign in. Your org must have MCP access turned on. Then /marshal-fleet opens the pane beside the transcript (fullscreen terminal) or inline.

The url setting is the address of the plugin's own MCP server (.mcp.json), so each customer's internal domain works. The Marshal web app's Connect an agent card gives the command above with your address filled in. Until it is set, url holds a placeholder (https://marshal.invalid/mcp, which never resolves) and the panes say how to connect. Already added Marshal with claude mcp add? Set url to the same address and Claude Code keeps one server, not two. Inside a space the plugin always reads the space's own Marshal server (marshal-orchestration), whatever url holds.

From this repo while it is internal: claude plugin marketplace add ./apps/agent-plugins, then claude plugin install marshal@marshal --config url=....

Settings (/plugin configure marshal): url (the MCP address), server (which connected MCP server the panes read, empty = the plugin's own, else the first Marshal server), fleet (auto / command / off; default command, opened with /marshal-fleet), space (same, inside a space; default command, opened with /marshal-space), pollSeconds (default 20, floor 5), notify (desktop notification on a new ask).

Claude Desktop

Each release on marshal-org/agent-plugins carries marshal-plugin-<version>.zip and its .sha256: the plugin alone, with .claude-plugin/plugin.json at the archive root.

  1. Download the zip from the release (check it against the .sha256 if you want).
  2. Upload the zip to Claude Desktop as a plugin.
  3. Connect Marshal: point Claude Desktop at your Marshal MCP address (https://<your-marshal>/mcp, the plugin's url setting) and sign in. Your org must have MCP access turned on.

In Claude Desktop the upload gives you the skills (delegate, inbox, debug-run, improve-deputy, suggest-stack; autopilot needs Claude Code, where the plugin's hooks run). The panes are a Claude Code mod and run in the Claude Code terminal. The live view in Claude Desktop is the fleet card: ask "show my Marshal fleet" (see below).

What it shows:

  • Fleet pane (/marshal-fleet): what needs you as cards with answer buttons, each naming the run it comes from; failed or parked runs (clear a failed one with its Clear button; the pane remembers it across sessions); running and recently ended runs with their pull requests (when the server has runs_prs); launches queued behind a concurrency limit, with their place and reason; details on hover, r to refresh.
  • Band above the prompt: the first open ask and the run it comes from, answerable in place. No digit hotkeys on purpose: an answer can merge a PR, so it takes a deliberate click.
  • Status line and toasts, and a desktop notification on a new ask.
  • Autopilot strip at the top of the pane, once Autopilot is set up: "Autopilot is on" with a moving indicator, the latest answers and would-answers with their rule, and what waits on you. p pause or resume, s stop or turn on, e explain the selected entry, o open its run.

Chat apps that show MCP Apps cards (Claude Desktop, for one) get the same fleet as a card in the conversation, from the Marshal MCP's fleet tool: the same sections, a refresh every 20 seconds while it is on screen, and answer buttons. It needs no plugin, only the Marshal MCP connection. A client that did not declare card support gets the fleet as text, with a pointer to /marshal-fleet.

Inside a space

The inspector turns on by itself when /run/marshal-agent.sock exists (every Marshal space has it). It reads the space through the Marshal MCP that the marshal-orchestration package wires into the agent (server name marshal-orchestration), using its read-only inspect_self capability: space: "self", space_id: "self" and run_id: "self" resolve server side to the credential's own space and run. The capability is on by default (marshal-orchestration 1.0.6); a stack that lists its own tools without it turns it off.

/marshal-fleet works in a space too: it reads runs through the same marshal-orchestration server, with what that server's credential may see. It is read only after you open it, and it sends no desktop notifications there. Outside a space, /marshal-space answers that it works only inside a space.

It is read only, on purpose. The agent shares the container with the person, so any button the person can press there, the agent can press too. Approving a network request or a policy change from inside the space would let the agent unblock itself. Approvals stay in the web app.

Getting the plugin into a space: list it in the claude-code package's plugins setting, and Claude Code installs and updates it from this marketplace. For a space with no access to GitHub, the plugin content type of APM can ship a plugin folder instead (see docs/specs/feat-apm-claude-plugin/).

Develop

cd apps/agent-plugins/claude/marshal
claude plugin validate .     # manifest + what the hooks module hooks and calls
claude plugin test .         # tests/*.test.ts(x) against the engine's test kit
claude --plugin-dir .        # a session with the plugin loaded from disk, hot reloaded

Type-check: the engine writes its API types into .claude-plugin/types/ (git-ignored) when it loads the plugin from a folder; then npx -y -p typescript@5.6.3 tsc -p ..

Rules the validator enforces, learned the hard way:

  • A function that takes $ must be declared at the top level of a file (or imported from one). No closures over $ inside register.
  • Each file that reads or writes a $.state value declares its own atom(...) with literal plugin and key.
  • ui.render matchers use literal ids.
  • Commands register as /<name>, not /<plugin>:<name>.
  • $ is never put in an object: pass it as a parameter.

Autopilot's model eval (evals/autopilot-eval.sh) runs the decision prompt against a real model through claude -p and fails on any protect or never-auto miss. Run it on any change to the decision prompt (hooks/autopilot-decide.ts, hooks/autopilot-presets.ts); it spends tokens.

CI (agent-plugins-test) runs validate, test and tsc on every PR that touches this folder.

About

Marshal plugins for coding agents (Claude Code, and more). Mirror of marshal apps/agent-plugins.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages