Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

docs(adr): ADR-0006 — rhiza-cli as the Claude Code plugin home#598

Merged
tschm merged 2 commits into
mainfrom
adr-0006-claude-plugin
Jul 12, 2026
Merged

docs(adr): ADR-0006 — rhiza-cli as the Claude Code plugin home#598
tschm merged 2 commits into
mainfrom
adr-0006-claude-plugin

Conversation

@tschm

@tschm tschm commented Jul 12, 2026

Copy link
Copy Markdown
Member

Summary

Adds ADR-0006 (status: Proposed) proposing that the Claude Code plugin — currently the separate rhiza-config repo — be relocated into rhiza-cli, so engine logic lives once and slash commands wrap the co-located CLI.

Key points:

  • Slash commands become thin wrappers invoking the bundled CLI via uvx --from "${CLAUDE_PLUGIN_ROOT}" rhiza … (no separate install; guarantees version parity).
  • Deterministic/report commands become CLI subcommands (/statsrhiza stats, reusing models/lock.py/template.py instead of regex, deduped vs status/tree/summarise); judgement commands (/boost, /quality, /revisit) stay Markdown but delegate mechanical steps to the CLI.
  • One version + one release; rhiza-config retired to a marketplace pointer/redirect.
  • Includes a 4-phase, non-breaking rollout and the alternatives considered.

Docs-only: adds docs/adr/0006-rhiza-cli-as-claude-plugin.md and an index row in docs/adr/README.md.

🤖 Generated with Claude Code

Proposes relocating the Claude Code plugin (currently in rhiza-config) into
rhiza-cli so engine logic lives once and slash commands wrap the co-located
CLI via `uvx --from "${CLAUDE_PLUGIN_ROOT}" rhiza …`. Status: Proposed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 12, 2026 08:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Architecture Decision Record (ADR) proposing to relocate the Claude Code plugin from rhiza-config into rhiza-cli so plugin slash commands can wrap the co-located CLI engine and avoid logic/version drift.

Changes:

  • Add ADR-0006 documenting the proposed consolidation of the plugin into this repository.
  • Update the ADR index to include ADR-0006.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/adr/README.md Adds ADR-0006 to the ADR index table.
docs/adr/0006-rhiza-cli-as-claude-plugin.md Introduces ADR-0006 describing the motivation, decision, rollout phases, consequences, and alternatives.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +9 to +13
- **`rhiza-cli`** (this repo) — the engine. A Typer application (`rhiza`) with real
domain models (`models/lock.py`, `models/template.py`, the `_git/` merge engine)
and eight commands: `init`, `sync`, `status`, `tree`, `validate`, `list`,
`uninstall`, `summarise`. It is pip/uv-installable (`project.scripts.rhiza`) and
is what `make sync` invokes inside managed repos.
@tschm
tschm merged commit ea008c6 into main Jul 12, 2026
63 checks passed
@tschm
tschm deleted the adr-0006-claude-plugin branch July 12, 2026 14:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants