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

✍️ OpenClawRadar📅 Published: March 16, 2026🔗 Source
Portable engineering system for Claude Code with hooks, specialized agents, and self-improvement
Ad

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
Ad

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

Ad

👀 See Also

Claude Code's Plan-Skeptic Sub Agent Identifies Security Gaps in Generated Plans
Tools

Claude Code's Plan-Skeptic Sub Agent Identifies Security Gaps in Generated Plans

A developer discovered Claude Code's plan-skeptic sub agent, which identifies gaps and issues in AI-generated development plans, particularly catching security concerns that weren't initially obvious. The agent works alongside the previously known security-sheriff sub agent to improve plan quality.

OpenClawRadar
Developer builds .NET SaaS template generator with Claude Code, shares workflow insights
Tools

Developer builds .NET SaaS template generator with Claude Code, shares workflow insights

A developer open-sourced NETrock, a .NET 10 SaaS starter template with authentication, ORM, and background jobs, then built a client-side generator for it using Claude Code. The generator lets users pick features and download a working .zip project that stays in their browser.

OpenClawRadar
TradingView MCP Server Enables Claude to Backtest Trading Strategies
Tools

TradingView MCP Server Enables Claude to Backtest Trading Strategies

A developer has released an MCP server that allows Claude to backtest six trading strategies using Yahoo Finance data without API keys. Setup involves adding one line to the claude_desktop_config.json file.

OpenClawRadar
Claude Code Plan Mode Reduces Redo Rate from 40% to Near Zero
Tools

Claude Code Plan Mode Reduces Redo Rate from 40% to Near Zero

A developer tracked 30+ coding sessions with Claude Code and found that skipping Plan Mode resulted in redoing tasks from scratch 40% of the time. With Plan Mode, the redo rate dropped to basically zero, with one feature taking 17 minutes total versus 35+ minutes without planning.

OpenClawRadar