severinlindenmann/orch-core/tree/main/plugins/orch-session
orch-session
現在のセッションが持つ orch チケットを、ステータス行、プロンプト上の帯、/orch ペイン、引き継ぎトーストで表示する Claude Code プラグイン。
この mod について
orch-session は、現在のセッションが持つ orch チケットだけを表示する Claude Code プラグインです。バックログもキューも表示しません。すべては誰の番かを先頭に置き、アイコンと語の組み合わせで示します(色だけには頼りません)。色は orch-core のデザインシステムに従います。
- ステータス行:取得したチケットごとに1項目、例:
◐ L-0001 working ● L-0002 Answer Q1。 - プロンプト上の帯:最も重要な行動を自分の番から先に表示、例:
● L-0002 0/1 Your move: Answer Q1 · Which one?。 /orch:チケットごとに1枚のカードを持つペイン。誰の番かと内容、選択肢付きの未解決の質問、推奨選択肢、orch answerコマンド、タスク、親 epic、最後の verdict、PR を表示します。- トースト は引き継ぎ時だけ:自分の番の開始・終了、チケットのブロック、verdict、取得の成立・喪失。
読み取り専用です。orch list --mine --json と orch show <id> --json を呼び出し、各 agent orch コマンドの後と定期的に(活動状況に応じて 20s/60s/5m)、一度に1回だけ更新します。更新に失敗すると最後の完全な状態を保ち、ペインに報告します。書き込みコマンドや人間専用コマンドを実行することはなく、orch answer コマンドを表示するだけです。
要件:PATH 上の orch CLI、orch-core schema 1.4.0+、function-hook プラグインに対応した Claude Code ビルド。
claude plugin install orch-session@orch-core
これは意図的に独立したプラグインです。そのため Claude Code の hooks-API の破壊的変更が orch-core の guard と session-start hooks に影響しません。開発には node --test、claude plugin validate、claude plugin test、claude --plugin-dir を使います。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add severinlindenmann/orch-core claude plugin install orch-session
原文 / README
orch-session
Shows the orch tickets this session holds, inside Claude Code. Nothing else: no backlog, no queue.
Everything leads with whose move it is, as orch-core says it (move in orch show --json, the dashboard's own rules) and in its design system's colours: pink ● only for your move (answer a question, approve a plan, re-approve a changed gate, do your task, give the verdict), blue ◐ while the agent works, amber ▲ when the ticket is blocked, red ✕ when orch cannot be read. Every status is an icon and a word, never colour alone.
- Status line:
◐ L-0001 working ● L-0002 Answer Q1, one entry per claimed ticket. - Band above the prompt: one row with the move that matters most, yours first:
● L-0002 0/1 Your move: Answer Q1 · Which one?. /orch: a pane with one card per ticket: whose move and what, an open question with its options, the recommended one and theorch answercommand to run in your own terminal, every task (doing and blocked first), the epic it belongs to, the last verdict and the PR.- Toasts on hand-overs only: your move starts or ends, the ticket is blocked, a verdict, a claim gained or lost.
It only reads: orch list --mine --json with the session's id and orch show <id> --json for each ticket. It refreshes after every orch command the agent runs and every 20 seconds while things change (60 seconds after three quiet polls, 5 minutes where there is no orch workspace), one refresh at a time, without holding up the tool call. A refresh in which any read fails keeps the last complete state and says so in the pane. It never runs a command that writes or that only a human may run; it shows the orch answer command, it does not run it.
What it shows. orch list --mine lists only the claims held by this session's own id, so a fresh claude shows nothing until the agent runs orch claim. Epics cannot be claimed: an epic appears only as "in epic DEMO-0031" on its claimed children, without progress of its own (open it in Mission Control for that). In a folder without an orch workspace, /orch shows a short toast instead of a pane, and the refresh slows to every 5 minutes.
The status line is drawn by Claude Code, which currently styles every plugin status like a warning (⚠ orch-session: ...) and ignores plugin colours there. That is the host's behaviour, so the line is kept short.
The plugin has no rules of its own for whose move it is. An orch that predates move (orch-core schema below 1.4.0) shows "Update orch-core" on each ticket and an amber note in the pane, never a guess.
Install
Needs the orch CLI on the PATH, orch-core with schema 1.4.0 or newer (see orch-core's README, "The CLI in your own terminal"), and a Claude Code build with function-hook plugins (early access; the API may change between releases).
claude plugin install orch-session@orch-core
It is a separate plugin on purpose: if a Claude Code update breaks the hooks API, orch-core's guard and session-start hooks keep working.
Develop
node --test plugins/orch-session/test/*.spec.ts # the logic, against real orch output; no claude CLI needed
claude plugin validate plugins/orch-session
claude plugin test plugins/orch-session # the hooks inside the engine
claude --plugin-dir plugins/orch-session # load it into a session
The fixtures in test/fixtures are real orch-core output. After a change to what orch list or orch show print, make them again (CI also runs the tests against freshly made ones):
uv run --project plugins/orch-core python plugins/orch-session/test/make_fixtures.py plugins/orch-session/test/fixtures
