Skip to content
Conduit

mcp server

claude-reimagined

One-command bootstrap for a fully wired Claude Code workstation — installs Claude Code, RTK, context-mode, code-review-graph, caveman, hooks, MCP servers, statusline, and 39+ curated skills. macOS + L

kunaltulsidasani/claude-reimaginedcommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

This project does not publish an install method we can turn into a config. Follow the README instead.

README

synced Oct 26, 2026

claude-reimagined

A one-command bootstrap that turns a fresh machine into a fully wired Claude Code workstation — CLI, plugins, hooks, MCP servers, statusline, and a 40+ skill library, all configured to work together out of the box.

If you've ever spent an afternoon stitching together Claude Code, RTK, context-mode, code-review-graph, caveman, custom hooks, and a skill router — this repo is that afternoon, automated.


Table of Contents


Install

Three steps. macOS or Linux.

git clone https://github.com/kunaltulsidasani/claude-reimagined.git
cd claude-reimagined
./bootstrap.sh

The bootstrapper will:

  1. Detect your OS and check for missing dependencies (curl, git, python3, npm, jq, pipx).
  2. Walk through each component, explain what it does, and ask before installing — default is yes, just hit Enter to accept. Type n to skip.
  3. Print a verification summary at the end.

Other modes

./bootstrap.sh --dry-run                              # preview only — no changes
./bootstrap.sh --yes                                  # auto-approve every prompt (no confirmations)
./bootstrap.sh --force                                # reinstall components already present
./bootstrap.sh --clean --yes                          # wipe ~/.claude first, then fresh install
./bootstrap.sh --skip rtk,caveman                     # skip specific components
./bootstrap.sh --skills-only python-pro,golang-pro    # install only chosen skills

Repository Structure

claude-reimagined/
├── bootstrap.sh                  # entry point — orchestrates every install script
├── statusline.sh                 # Claude Code statusline renderer
├── Makefile                      # `make install`, `make test`, `make verify`
├── CLAUDE.md                     # project-level Claude Code instructions
├── LICENSE                       # MIT
│
├── configs/
│   └── settings.json             # reference settings.json (user-managed copy)
│
├── hooks/
│   ├── pre-compact.sh            # PreCompact hook — survives auto-compaction
│   └── subagent-model-router.sh  # PreToolUse[Agent] hook — routes models per subagent
│
├── lib/
│   └── common.sh                 # shared bash helpers (logging, prompts, results)
│
├── scripts/
│   ├── install_deps.sh             # curl, git, python3, npm, jq, pipx
│   ├── install_claude_code.sh      # Claude Code CLI
│   ├── install_rtk.sh              # RTK token-killer proxy
│   ├── install_context_mode.sh     # context-mode MCP plugin
│   ├── install_code_review_graph.sh# code-review-graph MCP server
│   ├── install_caveman.sh          # caveman terse-mode plugin
│   ├── install_statusline.sh       # statusline registration
│   ├── install_subagent_router.sh  # subagent model-routing hook
│   ├── install_pre_compact.sh      # pre-compact hook
│   ├── install_skills.sh           # 39 skills from registry.yaml via sparse clone
│   └── verify_installation.sh      # post-install verification
│
├── skills/
│   └── registry.yaml             # curated skill registry (id → repo:path, tier)
│
├── tests/
│   ├── run_tests.sh              # zero-dep bash test runner
│   ├── lib/helpers.sh            # test fixtures and assertions
│   ├── unit/                     # unit tests — common.sh, hooks, routers
│   └── integration/              # E2E tests for every install script
│
└── logs/                         # ignored — populated at runtime

What You Get

Each component solves a specific pain point with vanilla Claude Code. You can skip any of them with --skip <id>.

ComponentUpstreamWhy you want it
claude-codeanthropics/claude-codeThe CLI everything else plugs into.
rtkrtk-ai/rtkShell proxy that rewrites git/ls/grep/etc. through a token-aware filter. 60–90% less context burned on shell output. A hook rewrites git status → rtk git status transparently.
code-review-graphPyPI: code-review-graphTree-sitter knowledge graph of your codebase: functions, classes, calls, imports, tests. Updates incrementally on file change. Claude queries the graph instead of re-reading files. Per-repo setup required — see below.
context-modemksglu/context-modeMCP plugin. Routes large command output (build logs, test runs, JSON dumps) into a sandbox FTS5 index. A pytest -v eats ~200 tokens instead of 50k.
cavemanJuliusBrussee/cavemanPlugin that injects a terse-style system prompt. ~75% fewer output tokens with no loss of correctness.
statusline(this repo)Renders model, repo, branch, context %, cost, session time, 5h/7d burn rate, and active mode tag into your terminal statusline. (preview)
subagent-router(this repo)PreToolUse[Agent] hook that pins Haiku for cheap lookups, Sonnet for general work, Opus only when explicitly chosen. Saves cost on every spawned agent automatically.
pre-compact(this repo)PreCompact hook that detects your stack and writes preservation instructions before auto-compaction. Mid-task state, error messages, and blocked work survive every compact.
skillsvarious — see registry39 curated domain skills installed into ~/.claude/skills/ via sparse clone.

Statusline Preview

Shows model, repo, branch, context %, cost, session time, 5h/7d burn rate, and active mode tag.


code-review-graph Per-Repo Setup

The bootstrapper installs the code-review-graph binary globally, but the MCP integration is per-repo — you opt in for each project where you want it.

cd /path/to/your/repo
code-review-graph install

