The performance optimization system for AI agent harnesses. From an Anthropic hackathon winner.
Not just configs. A complete system: skills, instincts, memory optimization, continuous learning, security scanning, and research-first development. Production-ready agents, hooks, commands, rules, and MCP configurations evolved over 10+ months of intensive daily use building real products.
Works across Claude Code, Codex, Cowork, and other AI agent harnesses.
The Guides
This repo is the raw code only. The guides explain everything.
Shorthand Guide Setup, foundations, philosophy. Read this first.
30+ community PRs merged — Contributions from 30 contributors across 6 languages
978 internal tests — Expanded validation suite across agents, skills, commands, hooks, and rules
v1.4.1 — Bug Fix (Feb 2026)
Fixed instinct import content loss — parse_instinct_file() was silently dropping all content after frontmatter (Action, Evidence, Examples sections) during /instinct-import. Fixed by community contributor @ericcai0814 (#148, #161)
Interactive installation wizard — New configure-ecc skill provides guided setup with merge/overwrite detection
PM2 & multi-agent orchestration — 6 new commands (/pm2, /multi-plan, /multi-execute, /multi-backend, /multi-frontend, /multi-workflow) for managing complex multi-service workflows
Multi-language rules architecture — Rules restructured from flat files into common/ + typescript/ + python/ + golang/ directories. Install only the languages you need
Chinese (zh-CN) translations — Complete translation of all agents, commands, skills, and rules (80+ files)
GitHub Sponsors support — Sponsor the project via GitHub Sponsors
Enhanced CONTRIBUTING.md — Detailed PR templates for each contribution type
v1.3.0 — OpenCode Plugin Support (Feb 2026)
Full OpenCode integration — 12 agents, 24 commands, 16 skills with hook support via OpenCode’s plugin system (20+ event types)
⚠️ Important: Claude Code plugins cannot distribute rules automatically. Install them manually:
# Clone the repo first
git clone https://github.com/affaan-m/everything-claude-code.git
cd everything-claude-code
# Recommended: use the installer (handles common + language rules safely)
./install.sh typescript # or python or golang
# You can pass multiple languages:
# ./install.sh typescript python golang
# or target cursor:
# ./install.sh --target cursor typescript
For manual install instructions see the README in the rules/ folder.
Step 3: Start Using
# Try a command (plugin install uses namespaced form)
/everything-claude-code:plan "Add user authentication"
# Manual install (Option 2) uses the shorter form:
# /plan "Add user authentication"
# Check available commands
/plugin list everything-claude-code@everything-claude-code
✨ That’s it! You now have access to 13 agents, 56 skills, and 32 commands.
🌐 Cross-Platform Support
This plugin now fully supports Windows, macOS, and Linux. All hooks and scripts have been rewritten in Node.js for maximum compatibility.
Package Manager Detection
The plugin automatically detects your preferred package manager (npm, pnpm, yarn, or bun) with the following priority:
Environment variable: CLAUDE_PACKAGE_MANAGER
Project config: .claude/package-manager.json
package.json: packageManager field
Lock file: Detection from package-lock.json, yarn.lock, pnpm-lock.yaml, or bun.lockb
Global config: ~/.claude/package-manager.json
Fallback: First available package manager
To set your preferred package manager:
# Via environment variable
export CLAUDE_PACKAGE_MANAGER=pnpm
# Via global config
node scripts/setup-package-manager.js --global pnpm
# Via project config
node scripts/setup-package-manager.js --project bun
# Detect current setting
node scripts/setup-package-manager.js --detect
Or use the /setup-pm command in Claude Code.
📦 What’s Inside
This repo is a Claude Code plugin - install it directly or copy components manually.
# Comment on any issue:
/skill-creator analyze
# Or auto-triggers on push to default branch
Both options create:
SKILL.md files - Ready-to-use skills for Claude Code
Instinct collections - For continuous-learning-v2
Pattern extraction - Learns from your commit history
AgentShield — Security Auditor
Built at the Claude Code Hackathon (Cerebral Valley x Anthropic, Feb 2026). 1282 tests, 98% coverage, 102 static analysis rules.
Scan your Claude Code configuration for vulnerabilities, misconfigurations, and injection risks.
# Quick scan (no install needed)
npx ecc-agentshield scan
# Auto-fix safe issues
npx ecc-agentshield scan --fix
# Deep analysis with three Opus 4.6 agents
npx ecc-agentshield scan --opus --stream
# Generate secure config from scratch
npx ecc-agentshield init
What it scans: CLAUDE.md, settings.json, MCP configs, hooks, agent definitions, and skills across 5 categories — secrets detection (14 patterns), permission auditing, hook injection analysis, MCP server risk profiling, and agent config review.
The --opus flag runs three Claude Opus 4.6 agents in a red-team/blue-team/auditor pipeline. The attacker finds exploit chains, the defender evaluates protections, and the auditor synthesizes both into a prioritized risk assessment. Adversarial reasoning, not just pattern matching.
Output formats: Terminal (color-graded A-F), JSON (CI pipelines), Markdown, HTML. Exit code 2 on critical findings for build gates.
Use /security-scan in Claude Code to run it, or add to CI with the GitHub Action.
Plankton (credit: @alxfazio) is a recommended companion for write-time code quality enforcement. It runs formatters and 20+ linters on every file edit via PostToolUse hooks, then spawns Claude subprocesses (routed to Haiku/Sonnet/Opus by violation complexity) to fix issues the main agent missed. Three-phase architecture: auto-format silently (40-50% of issues), collect remaining violations as structured JSON, delegate fixes to a subprocess. Includes config protection hooks that prevent agents from modifying linter configs to pass instead of fixing code. Supports Python, TypeScript, Shell, YAML, JSON, TOML, Markdown, and Dockerfile. Use alongside AgentShield for security + quality coverage. See skills/plankton-code-quality/ for full integration guide.
🧠 Continuous Learning v2
The instinct-based learning system automatically learns your patterns:
/instinct-status # Show learned instincts with confidence
/instinct-import <file> # Import instincts from others
/instinct-export # Export your instincts for sharing
/evolve # Cluster related instincts into skills
See skills/continuous-learning-v2/ for full documentation.
📋 Requirements
Claude Code CLI Version
Minimum version: v2.1.0 or later
This plugin requires Claude Code CLI v2.1.0+ due to changes in how the plugin system handles hooks.
Check your version:
claude --version
Important: Hooks Auto-Loading Behavior
⚠️ For Contributors: Do NOT add a "hooks" field to .claude-plugin/plugin.json. This is enforced by a regression test.
Claude Code v2.1+ automatically loadshooks/hooks.json from any installed plugin by convention. Explicitly declaring it in plugin.json causes a duplicate detection error:
Duplicate hooks file detected: ./hooks/hooks.json resolves to already-loaded file
History: This has caused repeated fix/revert cycles in this repo (#29, #52, #103). The behavior changed between Claude Code versions, leading to confusion. We now have a regression test to prevent this from being reintroduced.
📥 Installation
Option 1: Install as Plugin (Recommended)
The easiest way to use this repo - install as a Claude Code plugin:
# Add this repo as a marketplace
/plugin marketplace add affaan-m/everything-claude-code
# Install the plugin
/plugin install everything-claude-code@everything-claude-code
This gives you instant access to all commands, agents, skills, and hooks.
Note: The Claude Code plugin system does not support distributing rules via plugins (upstream limitation). You need to install rules manually:
# Clone the repo first
git clone https://github.com/affaan-m/everything-claude-code.git
# Option A: User-level rules (applies to all projects)
mkdir -p ~/.claude/rules
cp -r everything-claude-code/rules/common/* ~/.claude/rules/
cp -r everything-claude-code/rules/typescript/* ~/.claude/rules/ # pick your stack
cp -r everything-claude-code/rules/python/* ~/.claude/rules/
cp -r everything-claude-code/rules/golang/* ~/.claude/rules/
# Option B: Project-level rules (applies to current project only)
mkdir -p .claude/rules
cp -r everything-claude-code/rules/common/* .claude/rules/
cp -r everything-claude-code/rules/typescript/* .claude/rules/ # pick your stack
🔧 Option 2: Manual Installation
If you prefer manual control over what’s installed:
# Clone the repo
git clone https://github.com/affaan-m/everything-claude-code.git
# Copy agents to your Claude config
cp everything-claude-code/agents/*.md ~/.claude/agents/
# Copy rules (common + language-specific)
cp -r everything-claude-code/rules/common/* ~/.claude/rules/
cp -r everything-claude-code/rules/typescript/* ~/.claude/rules/ # pick your stack
cp -r everything-claude-code/rules/python/* ~/.claude/rules/
cp -r everything-claude-code/rules/golang/* ~/.claude/rules/
# Copy commands
cp everything-claude-code/commands/*.md ~/.claude/commands/
# Copy skills (core vs niche)
# Recommended (new users): core/general skills only
cp -r everything-claude-code/.agents/skills/* ~/.claude/skills/
cp -r everything-claude-code/skills/search-first ~/.claude/skills/
# Optional: add niche/framework-specific skills only when needed
# for s in django-patterns django-tdd springboot-patterns; do
# cp -r everything-claude-code/skills/$s ~/.claude/skills/
# done
Add hooks to settings.json
Copy the hooks from hooks/hooks.json to your ~/.claude/settings.json.
Configure MCPs
Copy desired MCP servers from mcp-configs/mcp-servers.json to your ~/.claude.json.
Important: Replace YOUR_*_HERE placeholders with your actual API keys.
🎯 Key Concepts
Agents
Subagents handle delegated tasks with limited scope. Example:
---
name: code-reviewer
description: Reviews code for quality, security, and maintainability
tools: ["Read", "Grep", "Glob", "Bash"]
model: opus
---
You are a senior code reviewer...
Skills
Skills are workflow definitions invoked by commands or agents:
Rules are always-follow guidelines, organized into common/ (language-agnostic) + language-specific directories:
rules/
common/ # Universal principles (always install)
typescript/ # TS/JS specific patterns and tools
python/ # Python specific patterns and tools
golang/ # Go specific patterns and tools
Not sure where to start? Use this quick reference:
I want to…
Use this command
Agent used
Plan a new feature
/everything-claude-code:plan "Add auth"
planner
Design system architecture
/everything-claude-code:plan + architect agent
architect
Write code with tests first
/tdd
tdd-guide
Review code I just wrote
/code-review
code-reviewer
Fix a failing build
/build-fix
build-error-resolver
Run end-to-end tests
/e2e
e2e-runner
Find security vulnerabilities
/security-scan
security-reviewer
Remove dead code
/refactor-clean
refactor-cleaner
Update documentation
/update-docs
doc-updater
Review Go code
/go-review
go-reviewer
Review Python code
/python-review
python-reviewer
Audit database queries
(auto-delegated)
database-reviewer
Common Workflows
Starting a new feature:
/everything-claude-code:plan "Add user authentication with OAuth"
→ planner creates implementation blueprint
/tdd → tdd-guide enforces write-tests-first
/code-review → code-reviewer checks your work
Fixing a bug:
/tdd → tdd-guide: write a failing test that reproduces it
→ implement the fix, verify test passes
/code-review → code-reviewer: catch regressions
Preparing for production:
/security-scan → security-reviewer: OWASP Top 10 audit
/e2e → e2e-runner: critical user flow tests
/test-coverage → verify 80%+ coverage
❓ FAQ
How do I check which agents/commands are installed?
/plugin list everything-claude-code@everything-claude-code
This shows all available agents, commands, and skills from the plugin.
My hooks aren't working / I see "Duplicate hooks file" errors
This is the most common issue. Do NOT add a "hooks" field to .claude-plugin/plugin.json. Claude Code v2.1+ automatically loads hooks/hooks.json from installed plugins. Explicitly declaring it causes duplicate detection errors. See #29, #52, #103.
My context window is shrinking / Claude is running out of context
Too many MCP servers eat your context. Each MCP tool description consumes tokens from your 200k window, potentially reducing it to ~70k.
Fix: Disable unused MCPs per project:
// In your project's .claude/settings.json
{
"disabledMcpServers": ["supabase", "railway", "vercel"]
}
Keep under 10 MCPs enabled and under 80 tools active.
Can I use only some components (e.g., just agents)?
Yes. Use Option 2 (manual installation) and copy only what you need:
# Just agents
cp everything-claude-code/agents/*.md ~/.claude/agents/
# Just rules
cp -r everything-claude-code/rules/common/* ~/.claude/rules/
Create your skill in skills/your-skill-name/SKILL.md (with YAML frontmatter)
Or create an agent in agents/your-agent.md
Submit a PR with a clear description of what it does and when to use it
🧪 Running Tests
The plugin includes a comprehensive test suite:
# Run all tests
node tests/run-all.js
# Run individual test files
node tests/lib/utils.test.js
node tests/lib/package-manager.test.js
node tests/hooks/hooks.test.js
🤝 Contributing
Contributions are welcome and encouraged.
This repo is meant to be a community resource. If you have:
Domain-specific knowledge (ML, data engineering, mobile)
Cursor IDE Support
ECC provides full Cursor IDE support with hooks, rules, agents, skills, commands, and MCP configs adapted for Cursor’s native format.
Quick Start (Cursor)
# Install for your language(s)
./install.sh --target cursor typescript
./install.sh --target cursor python golang swift
What’s Included
Component
Count
Details
Hook Events
15
sessionStart, beforeShellExecution, afterFileEdit, beforeMCPExecution, beforeSubmitPrompt, and 10 more
Hook Scripts
16
Thin Node.js scripts delegating to scripts/hooks/ via shared adapter
Rules
29
9 common (alwaysApply) + 20 language-specific (TypeScript, Python, Go, Swift)
Agents
Shared
Via AGENTS.md at root (read by Cursor natively)
Skills
Shared + Bundled
Via AGENTS.md at root and .cursor/skills/ for translated additions
Commands
Shared
.cursor/commands/ if installed
MCP Config
Shared
.cursor/mcp.json if installed
Hook Architecture (DRY Adapter Pattern)
Cursor has more hook events than Claude Code (20 vs 8). The .cursor/hooks/adapter.js module transforms Cursor’s stdin JSON to Claude Code’s format, allowing existing scripts/hooks/*.js to be reused without duplication.
Cursor stdin JSON → adapter.js → transforms → scripts/hooks/*.js
(shared with Claude Code)
ECC provides first-class Codex CLI support with a reference configuration, Codex-specific AGENTS.md supplement, and 16 ported skills.
Quick Start (Codex)
# Copy the reference config to your home directory
cp .codex/config.toml ~/.codex/config.toml
# Run Codex in the repo — AGENTS.md is auto-detected
codex
strict (read-only sandbox) and yolo (full auto-approve)
Skills
Skills at .agents/skills/ are auto-loaded by Codex:
Skill
Description
tdd-workflow
Test-driven development with 80%+ coverage
security-review
Comprehensive security checklist
coding-standards
Universal coding standards
frontend-patterns
React/Next.js patterns
frontend-slides
HTML presentations, PPTX conversion, visual style exploration
article-writing
Long-form writing from notes and voice references
content-engine
Platform-native social content and repurposing
market-research
Source-attributed market and competitor research
investor-materials
Decks, memos, models, and one-pagers
investor-outreach
Personalized outreach, follow-ups, and intro blurbs
backend-patterns
API design, database, caching
e2e-testing
Playwright E2E tests
eval-harness
Eval-driven development
strategic-compact
Context management
api-design
REST API design patterns
verification-loop
Build, test, lint, typecheck, security
Key Limitation
Codex CLI does not yet support hooks (OpenAI Codex Issue #2109, 430+ upvotes). Security enforcement is instruction-based via persistent_instructions in config.toml and the sandbox permission system.
🔌 OpenCode Support
ECC provides full OpenCode support including plugins and hooks.
Quick Start
# Install OpenCode
npm install -g opencode
# Run in the repository root
opencode
The configuration is automatically detected from .opencode/opencode.json.
Feature Parity
Feature
Claude Code
OpenCode
Status
Agents
✅ 13 agents
✅ 12 agents
Claude Code leads
Commands
✅ 33 commands
✅ 24 commands
Claude Code leads
Skills
✅ 50+ skills
✅ 37 skills
Claude Code leads
Hooks
✅ 8 event types
✅ 11 events
OpenCode has more!
Rules
✅ 29 rules
✅ 13 instructions
Claude Code leads
MCP Servers
✅ 14 servers
✅ Full
Full parity
Custom Tools
✅ Via hooks
✅ 6 native tools
OpenCode is better
Hook Support via Plugins
OpenCode’s plugin system is MORE sophisticated than Claude Code with 20+ event types:
Claude Code Hook
OpenCode Plugin Event
PreToolUse
tool.execute.before
PostToolUse
tool.execute.after
Stop
session.idle
SessionStart
session.created
SessionEnd
session.deleted
Additional OpenCode events: file.edited, file.watcher.updated, message.updated, lsp.client.diagnostics, tui.toast.show, and more.
LLM Documentation: llms.txt (complete OpenCode docs for LLMs)
Cross-Tool Feature Parity
ECC is the first plugin to maximize every major AI coding tool. Here’s how each harness compares:
Feature
Claude Code
Cursor IDE
Codex CLI
OpenCode
Agents
13
Shared (AGENTS.md)
Shared (AGENTS.md)
12
Commands
33
Shared
Instruction-based
24
Skills
50+
Shared
10 (native format)
37
Hook Events
8 types
15 types
None yet
11 types
Hook Scripts
9 scripts
16 scripts (DRY adapter)
N/A
Plugin hooks
Rules
29 (common + lang)
29 (YAML frontmatter)
Instruction-based
13 instructions
Custom Tools
Via hooks
Via hooks
N/A
6 native tools
MCP Servers
14
Shared (mcp.json)
4 (command-based)
Full
Config Format
settings.json
hooks.json + rules/
config.toml
opencode.json
Context File
CLAUDE.md + AGENTS.md
AGENTS.md
AGENTS.md
AGENTS.md
Secret Detection
Hook-based
beforeSubmitPrompt hook
Sandbox-based
Hook-based
Auto-Format
PostToolUse hook
afterFileEdit hook
N/A
file.edited hook
Version
Plugin
Plugin
Reference config
1.6.0
Key architectural decisions:
AGENTS.md at root is the universal cross-tool file (read by all 4 tools)
DRY adapter pattern lets Cursor reuse Claude Code’s hook scripts without duplication
Skills format (SKILL.md with YAML frontmatter) works across Claude Code, Codex, and OpenCode
Codex’s lack of hooks is compensated by persistent_instructions and sandbox permissions
📖 Background
I’ve been using Claude Code since the experimental rollout. Won the Anthropic x Forum Ventures hackathon in Sep 2025 building zenith.chat with @DRodriguezFX - entirely using Claude Code.
These configs are battle-tested across multiple production applications.
Token Optimization
Claude Code usage can be expensive if you don’t manage token consumption. These settings significantly reduce costs without sacrificing quality.
~70% reduction in hidden thinking cost per request
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE
95
50
Compacts earlier — better quality in long sessions
Switch to Opus only when you need deep architectural reasoning:
/model opus
Daily Workflow Commands
Command
When to Use
/model sonnet
Default for most tasks
/model opus
Complex architecture, debugging, deep reasoning
/clear
Between unrelated tasks (free, instant reset)
/compact
At logical task breakpoints (research done, milestone complete)
/cost
Monitor token spending during session
Strategic Compaction
The strategic-compact skill (included in this plugin) suggests /compact at logical breakpoints instead of relying on auto-compaction at 95% context. See skills/strategic-compact/SKILL.md for the full decision guide.
When to compact:
After research/exploration, before implementation
After completing a milestone, before starting the next
Critical: Don’t enable all MCPs at once. Each MCP tool description consumes tokens from your 200k window, potentially reducing it to ~70k.
Keep under 10 MCPs enabled per project
Keep under 80 tools active
Use disabledMcpServers in project config to disable unused ones
Agent Teams Cost Warning
Agent Teams spawns multiple context windows. Each teammate consumes tokens independently. Only use for tasks where parallelism provides clear value (multi-module work, parallel reviews). For simple sequential tasks, subagents are more token-efficient.
⚠️ Important Notes
Token Optimization
Hitting daily limits? See the Token Optimization Guide for recommended settings and workflow tips.
Language: English | 繁體中文
Everything Claude Code
🌐 Language / 语言 / 語言
English | 简体中文 | 繁體中文 | 日本語
The performance optimization system for AI agent harnesses. From an Anthropic hackathon winner.
Not just configs. A complete system: skills, instincts, memory optimization, continuous learning, security scanning, and research-first development. Production-ready agents, hooks, commands, rules, and MCP configurations evolved over 10+ months of intensive daily use building real products.
Works across Claude Code, Codex, Cowork, and other AI agent harnesses.
The Guides
This repo is the raw code only. The guides explain everything.
Setup, foundations, philosophy. Read this first.
Token optimization, memory persistence, evals, parallelization.
What’s New
v1.7.0 — Cross-Platform Expansion & Presentation Builder (Feb 2026)
AGENTS.md-based Codex support, installer targeting, and Codex docsfrontend-slidesskill — Zero-dependency HTML presentation builder with PPTX conversion guidance and strict viewport-fit rulesarticle-writing,content-engine,market-research,investor-materials,investor-outreachv1.6.0 — Codex CLI, AgentShield & Marketplace (Feb 2026)
/codex-setupcommand generatescodex.mdfor OpenAI Codex CLI compatibilitysearch-first,swift-actor-persistence,swift-protocol-di-testing,regex-vs-llm-structured-text,content-hash-cache-pattern,cost-aware-llm-pipeline,skill-stocktake/security-scanskill runs AgentShield directly from Claude Code; 1282 tests, 102 rulesv1.4.1 — Bug Fix (Feb 2026)
parse_instinct_file()was silently dropping all content after frontmatter (Action, Evidence, Examples sections) during/instinct-import. Fixed by community contributor @ericcai0814 (#148, #161)v1.4.0 — Multi-Language Rules, Installation Wizard & PM2 (Feb 2026)
configure-eccskill provides guided setup with merge/overwrite detection/pm2,/multi-plan,/multi-execute,/multi-backend,/multi-frontend,/multi-workflow) for managing complex multi-service workflowscommon/+typescript/+python/+golang/directories. Install only the languages you needv1.3.0 — OpenCode Plugin Support (Feb 2026)
llms.txtfor comprehensive OpenCode docsv1.2.0 — Unified Commands & Skills (Feb 2026)
/sessionscommand for session historySee the full changelog in Releases.
🚀 Quick Start
Get up and running in under 2 minutes:
Step 1: Install the Plugin
Step 2: Install Rules (Required)
For manual install instructions see the README in the
rules/folder.Step 3: Start Using
✨ That’s it! You now have access to 13 agents, 56 skills, and 32 commands.
🌐 Cross-Platform Support
This plugin now fully supports Windows, macOS, and Linux. All hooks and scripts have been rewritten in Node.js for maximum compatibility.
Package Manager Detection
The plugin automatically detects your preferred package manager (npm, pnpm, yarn, or bun) with the following priority:
CLAUDE_PACKAGE_MANAGER.claude/package-manager.jsonpackageManagerfield~/.claude/package-manager.jsonTo set your preferred package manager:
Or use the
/setup-pmcommand in Claude Code.📦 What’s Inside
This repo is a Claude Code plugin - install it directly or copy components manually.
🛠️ Ecosystem Tools
Skill Creator
Two ways to generate Claude Code skills from your repository:
Option A: Local Analysis (Built-in)
Use the
/skill-createcommand for local analysis without external services:This analyzes your git history locally and generates SKILL.md files.
Option B: GitHub App (Advanced)
For advanced features (10k+ commits, auto-PRs, team sharing):
Install GitHub App | ecc.tools
Both options create:
AgentShield — Security Auditor
Scan your Claude Code configuration for vulnerabilities, misconfigurations, and injection risks.
What it scans: CLAUDE.md, settings.json, MCP configs, hooks, agent definitions, and skills across 5 categories — secrets detection (14 patterns), permission auditing, hook injection analysis, MCP server risk profiling, and agent config review.
The
--opusflag runs three Claude Opus 4.6 agents in a red-team/blue-team/auditor pipeline. The attacker finds exploit chains, the defender evaluates protections, and the auditor synthesizes both into a prioritized risk assessment. Adversarial reasoning, not just pattern matching.Output formats: Terminal (color-graded A-F), JSON (CI pipelines), Markdown, HTML. Exit code 2 on critical findings for build gates.
Use
/security-scanin Claude Code to run it, or add to CI with the GitHub Action.GitHub | npm
🔬 Plankton — Write-Time Code Quality Enforcement
Plankton (credit: @alxfazio) is a recommended companion for write-time code quality enforcement. It runs formatters and 20+ linters on every file edit via PostToolUse hooks, then spawns Claude subprocesses (routed to Haiku/Sonnet/Opus by violation complexity) to fix issues the main agent missed. Three-phase architecture: auto-format silently (40-50% of issues), collect remaining violations as structured JSON, delegate fixes to a subprocess. Includes config protection hooks that prevent agents from modifying linter configs to pass instead of fixing code. Supports Python, TypeScript, Shell, YAML, JSON, TOML, Markdown, and Dockerfile. Use alongside AgentShield for security + quality coverage. See
skills/plankton-code-quality/for full integration guide.🧠 Continuous Learning v2
The instinct-based learning system automatically learns your patterns:
See
skills/continuous-learning-v2/for full documentation.📋 Requirements
Claude Code CLI Version
Minimum version: v2.1.0 or later
This plugin requires Claude Code CLI v2.1.0+ due to changes in how the plugin system handles hooks.
Check your version:
Important: Hooks Auto-Loading Behavior
Claude Code v2.1+ automatically loads
hooks/hooks.jsonfrom any installed plugin by convention. Explicitly declaring it inplugin.jsoncauses a duplicate detection error:History: This has caused repeated fix/revert cycles in this repo (#29, #52, #103). The behavior changed between Claude Code versions, leading to confusion. We now have a regression test to prevent this from being reintroduced.
📥 Installation
Option 1: Install as Plugin (Recommended)
The easiest way to use this repo - install as a Claude Code plugin:
Or add directly to your
~/.claude/settings.json:This gives you instant access to all commands, agents, skills, and hooks.
🔧 Option 2: Manual Installation
If you prefer manual control over what’s installed:
Add hooks to settings.json
Copy the hooks from
hooks/hooks.jsonto your~/.claude/settings.json.Configure MCPs
Copy desired MCP servers from
mcp-configs/mcp-servers.jsonto your~/.claude.json.Important: Replace
YOUR_*_HEREplaceholders with your actual API keys.🎯 Key Concepts
Agents
Subagents handle delegated tasks with limited scope. Example:
Skills
Skills are workflow definitions invoked by commands or agents:
Hooks
Hooks fire on tool events. Example - warn about console.log:
Rules
Rules are always-follow guidelines, organized into
common/(language-agnostic) + language-specific directories:See
rules/README.mdfor installation and structure details.🗺️ Which Agent Should I Use?
Not sure where to start? Use this quick reference:
/everything-claude-code:plan "Add auth"/everything-claude-code:plan+ architect agent/tdd/code-review/build-fix/e2e/security-scan/refactor-clean/update-docs/go-review/python-reviewCommon Workflows
Starting a new feature:
Fixing a bug:
Preparing for production:
❓ FAQ
How do I check which agents/commands are installed?
This shows all available agents, commands, and skills from the plugin.
My hooks aren't working / I see "Duplicate hooks file" errors
This is the most common issue. Do NOT add a
"hooks"field to.claude-plugin/plugin.json. Claude Code v2.1+ automatically loadshooks/hooks.jsonfrom installed plugins. Explicitly declaring it causes duplicate detection errors. See #29, #52, #103.My context window is shrinking / Claude is running out of context
Too many MCP servers eat your context. Each MCP tool description consumes tokens from your 200k window, potentially reducing it to ~70k.
Fix: Disable unused MCPs per project:
Keep under 10 MCPs enabled and under 80 tools active.
Can I use only some components (e.g., just agents)?
Yes. Use Option 2 (manual installation) and copy only what you need:
Each component is fully independent.
Does this work with Cursor / OpenCode / Codex?
Yes. ECC is cross-platform:
.cursor/. See Cursor IDE Support..opencode/. See OpenCode Support.How do I contribute a new skill or agent?
See CONTRIBUTING.md. The short version:
skills/your-skill-name/SKILL.md(with YAML frontmatter)agents/your-agent.md🧪 Running Tests
The plugin includes a comprehensive test suite:
🤝 Contributing
Contributions are welcome and encouraged.
This repo is meant to be a community resource. If you have:
Please contribute! See CONTRIBUTING.md for guidelines.
Ideas for Contributions
Cursor IDE Support
ECC provides full Cursor IDE support with hooks, rules, agents, skills, commands, and MCP configs adapted for Cursor’s native format.
Quick Start (Cursor)
What’s Included
scripts/hooks/via shared adapter.cursor/skills/for translated additions.cursor/commands/if installed.cursor/mcp.jsonif installedHook Architecture (DRY Adapter Pattern)
Cursor has more hook events than Claude Code (20 vs 8). The
.cursor/hooks/adapter.jsmodule transforms Cursor’s stdin JSON to Claude Code’s format, allowing existingscripts/hooks/*.jsto be reused without duplication.Key hooks:
Rules Format
Cursor rules use YAML frontmatter with
description,globs, andalwaysApply:Codex CLI Support
ECC provides first-class Codex CLI support with a reference configuration, Codex-specific AGENTS.md supplement, and 16 ported skills.
Quick Start (Codex)
What’s Included
.codex/config.toml— model, permissions, MCP servers, persistent instructions.codex/AGENTS.md(Codex-specific supplement).agents/skills/— SKILL.md + agents/openai.yaml per skillstrict(read-only sandbox) andyolo(full auto-approve)Skills
Skills at
.agents/skills/are auto-loaded by Codex:Key Limitation
Codex CLI does not yet support hooks (OpenAI Codex Issue #2109, 430+ upvotes). Security enforcement is instruction-based via
persistent_instructionsin config.toml and the sandbox permission system.🔌 OpenCode Support
ECC provides full OpenCode support including plugins and hooks.
Quick Start
The configuration is automatically detected from
.opencode/opencode.json.Feature Parity
Hook Support via Plugins
OpenCode’s plugin system is MORE sophisticated than Claude Code with 20+ event types:
tool.execute.beforetool.execute.aftersession.idlesession.createdsession.deletedAdditional OpenCode events:
file.edited,file.watcher.updated,message.updated,lsp.client.diagnostics,tui.toast.show, and more.Available Commands (32)
/plan/tdd/code-review/build-fix/e2e/refactor-clean/orchestrate/learn/checkpoint/verify/eval/update-docs/update-codemaps/test-coverage/go-review/go-test/go-build/python-review/multi-plan/multi-execute/multi-backend/multi-frontend/multi-workflow/pm2/sessions/skill-create/instinct-status/instinct-import/instinct-export/evolve/promote/projects/learn-eval/setup-pmPlugin Installation
Option 1: Use directly
Option 2: Install as npm package
Then add to your
opencode.json:Documentation
.opencode/MIGRATION.md.opencode/README.md.opencode/instructions/INSTRUCTIONS.mdllms.txt(complete OpenCode docs for LLMs)Cross-Tool Feature Parity
ECC is the first plugin to maximize every major AI coding tool. Here’s how each harness compares:
Key architectural decisions:
persistent_instructionsand sandbox permissions📖 Background
I’ve been using Claude Code since the experimental rollout. Won the Anthropic x Forum Ventures hackathon in Sep 2025 building zenith.chat with @DRodriguezFX - entirely using Claude Code.
These configs are battle-tested across multiple production applications.
Token Optimization
Claude Code usage can be expensive if you don’t manage token consumption. These settings significantly reduce costs without sacrificing quality.
Recommended Settings
Add to
~/.claude/settings.json:modelMAX_THINKING_TOKENSCLAUDE_AUTOCOMPACT_PCT_OVERRIDESwitch to Opus only when you need deep architectural reasoning:
Daily Workflow Commands
/model sonnet/model opus/clear/compact/costStrategic Compaction
The
strategic-compactskill (included in this plugin) suggests/compactat logical breakpoints instead of relying on auto-compaction at 95% context. Seeskills/strategic-compact/SKILL.mdfor the full decision guide.When to compact:
When NOT to compact:
Context Window Management
Critical: Don’t enable all MCPs at once. Each MCP tool description consumes tokens from your 200k window, potentially reducing it to ~70k.
disabledMcpServersin project config to disable unused onesAgent Teams Cost Warning
Agent Teams spawns multiple context windows. Each teammate consumes tokens independently. Only use for tasks where parallelism provides clear value (multi-module work, parallel reviews). For simple sequential tasks, subagents are more token-efficient.
⚠️ Important Notes
Token Optimization
Hitting daily limits? See the Token Optimization Guide for recommended settings and workflow tips.
Quick wins:
Use
/clearbetween unrelated tasks,/compactat logical breakpoints, and/costto monitor spending.Customization
These configs work for my workflow. You should:
💜 Sponsors
This project is free and open source. Sponsors help keep it maintained and growing.
Become a Sponsor | Sponsor Tiers
🌟 Star History
🔗 Links
📄 License
MIT - Use freely, modify as needed, contribute back if you can.
Star this repo if it helps. Read both guides. Build something great.