Skip to content

feat: distribute Macuse as an agent plugin for Claude Code and Codex - #2

Merged
ahonn merged 4 commits into
mainfrom
feat/agent-skills
Aug 3, 2026
Merged

ahonn merged 4 commits into
mainfrom
feat/agent-skills

Conversation

@ahonn

@ahonn ahonn commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What

Packages Macuse as an installable agent plugin for Claude Code and Codex, alongside the existing .mcpb bundle. The plugin ships the MCP server together with three skills, so agents get the workflows and parameter shapes up front instead of discovering them by trial and error.

.claude-plugin/marketplace.json    Claude Code catalog
.agents/plugins/marketplace.json   Codex catalog
plugins/macuse/                    manifests, launcher, skills

Both catalogs point at plugins/macuse in this repo, so one push updates every channel.

Skills

Skill Covers
macuse-setup Three-layer top-down diagnosis (app → client → permissions), driven by a read-only probe
macuse-apps Calendar, Mail, Reminders, Notes, Messages, Location — per-domain detail deferred to references/
macuse-computer-use Accessibility-based GUI automation

Verified against the real CLIs

Rather than trusting the docs, the install path was run end-to-end against codex-cli 0.144.0 and claude plugin validate --strict. That surfaced four defects, all fixed in ea5a703:

  • ON_FIRST_USE is not a valid enum value (ON_INSTALL | ON_USE). The Codex marketplace file failed to parse outright — the channel was dead on arrival.
  • The install command is codex plugin add, not codex plugin install.
  • Codex does not substitute ${CLAUDE_PLUGIN_ROOT} in .mcp.json. Its own bundled plugins use a relative command + "cwd": ".", so Codex gets .mcp.codex.json in that form while Claude Code keeps the placeholder.
  • The same non-substitution applies to skill text, so macuse-setup spells out both routes to check.sh.

Confirmed working: marketplace parse, plugin install, version resolution (1.2.0 read from the manifest), skill/launcher layout in the install cache, and all three launcher branches (relative-path resolution, MACUSE_BINARY override, missing-binary exit 1). Codex config was restored byte-identical afterwards.

Release impact

The feat: commit bumps the release to 1.3.0 on merge. scripts/sync-manifest-version.js now propagates the version into both plugin manifests — clients only offer an update when that string changes, so a stale manifest would silently strand users on old skills.

Plugin files are excluded from the .mcpb bundle (24 → 9 files, 159kB → 141kB); Claude Desktop never reads them.

Known limitation

Write operations fail on Codex because it auto-declines consent prompts from third-party MCP servers (openai/codex#18896). Reads work normally. This is documented up front in both READMEs and the plugin description so users hit it knowingly. It also makes the Codex official directory a non-starter for now — that flow additionally requires a public production MCP URL and domain verification, which a 127.0.0.1 stdio server cannot satisfy.

ahonn added 4 commits August 3, 2026 16:12
Package the Macuse MCP server as an agent plugin alongside three skills, so
agents get the workflows, parameter shapes, and permission-error recovery
paths up front instead of discovering them by trial and error.

Skills:
- macuse-setup: three-layer top-down diagnosis (app, client, permissions)
  driven by a read-only KEY=VALUE probe
- macuse-apps: Calendar, Mail, Reminders, Notes, Messages, Location, with
  per-domain detail deferred to references/
- macuse-computer-use: Accessibility-based GUI automation

Claude Code and Codex read the same skills/ directory, so only the manifests
differ. The MCP server is resolved through a shell launcher rather than a
hardcoded path in .mcp.json, since the binary ships with the macOS app and
may live outside /Applications (override with MACUSE_BINARY).

Both marketplace catalogs point at plugins/macuse in this repo, so a single
push updates every distribution channel.
…ndle

Claude Code and Codex only offer users an update when the plugin version
string changes, so a manifest left behind at release time silently pins
everyone to the skills they first installed with. Extend the version sync to
cover both plugin manifests and fail loudly if one goes missing, and add them
to the semantic-release git assets.

The plugin files are dead weight inside the .mcpb bundle, which Claude Desktop
loads without ever reading them; excluding them drops the archive from 24 to
9 files. Also ignore .impeccable/, an agent tooling cache that was failing
lint and would otherwise be committed.
The repo now ships two artifacts rather than one, so lead with a table
routing each client to its install path and describe what the plugin adds
over the bundle. Document the Codex consent limitation up front
(openai/codex#18896) so users hit it knowingly rather than as a bug.
Verified the install path end-to-end against codex-cli 0.144.0 instead of
trusting the docs, which surfaced four defects:

- `ON_FIRST_USE` is not a valid authentication policy; the enum is
  `ON_INSTALL` | `ON_USE`. The marketplace file failed to parse outright,
  so the entire Codex channel was dead on arrival.
- The install command is `codex plugin add`, not `codex plugin install`.
- Codex does not substitute `${CLAUDE_PLUGIN_ROOT}` in .mcp.json. Its own
  bundled plugins use a relative command with `"cwd": "."`, so Codex now
  gets .mcp.codex.json in that form while Claude Code keeps the placeholder.
- The same non-substitution applies to skill text, so macuse-setup now
  spells out both ways to reach check.sh rather than assuming expansion.

Also rename the marketplace to `macuse-plugins`, avoiding the doubled
`macuse@macuse` selector in every install command.
@ahonn
ahonn merged commit a57d01e into main Aug 3, 2026
@ahonn
ahonn deleted the feat/agent-skills branch August 3, 2026 06:40
github-actions Bot pushed a commit that referenced this pull request Aug 3, 2026
# [1.3.0](v1.2.0...v1.3.0) (2026-08-03)

### Features

* distribute Macuse as an agent plugin for Claude Code and Codex ([#2](#2)) ([a57d01e](a57d01e)), closes [openai/codex#18896](openai/codex#18896)
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant