pierreboissinot/openspec-status

一個 Claude Code 外掛,會在提示列下方的狀態列顯示目前的 OpenSpec 變更及已完成的任務數,支援本機根目錄與共享儲存區。
pierreboissinot/openspec-status

一個 Claude Code mod,會在提示列下方的狀態列保留正在處理的 OpenSpec 變更,以及其中已勾選的任務數量。它支援本機的 openspec/ 根目錄,也支援由 openspec/config.yaml 中的 store: 宣告的共享儲存區。它會從工作階段中 OpenSpec 工作流程最後命名的變更,或目前的 git 分支,判斷作用中的變更,並在工作階段開始、/clear 之後、工作目錄變更時、每回合結束、執行 /openspec 時,以及工作流程命名另一個變更時重新整理。它只會執行 openspec list --json 與 git branch --show-current,從不寫入磁碟,也從不呼叫模型。透過儲存庫自己的外掛 marketplace 安裝。
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add pierreboissinot/openspec-status claude plugin install openspec-status
A Claude Code mod that keeps the OpenSpec change you are working on, and how many of its tasks are ticked, in the status line under the prompt. It works with a local openspec/ root and with a shared store declared by store: in openspec/config.yaml.

In the OpenSpec repository, after /opsx:apply add-global-install-scope:
openspec add-global-install-scope 0/38 tasks
Claude Code draws the ⚠ openspec-status: prefix in front of every plugin's status line; it does not mean something is wrong.
The repository is its own plugin marketplace:
claude plugin marketplace add pierreboissinot/openspec-status
claude plugin install openspec-status@openspec-status
claude plugin marketplace update openspec-status picks up new releases.
To run it from a clone instead:
git clone https://github.com/pierreboissinot/openspec-status.git ~/src/openspec-status
claude --plugin-dir ~/src/openspec-status
Where no flag can be given (the desktop app, an SDK host), set CLAUDE_CODE_PLUGIN_DIRS to the same path, in the environment or in the env block of ~/.claude/settings.json:
{ "env": { "CLAUDE_CODE_PLUGIN_DIRS": "~/src/openspec-status" } }
PATH.git, for the current branch.claude plugin validate .claude-plugin/plugin.json from the plugin folder after an update.openspec CLI, as every /opsx workflow does: --change <name>, new change <name>, or an argument that is the name of a change (openspec validate <name>). Launchers such as npx, pnpm or env in front, and a versioned package (npx @fission-ai/openspec@latest), are recognized; openspec quoted inside another command's argument is not;/opsx:* command, when it is the name of a change.Changing directory or /clear forgets the workflow's change. A change created during the turn (openspec new change) shows up once it is listed. A Bash call you refuse at the permission prompt names nothing.
At session start, after /clear, after a change of working directory, at the end of every main-conversation turn, on /openspec, and as soon as a workflow names another change.
/openspecReads the changes again, updates the status line, and answers with a one-line summary:
| Context | Answer |
|---|---|
| Local root | openspec: local, 30 active changes |
| Declared store | openspec: store:team-plans, 12 active changes |
| Store declared but not registered on this machine | openspec: unknown store, <the fix the CLI suggests> |
| No root (after leaving an OpenSpec project) | openspec: no OpenSpec root resolved from <cwd> |
When the CLI call fails, the answer keeps the last known summary and ends with (refresh failed: <error>).
/openspec is registered only once an OpenSpec root has been resolved. Claude Code cannot unregister a command, so after moving to a directory without OpenSpec in the same session it stays listed.
openspec CLI, it shows nothing at all: no status line, no command.openspec list --json and git branch --show-current, in the session's working directory.claude plugin validate --strict .claude-plugin/plugin.json
claude plugin validate --strict .claude-plugin/marketplace.json
claude plugin test .
npx -p typescript@5 tsc -p .
The tests run against the engine's test kit with recorded openspec list --json outputs in hooks/fixtures/; they need neither the CLI nor git. tsc reads the engine's declarations from .claude-plugin/types/, which Claude Code writes the first time a session loads the mod from this folder.
The demo is regenerated with VHS, from the repository root:
vhs demo/demo.tape
It records a session against a throwaway project and Claude Code home built by demo/setup.sh, with only local commands, so it makes no API call.
.github/workflows/ci.yml runs the checks above on every pull request and push to main, against the pinned Claude Code version.
To release, bump version in .claude-plugin/plugin.json and merge to main. .github/workflows/release.yml runs CI, creates the openspec-status--v<version> tag with claude plugin tag, and publishes the GitHub release.
openspec doctor --json in the status line: a store checkout behind its upstream, an unregistered reference (change add-doctor-warning).openspec status --change <id> --json).affected_areas).