That command:

  1. Adds an MCP server entry to the project's .mcp.json (or creates one).
  2. Sets up file-watcher hooks (via Claude Code's PostToolUse hook system) so the graph updates incrementally on every Edit, Write, or MultiEdit.
  3. Builds the initial graph by parsing the repo with Tree-sitter (one-time, takes seconds to a minute depending on repo size).

Verify it worked

code-review-graph status      # shows nodes/edges/files counts
ls .code-review-graph/         # graph DB lives here, gitignored
cat .mcp.json                  # MCP server entry should be present

In Claude Code, the graph tools (detect_changes, get_review_context, query_graph, semantic_search_nodes, etc.) will appear in the tool list once you restart the session. See [CLAUDE.md](CLAUDE.md) in this repo for an example of instructing Claude to prefer graph tools over Grep.

Update or rebuild

code-review-graph build       # incremental rebuild (called automatically by hooks)
code-review-graph build --full # full rebuild from scratch

Add .code-review-graph/ to gitignore

echo '.code-review-graph/' >> .gitignore

The graph database is local-machine state — don't commit it.


Hooks Deep-Dive

pre-compact — survive context compaction

  • File: hooks/pre-compact.sh → ~/.claude/hooks/pre-compact.sh
  • Fires: immediately before Claude auto-compacts (triggered at 80% context via CLAUDE_AUTOCOMPACT_PCT_OVERRIDE).
  • Does: detects your stack, schema files, API directories, and git state, then writes preservation instructions to stdout. Claude's compaction summarizer reads these and decides what to keep.

Stack detection covers: JS/TS (Next.js, NestJS, React, Node), Go, Python (FastAPI, Django, Flask), Rust, Flutter, Java/Maven, Kotlin/Gradle, Ruby/Rails, Swift, C#/.NET. Each stack has its own preservation rules — test command, build command, schema file, API dirs.

The compacted summary is guaranteed to contain: active task and next step, exact error messages, every file touched, non-obvious decisions and their reasons, pending/blocked work, discovered env constraints.

subagent-model-router — auto-pick the cheapest capable model

  • File: hooks/subagent-model-router.sh → ~/.claude/hooks/subagent-model-router.sh
  • Fires: before every Agent tool call.
  • Does: inspects subagent_type and prompt complexity, rewrites the tool input via updatedInput to pin a specific model.
Subagent typeRouted model
Explore, statusline-setup, claude-code-guideHaiku
general-purpose with simple lookup promptHaiku
general-purpose with complex prompt (implement/debug/design/…)Sonnet
Plan, superpowers:code-reviewerSonnet (floor)
everything elseinherits parent model

Settings

~/.claude/settings.json is user-managed. The bootstrapper verifies it exists at the end. A reference copy lives in [configs/settings.json](configs/settings.json).

SettingValueWhy
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE80Trigger auto-compact at 80% instead of 95%, giving the pre-compact hook room to run.
skillListingMaxDescChars300Cap skill descriptions in the listing — keeps the skill router prompt lean.
skillListingBudgetFraction0.005Limit skill listing to 0.5% of context.
spinnerTipsEnabledfalseDisable loading tips.
effortLevelmediumDefault thinking effort; override per-task with /effort.
promptSuggestionEnabledfalseDisable inline suggestions.
tuifullscreenFull-screen TUI mode.
prefersReducedMotiontrueDisable TUI animations.
showThinkingSummariesfalseHide extended thinking summaries.
autoScrollEnabledfalseOutput stays readable mid-task.

Hooks registered in settings.json:

  • PreCompact → pre-compact.sh
  • PreToolUse[Agent] → subagent-model-router.sh

Skills Library

39 skills from community repos, sparse-cloned into ~/.claude/skills/<id>/. Use --skills-only <ids> to pick a subset.

Each entry in [skills/registry.yaml](skills/registry.yaml) is tagged with a tier:

TierAnatomyExample
goldSKILL.md + scripts/ + reference/code-reviewer, mcp-builder, claude-api
silverSKILL.md + helper scripts/refs inlinetdd, debugging
bronzeSKILL.md only (knowledge-only skill)most language and infra skills

Gold tier (full anatomy with executable helpers)

SkillSource
mcp-builderanthropics/skills
claude-apianthropics/skills
code-reviewerawesome-skills/code-review-skill

Silver tier (helpers inline)

SkillSource
tddobra/superpowers
debuggingobra/superpowers

Bronze tier (knowledge skills)

CategorySkills
Languagespython-pro, typescript-pro, golang-pro, rust-pro, java-architect, kotlin-specialist, swift-expert, csharp-developer, cpp-pro, php-pro, ruby-rails
Frontendreact, vue-expert, angular-architect, nextjs-developer
Backendnestjs-expert, django-expert, fastapi-expert, laravel-specialist
Databasespostgres-pro, redis-pro, mongodb-pro, database-designer
Infrastructureaws-solution-architect, terraform, kubernetes-ops, docker, ci-cd
Testingunit-tests
APIapi-designer, openapi-docs
Engineeringsecurity-review, git-workflow

Upstream sources (full repo list):


Where Files Land

PathContents
~/.claude/settings.jsonClaude Code settings — user-managed
~/.claude/CLAUDE.mdGlobal instructions — user-managed
~/.claude/statusline.shStatusline script
~/.claude/hooks/subagent-model-router.shSubagent model routing hook
~/.claude/hooks/pre-compact.shPre-compact instructions hook
~/.claude/skills/<id>/Skill directories from registry
~/.claude.jsonMCP server registrations (context-mode)
~/.claude-bootstrap/logs/results.tsvPer-component install results
~/.claude-bootstrap/logs/Full log output per run

Rollback

Every file modified by a bootstrap script is backed up first:

~/.claude/settings.json.bak.20240101_120000

Format: <original-path>.bak.YYYYMMDD_HHMMSS. To restore, copy the .bak.* file back over the original.

For a clean reinstall: ./bootstrap.sh --clean --yes wipes ~/.claude first.

Install results land in ~/.claude-bootstrap/logs/results.tsv with status OK, FAILED, SKIPPED, or DECLINED.


Requirements

  • macOS 12+ or Linux (x86_64 or arm64)
  • bash 4.0+
  • Internet access for downloads

The bootstrapper installs missing deps automatically (Homebrew on macOS; apt-get/dnf/yum on Linux).

  • Hard deps: curl, git, python3, npm
  • Soft deps: jq, pipx, uv (for code-review-graph)

Troubleshooting

**[FAIL] CLAUDE.md or [FAIL] settings** — these files are user-managed. Create them at ~/.claude/CLAUDE.md and ~/.claude/settings.json. The bootstrapper only verifies their existence; it does not install them.

**rtk gain fails** — you may have the wrong rtk binary on your PATH (name collision with reachingforthejack/rtk Rust Type Kit). Run which rtk to check, then uninstall the wrong one (cargo uninstall rtk or brew uninstall rtk).

Component fails mid-bootstrap — non-critical components don't abort the run. Check ~/.claude-bootstrap/logs/results.tsv and the per-script logs in the same directory.

Skill missing scripts/ or reference/ after install — fixed in the latest install_skills.sh. Re-run with --force --skills-only <skill-id>.


Contributing

See CONTRIBUTING.md for development setup, testing, and how to add new components or skills.

Quick reference:

make install     # run bootstrap.sh interactively
make test        # run the full test suite (~140 tests)
make verify      # run verify_installation.sh

License

MIT

↑↓ navigate openesc close