Skip to content

Publish the official Dispatch plugin for Claude Code and Codex - #952

Merged
selfcontained merged 3 commits into
mainfrom
agt_786ebdc45489/build-dispatch-plugin-claude-codex
Aug 13, 2026
Merged

Publish the official Dispatch plugin for Claude Code and Codex#952
selfcontained merged 3 commits into
mainfrom
agt_786ebdc45489/build-dispatch-plugin-claude-codex

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Makes this repo a plugin marketplace for both Claude Code and Codex, shipping eleven narrow skills that teach agents to use Dispatch's own capabilities.

Closes the dispatch-usage-skills-bundle idea. Manual install only — stale-version detection, auto-attach, and marketplace submission stay deferred per Brad's decision.

What ships

.claude-plugin/marketplace.json      # Claude Code marketplace
.agents/plugins/marketplace.json     # Codex marketplace
plugins/dispatch/
├── .claude-plugin/plugin.json       # Claude Code manifest
├── .codex-plugin/plugin.json        # Codex manifest
├── skills/<name>/SKILL.md           # 11 skills, shared by both platforms
├── evals/                           # 4 ablation cases
└── README.md
Tier Skills
Migration — existing doc-tool payloads become skill bodies whiteboard, personas
Extraction — the conditional launch-guidance blocks review-workflow, ui-validation
Discovery — "agents don't know it's an option" sharing, brain, subagents, repo-tools
Discovery, low-frequency jobs, templates, personalities

Install:

claude plugin marketplace add selfcontained/dispatch && claude plugin install dispatch@dispatch
codex plugin marketplace add selfcontained/dispatch && codex plugin add dispatch@dispatch

Verified end-to-end on both CLIs

Against claude 2.1.231 and codex-cli 0.147.0, using throwaway CLAUDE_CONFIG_DIR / CODEX_HOME roots — not the machine's real config.

Claudeclaude plugin validate passes on both the marketplace and the plugin (clean under --strict too). After marketplace add + install, claude plugin details dispatch@dispatch reports:

Component inventory
  Skills (11)  brain, jobs, personalities, personas, repo-tools, review-workflow,
               sharing, subagents, templates, ui-validation, whiteboard
  Agents (0)   Hooks (0)   MCP servers (0)   LSP servers (0)

Projected token cost
  Always-on:   ~592 tok   added to every session

Codexcodex plugin marketplace add + codex plugin add both exit 0 non-interactively and install 0.1.0 from the Codex-native manifest. codex debug prompt-input shows all eleven reaching the model prompt inside <skills_instructions>, namespaced dispatch:<name> with the right descriptions — so this is confirmed model-visible, not just installed.

Design

The description is the product. Descriptions load into every session unconditionally; bodies load only on a match. So they're written as symptom triggers rather than feature labels — an agent that doesn't know a capability exists will never match its name, but will match a description of the situation it's currently in. Total always-on cost is 2,258 chars (~592 tokens), under the 2,891 chars launch guidance already injects.

Narrow skills, not mega-skills. Eleven short descriptions always-on, exactly one body loaded on a match. A single "automations" skill would load four unrelated bodies whenever one of them fired.

Dual manifests. Codex does fall back to reading .claude-plugin/, but that's undocumented by OpenAI, so the Codex-native manifests are carried explicitly rather than relying on it.

Explicit version in both manifests — Claude uses it as the update cache key, so routine commits to main don't register as a plugin update. Omitting it would resolve the version to the commit SHA and make every push look like a new release.

Purely additive. Launch guidance is not trimmed and the documentation-bearing MCP tools (whiteboard_howto, persona_templates) stay in place; content lives in two places for now. Deleting either would regress any repo that hasn't installed the plugin. Both trims are follow-ups gated on a real soak period.

Deliberately not skills: dispatch_event, pin discipline, and session naming. Skills only load on a task match, so always-relevant protocol obligations can't move out of launch guidance.

The vitest guard

apps/server/test/plugin-manifest.test.ts checks the manifests agree on name/version/source shape and that every SKILL.md's frontmatter parses.

This isn't speculative. claude plugin validate caught a real defect mid-build: an unquoted colon in the personalities description broke its YAML frontmatter, and the failure mode is silent — the skill still installs, it just loads with empty metadata and never fires. CI has no claude/codex CLI to catch that. Confirmed the guard fails on the reintroduced bug and passes once fixed.

It also asserts the always-on description budget stays under the 2,891-char launch-guidance ceiling, so the plugin can't quietly grow past the thing it augments.

Evals

Four ablation cases (sharing, brain, subagents, repo-tools) in the documented prompt.md + graders/criteria.md layout, aimed at --ablation with-without so the no-plugin baseline arm gives a score delta.

