Skip to content

docs(research): install patterns — lean-ctx / rtk / code-review-graph compare ccteam#138

Merged
firstintent merged 1 commit into
mainfrom
docs/install-patterns-research
May 24, 2026
Merged

docs(research): install patterns — lean-ctx / rtk / code-review-graph compare ccteam#138
firstintent merged 1 commit into
mainfrom
docs/install-patterns-research

Conversation

@firstintent
Copy link
Copy Markdown
Owner

Summary

Read-only research for V0.6.7 install/integration architecture decisions. Three reference repos surveyed:

  • lean-ctx (yvgude/lean-ctx, Rust, 2.1k★) — broadest install matrix (6 channels), best-in-class OS-native self-update scheduler.
  • rtk (rtk-ai/rtk, Rust, 53k★) — Homebrew core, cleverest install.sh (302-redirect for latest, path-traversal guard), thin-delegator hook pattern.
  • code-review-graph (tirth8205/code-review-graph, Python, 17k★) — cleanest `install` dispatcher (12 agents auto-detect), best Codex integration (`~/.codex/hooks.json` SessionStart + PostToolUse), idempotent CLAUDE.md marker injection.

Key findings vs ccteam V0.6.6

维度 Where ccteam stands
Install path ccteam relies on Anthropic `/plugin marketplace add` (git-clone — breaks on macOS no-CLT); all 3 references bypass it and write per-agent configs directly
Codex integration ccteam (F173 cost ledger) is deeper than rtk (awareness-doc only) but lacks code-review-graph's `~/.codex/hooks.json` lifecycle hooks
Lifecycle hooks ccteam has none; code-review-graph has SessionStart + PostToolUse on Claude AND Codex
Self-update ccteam has none; lean-ctx ships LaunchAgent + systemd timer + cron + Task Scheduler abstraction (~400 LOC, copy-friendly)
Agent breadth ccteam = 1 (Claude Code, with Codex spawned); lean-ctx = 30; code-review-graph = 12; rtk = 9

Top 3 V0.6.7 recommendations

  1. `ccteam install [--agent ]` (M, 1-2d) — direct-config bootstrap modelled on `code-review-graph install`, fixes macOS-no-CLT and opens Codex/Cursor/Zed users.
  2. Claude SessionStart hook (S, 0.5d) — surface ccteam state (workflows, IM bot health, recent cost) on every session start; passive version-check.
  3. `ccteam update` + LaunchAgent/systemd timer (M, 1-2d) — port lean-ctx's `update_scheduler` abstraction. Opt-in via install wizard.

Plus tier-2 polish: install.sh glibc-detect + macOS ad-hoc codesign + tar path-traversal guard (S, 2-4h total).

Open questions raised in doc

  • Keep both `.claude-plugin/marketplace.json` AND `ccteam install` direct-config path, or drop one?
  • Does Claude SessionStart hook conflict with the §三 "no prompt injection" red line (mode-3 specific)?
  • Auto-update schedule default: on or off? IM-bot supervisor is long-running, mid-session swap could break tmux.

Test plan

  • Doc-only PR; no Rust changes; baseline tests not affected.
  • Verify diagram links / repo refs render in GitHub markdown.

Read-only research; pure doc add — `docs/versions/v0-6-6/install-patterns-research.md` only (321 lines).

🤖 Generated with Claude Code

Read-only audit of lean-ctx (Rust, 2.1k★), rtk (Rust, 53k★), and
code-review-graph (Python, 17k★). Surveys binary distribution,
Claude Code integration path, Codex integration depth, lifecycle
hooks, self-update mechanisms, and cross-platform support.

Key findings vs ccteam V0.6.6:
- All three reference repos bypass /plugin marketplace add and
  write per-agent MCP configs directly (12+ agent matrix in crg).
- lean-ctx has best-in-class self-update (LaunchAgent + systemd
  timer + cron + Task Scheduler).
- code-review-graph has cleanest install dispatcher (PLATFORMS
  dict-of-lambdas) and best Codex integration (~/.codex/hooks.json
  with SessionStart + PostToolUse).
- rtk has cleverest install.sh tricks (302-redirect for latest
  version, path-traversal tar guard, hook-version-check cache).

Recommends 3 V0.6.7 directions: ccteam install bootstrap (R1, M),
SessionStart hook (R2, S), ccteam update self-updater + scheduler
(R3, M).
@firstintent firstintent merged commit 54c9282 into main May 24, 2026
1 of 2 checks passed
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.

1 participant