Lightweight harness for Claude Code. Security hooks, dev pipeline, smart defaults.
curl -fsSL https://raw.githubusercontent.com/brolag/neural-claude-code/main/install.sh | bash
Every Claude Code session runs without guardrails. No security hooks. No structured workflow. No token optimization. Your CLAUDE.md is either too long (burning tokens) or too short (missing conventions).
A 21-file starter kit that gives you production-grade guardrails in one command:
v1 (150+ files, ~4300 tokens/msg): Commands, TTS, squads, custom memory...
v2 (21 files, ~635 tokens/msg): Hooks + skills + rules. That's it.
Hooks run as bash scripts outside the context window. They enforce behavior without burning a single token.
| Hook | What it does |
|---|---|
dangerous-actions-blocker |
Blocks rm -rf /, force push to main, DROP TABLE, package publish |
prompt-injection-detector |
Blocks "ignore previous instructions", jailbreak attempts |
output-scanner |
Warns when API keys, tokens, or private keys appear in output |
sensitive-file-guard |
Blocks read/write access to .env, credentials, SSH keys |
pre-compact |
Saves git state and active plans before context compaction |
Skills only load into context when you invoke them. No overhead otherwise.
| Skill | What it does |
|---|---|
/forge |
Dev pipeline: scan, plan, execute, review, ship |
/forge --full |
Full pipeline: adds deliberation (3 agents) + parallel execution + 4-layer review |
/init |
Scans your project and generates a customized CLAUDE.md |
/git-save |
Conventional commits workflow with safety checks |
/overseer |
Code review for security, quality, and consistency |
/slop-scan |
Detects AI slop, tech debt, dead code, and anti-patterns |
Each rule is 1-2 lines. Maximum signal, minimum tokens.
| Rule | What it enforces |
|---|---|
verify-first |
Check before assuming. Local files, then docs, then act. |
scope-lock |
Do exactly what was asked. Don't expand scope. |
test-then-ship |
Tests pass, types clean, lint clean before commit. |
no-slop |
No dead code, no over-abstraction, no vague TODOs. |
git-discipline |
Feature branches, conventional commits, never force-push main. |
Per-message overhead: ~635 tokens
CLAUDE.md template: ~300 tokens (30 lines)
5 compact rules: ~135 tokens (3 lines each)
Auto-memory index: ~200 tokens
Compare: typical unoptimized setup = 3000-5000 tokens/message
If behavior can be enforced with a hook (0 tokens), don't write a rule for it. Rules are for guidance that requires judgment. Hooks are for hard constraints.
# 1. Install (one command)
curl -fsSL https://raw.githubusercontent.com/brolag/neural-claude-code/main/install.sh | bash
# 2. Open Claude Code in your project
cd your-project
# 3. Generate a project-specific CLAUDE.md
/init
# 4. Build something with the full pipeline
/forge "add user authentication"- Clones the repo to
~/Sites/neural-claude-code - Copies hooks to
~/.claude/hooks/neural/ - Copies skills to
~/.claude/skills/ - Copies rules to
~/.claude/rules/neural/ - Merges hooks into your
settings.json(doesn't overwrite existing config) - Sets
outputStyle: concisefor token savings
For most tasks. Fast and focused.
/forge "add pagination to API"
SCAN Read CLAUDE.md, git log, find related files
PLAN Requirements + acceptance criteria + subtasks
EXECUTE Implement with tests, max 3 fix attempts
REVIEW Security + quality review (fresh agent context)
SHIP Report + wait for human confirmation
For complex tasks: 3+ files, auth, payments, architecture changes.
/forge --full "redesign auth system"
SCAN Read project context
CLARIFY Max 3 questions (skip if clear)
DELIBERATE 3 agents debate: simplicity vs scalability vs security
PLAN Spec + design + task breakdown
EXECUTE Parallel agents with worktree isolation
REVIEW 4-layer: OWASP + quality + slop + overseer
SHIP Report + wait for human confirmation
Default: Claude Code's native auto-memory. Zero config, works out of the box.
Pre-compact hook: Saves git state and active plans before context compaction, so Claude can recover context after compression.
Optional upgrade: Engram for cross-session persistent memory with full-text search.
- Add hooks: Create scripts in
~/.claude/hooks/, add tosettings.json - Add skills: Create dirs in
~/.claude/skills/with aSKILL.md - Add rules: Create
.mdfiles in~/.claude/rules/(keep them short) - Modify defaults: Edit files in
~/.claude/hooks/neural/,~/.claude/rules/neural/
See Customization Guide for details.
bash ~/Sites/neural-claude-code/uninstall.shRemoves hooks, skills, and rules. Does not modify settings.json (manual cleanup needed for hook entries).
- Claude Code CLI
jq(install withbrew install jq)git
No other dependencies. No npm packages. No Go binaries. No Python.
| Doc | Content |
|---|---|
| Philosophy | Design principles, token optimization strategy |
| Customization | Add your own hooks, skills, and rules |
| Memory Upgrade | Optional Engram for cross-session memory |
PRs welcome. Keep it lightweight:
- New hooks must have tests in
tests/test-hooks.sh - New rules must be 1-3 lines
- New skills must have
allowed-toolsrestricted to what they need - No external dependencies
MIT