Beads Plugin
This is the shared Claude/Codex plugin package for Beads. Claude and Codex use separate manifest files, but they share the same skill tree.
Layout
.codex-plugin/plugin.jsondescribes the Codex plugin..claude-plugin/plugin.jsondescribes the Claude plugin.skills/beads/contains the plugin-owned Beads skill..codex-plugin/hooks/hooks.jsoncontains Codex-only lifecycle hooks for startup and compaction-aware context refresh.- The Claude marketplace entry lives at
.claude-plugin/marketplace.json.
Codex Hooks
The Codex plugin exposes native hooks through .codex-plugin/plugin.json, which points at .codex-plugin/hooks/hooks.json.
With Codex 0.129.0+, /hooks shows these lifecycle handlers:
SessionStartrunsbd codex-hook SessionStartforstartup|resume|clearand injects fullbd primeoutput.PreCompactrunsbd codex-hook PreCompactformanual|autoand warns ifbd prime --memories-onlycannot run.PostCompactrunsbd codex-hook PostCompactformanual|autoand records a one-shot refresh marker in the user cache/temp directory.UserPromptSubmitrunsbd codex-hook UserPromptSubmitand, when a refresh marker exists, injects fullbd primeoutput once before clearing it.
If the plugin is not installed, bd setup codex writes an equivalent .codex/hooks.json fallback and enables [features].hooks = true.
Local Development
Claude Code uses .claude-plugin/marketplace.json, which points at this shared package root.