Portable engineering system for Claude Code with hooks, specialized agents, and self-improvement

A developer frustrated with repeating instructions to Claude Code built a portable engineering system that lives in ~/.claude/ and applies to every project automatically. The system addresses two core problems: the repetition loop where Claude Code would hit the same bug days later and solve it from scratch, and the cross-project disconnect where rules refined in one project didn't exist in another.
System components
The system includes several key components:
- A constitution (CLAUDE.md) – 650 lines of rules with a value hierarchy, decision boundaries, and three execution modes depending on task complexity
- Hooks that enforce rules deterministically – Not suggestions the AI might ignore, but bash scripts that physically block dangerous commands like force pushes, wrong package manager usage, or rm -rf
- Three specialized agents – An orchestrator that delegates but never codes, builders that work in isolated copies of the repo, and a read-only reviewer that can't fix things (only reports)
- A skill pipeline – From planning to building to shipping to production, mostly autonomous with one non-negotiable gate: production deploy always asks
- An immune system – Every error gets logged with the root cause AND approaches that failed. Same bug across 2+ projects becomes a permanent rule, developing antibodies
- Anti-Goodhart verification – Five questions every agent must answer before claiming "done," because "all tests pass" doesn't mean the app works
Compound engineering approach
The system is built on Compound Engineering: Plan → Work → Review → Compound. That fourth step is where the system improves itself. The developer mentions specific rules they previously had to repeat daily: "use pnpm not npm," "don't delete passing tests," and "run tests before committing."
The project is open source at https://github.com/vinicius91carvalho/.claude with a full walkthrough of all 15 pieces available at https://tail-f-thoughts.hashnode.dev/self-improving-engineering-system-claude-code.
📖 Read the full source: r/ClaudeAI
👀 See Also

Open-Source Web UI for Parallel Claude Code Sessions Using Git Worktree
A developer has built an open-source web UI called CCUI that enables running multiple Claude Code sessions in parallel using git worktree. It runs as a local web server accessible via browser and supports SSH port forwarding for remote development.

Developer Builds Scheme Compiler to WASM Using AI in 4 Days
A developer created Puppy Scheme, a Scheme compiler that targets WebAssembly, in about 4 days using AI assistance. The compiler supports 73% of R5RS and R7RS, uses WASM GC, and achieved compilation time improvements from 3½ minutes to 11 seconds overnight.

MCP Server for Italian Train Data: Real-Time Delays, Departures, and Schedules in Claude
A developer built an unofficial MCP server for Trenitalia that provides five tools for querying Italian train data through Claude, including real-time departure/arrival boards, train tracking, and schedules with live delay enrichment.

Gemini 3.1 Pro in Multi-Agent Systems: High Design Quality, 20% Tool-Call Failure Rate
Developers building Bobr, an AI presentation generator with a multi-agent architecture, report Gemini 3.1 Pro produces impressive design output but suffers from a ~20% tool-call failure rate and garbled text corruption in production pipelines.