Skip to content

dev-brain as a Claude Code plugin: install from GitHub, zero-cost workflows - #2

Merged
consteuni merged 4 commits into
mainfrom
improve/token-budget-and-review
Oct 25, 2026
Merged

consteuni merged 4 commits into
mainfrom
improve/token-budget-and-review

Conversation

@Stcant

@Stcant Stcant commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

What this PR does

Builds on #1 (merged). Three commits: an exploration of all four agents, a README fix for start, and the final shape. The user works with Claude Code only, so the multi-agent adapters were removed and the kit is now a Claude Code plugin.

  • Two-command install from GitHub: claude plugin marketplace add Stcant/agents-platform then claude plugin install dev-brain@dev-brain. No installer, no build step, no edit to CLAUDE.md or settings.
  • One SessionStart hook injects the global rules and the project state (3000-char budget; a notice above it). It runs at startup, resume, /clear and compaction.
  • Workflows (/dev-brain:start, resume, handoff, impact, learn, review) are skills with disable-model-invocation: zero context cost until invoked.
  • Read-only reviewer is enforced: Read, Grep, Glob and read-only git only; any write needs approval.
  • Removed: plan (the native plan mode is read-only by enforcement), duplicated templates, and the OpenCode/Codex/Cursor adapters. Core files keep standard formats, so another agent stays an adapter away.
  • Docs: README and MANUALE rewritten for one agent. results.md is now a decision log, down from 22 KB to about 6 KB.

Evidence

python3 evals/offline/check.py gave ALL PASS twice against Claude Code 2.1.310 with a mock model (zero tokens). The plugin was also installed straight from this branch on GitHub and run on hph: rules, hph state, the resume workflow and hph's AGENTS.md all reached the session.

Not verified

  • No real model and no interactive session.
  • The benefit of the rules on real code is unmeasured; the user postponed the benchmark.

Related: Stcant/HPH#10 adopts hph.

https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU


Generated by Claude Code

core/ is now the only source, in the formats the agents share:
AGENTS.md for rules and Agent Skills for workflows and skills.
install.py links or translates it for OpenCode, Claude Code,
Codex CLI and Cursor; Claude Code and Codex get a local plugin
marketplace built in build/. The injected state comes from one
script, core/bin/dev-brain-context, used by every adapter, and
the rules tell the agent to read the state when no hook can.

The read-only reviewer is enforced where the agent allows it:
OpenCode permissions, Claude Code tool list; on Codex 0.164 the
role's sandbox_mode is not applied to spawned agents, so it is an
instruction there, and Cursor is untested.

evals/offline/check.py now checks every agent CLI it finds
against a mock model that speaks the chat, messages and responses
formats; results and limits are in evals/results.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU
Adds a section with the start command per agent, what it creates and
why the other workflows depend on it. The offline check now verifies
that start is available in OpenCode, Claude Code, Codex and Cursor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU
The user works with Claude Code only. The repository is now a plugin
marketplace: two commands install it from GitHub, with no installer,
build step or CLAUDE.md edit. One SessionStart hook injects the rules
and the project state; workflows are skills that cost no context until
invoked. The plan workflow is gone in favour of the native, enforced
plan mode, and duplicated templates are gone in favour of the start
skill. Core files keep standard formats, so another agent remains an
adapter away.

Docs are rewritten for one agent and results.md is a decision log;
the offline check targets Claude Code only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU
@Stcant Stcant changed the title Make dev-brain agent-independent: OpenCode, Claude Code, Codex, Cursor dev-brain as a Claude Code plugin: install from GitHub, zero-cost workflows Oct 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sm3JtGSXFLR6CZYVJXGHtU
@consteuni
consteuni merged commit 250cc95 into main Oct 25, 2026
@consteuni
consteuni deleted the improve/token-budget-and-review branch October 25, 2026 13:39
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.

3 participants