They have not been executed. claude plugin eval is in early access and refuses to run on 2.1.231 — every invocation returns `plugin eval` is currently in early access and exits. plugins/dispatch/evals/README.md says so plainly; treat the criteria as a first draft to tune once the runner is available, not as a passing suite.

sharing is the sharpest case in the set: the rule it encodes already exists in two always-on places (launch guidance and CLAUDE.md) and still gets ignored, so a measurable delta there would be evidence that arriving at the moment of action beats more background text.

Checks

  • pnpm run check — passes
  • pnpm run test — 3,635 passed, 9 skipped across all three suites
  • pnpm run format — clean
  • pnpm run test:e2e — run locally before pushing (to avoid colliding with CI's stack)
  • No apps/web/ changes, so finalize:web doesn't apply

The plugin-format spec work in #951 was pulled into this directly rather than linked; that PR can be closed without merging.

🤖 Generated with Claude Code

selfcontained and others added 3 commits August 13, 2026 08:48
This repo now doubles as a plugin marketplace. Eleven narrow skills teach
agents to use Dispatch's own capabilities — the Brain, subagents,
.dispatch/tools.json, artifact sharing, the review workflow, the whiteboard,
jobs, templates, personas, personalities, and UI validation.

Dual manifests, one tree: `.claude-plugin/marketplace.json` +
`.agents/plugins/marketplace.json` at the root, and both plugin manifests under
`plugins/dispatch/`, sharing a single `skills/` directory. Codex does fall back
to reading `.claude-plugin/`, but that behavior is undocumented by OpenAI, so
the Codex-native manifests are carried explicitly.

The skill description is the product: descriptions load into every session
unconditionally while bodies load only on a match, so they are written as
symptom triggers rather than feature labels. Total always-on cost is ~2.3 KB
(~592 tokens by `claude plugin details`), below the 2,891 chars Dispatch's own
launch guidance already injects.

Purely additive — launch guidance is not trimmed and the documentation-bearing
MCP tools (`whiteboard_howto`, `persona_templates`) stay in place. Trimming
either is a follow-up gated on how adoption actually goes.

Adds a vitest guard for the manifests and skill frontmatter: CI has no
claude/codex CLI, and a SKILL.md whose YAML frontmatter fails to parse still
installs cleanly — it just loads with empty metadata and never fires. That
exact bug (an unquoted colon in a description) was caught during this work.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- brain: `brain_list_remove` takes `index` or `where {field, equals}`, not a
  `match` param. Documents the object shape and that indexes shift on removal.
- brain: narrow the description so it no longer overlaps `subagents` on live
  handoff — it now reads as durable storage that survives the session, leaving
  coordination to `subagents`.
- repo-tools: the mtime cache applies to hooks, not tools. Measured against a
  live server: `handleMcpRequest` rebuilds per request and `loadRepoTools` has
  no cache, so an edited description and a newly added tool both appeared in the
  next tools/list with no restart. The real constraint is client-side — the CLI
  holds the tool list it fetched at session start.
- Root README: state the unsigned/unsandboxed/full-privileges warning above the
  install commands rather than only behind a link.
- Plugin README: the "entire contents" claim was literally false (README and
  evals/ also exist). Scope it to runtime-relevant components and give the exact
  commands to verify, plus `claude plugin details`' component inventory.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Per Claude Code's docs, installing from a marketplace is explicitly a two-step
process and the shell `claude plugin install` doesn't take effect in a running
session — plugins load on next start or via `/reload-plugins`. The README
omitted that, so a shell installer would expect the skills immediately.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@selfcontained
selfcontained merged commit fe8a46b into main Aug 13, 2026
1 check passed
@selfcontained
selfcontained deleted the agt_786ebdc45489/build-dispatch-plugin-claude-codex branch August 13, 2026 15:23
selfcontained added a commit that referenced this pull request Aug 15, 2026
The official plugin (#952) shipped with a README section and nothing else —
no in-app docs section and no ambient tip, so the only place a user learns
it exists is the GitHub README.

- New docs-pane section "Plugin" covering trust (unsigned/unsandboxed, no
  executable components, how to verify), the two-step marketplace + install
  flow on Claude Code and Codex, the eleven skills and what each fires on,
  and update mechanics (Codex has no update subcommand).
- Ambient tip pointing at plugin#plugin-install, since 0.34.1 (the plugin
  landed after the v0.34.0 release commit).
- README's plugin blurb named 8 skills; the tree has 11 — personas,
  personalities and ui-validation were missing. Same fix in
  plugins/dispatch/README.md's intro paragraph.
- README's "user-facing documentation" list was missing browser feedback,
  service resources and the new plugin section, and said "jobs" where the
  section is templates and jobs.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant