Performance optimization for AI agent harnesses
affaan-m/everything-claude-code — 93k stars • Anthropic hackathon winner
agent37.club
A production-ready plugin ecosystem that transforms AI coding agents from generic assistants into optimized, context-aware, self-improving systems.
| 93.3K | GitHub stars |
| 28 | Specialized sub-agents |
| 116 | Skills (domain expertise) |
| 59 | Slash commands |
| 12 | Language ecosystems |
| 997+ | Internal tests passing |
Evolved through 10+ months of intensive daily use. Not theoretical configs — battle-tested patterns.
# Quick install via marketplace /plugin marketplace add \ affaan-m/everything-claude-code /plugin install \ everything-claude-code@everything-claude-code # Or clone + selective install git clone https://github.com/affaan-m/everything-claude-code ./install.sh typescript # language-specific # Start using immediately /everything-claude-code:plan "Build auth system"
Selective install architecture lets you pick exactly which agents, skills, and rules to install per project.
| TypeScript | Python | Go |
| C++ | Java | Kotlin |
| Swift | Perl | Rust |
| Django | Laravel | Spring Boot |
/plan # Structured task breakdown /architect # System design decisions /research # Deep-dive investigation
/tdd # Test-driven development /build-fix # Auto-resolve build errors /refactor # Structured refactoring /dead-code # Find and remove dead code
/code-review # Senior-level review /security-scan # Vulnerability analysis /e2e # End-to-end test generation
/learn # Capture mid-session insight /evolve # Cluster instincts into skills /review # Review learned patterns
Commands are the entry points; they compose skills + agents under the hood to accomplish complex workflows.
| Agent | Role |
|---|---|
| Planner | Task decomposition & sequencing |
| Architect | System design & trade-off analysis |
| Code Reviewer | Quality gates & best practices |
| Build Resolver | Compile error diagnosis & fix |
| Security Analyst | Vulnerability scanning & remediation |
| DB Optimizer | Query analysis & index suggestions |
Each agent runs in its own context window. The iterative retrieval pattern uses progressive refinement to prevent information loss across agent boundaries.
# Profile levels ECC_HOOK_PROFILE=minimal # light touch ECC_HOOK_PROFILE=standard # default ECC_HOOK_PROFILE=strict # maximum checks # Disable specific hooks ECC_DISABLED_HOOKS=hook-a,hook-b
Memory explosion fixes, throttling, tail sampling, sandbox access correction, and re-entrancy guards ensure hooks don't degrade performance.
Rules are the guardrails that ensure consistent code quality regardless of which skill or agent is active. They're organized by language and always present in the agent's system prompt.
| TypeScript | Strict types, ESM, error handling |
| Python | Type hints, async patterns, packaging |
| Go | Error wrapping, interfaces, testing |
| Swift | Protocols, Concurrency, memory |
| Rust | Ownership, lifetimes, unsafe policy |
| Java | Generics, streams, Spring patterns |
| PHP | PSR-12, strict types, Laravel conventions |
| Perl | strict/warnings, Modern Perl idioms |
# Example: TypeScript rule enforcement # The agent will always: - Use strict TypeScript (no `any`) - Prefer interfaces over types - Handle errors explicitly - Use ESM imports - Add JSDoc for public APIs
Activates code generation rules, build tooling, test patterns. Focuses the agent on shipping code.
Shifts to analysis mode: code review checklists, security scanning, performance audit patterns.
Enables investigation workflows: web search, documentation parsing, comparison frameworks.
Contexts are layered on top of the base system prompt. They don't replace rules — they add mode-specific guidance.
# Context composition: Base prompt + Language rules (always) + Active context (mode) + Skill knowledge (on demand) + Memory/state (persisted) = Final system prompt
This layering keeps the base lean while allowing rich, task-specific knowledge to be injected only when needed.
AI agents lose all context when a session ends. Every new session starts from scratch — no memory of decisions, patterns, or project state.
# State persists structured data # between sessions: session_context - project decisions - architecture choices - resolved issues learned_patterns - coding preferences - error resolution paths - project conventions instincts - confidence scores - usage frequency - evolution history
# Capture an insight /learn "This project uses barrel exports for all feature modules" # Review learned patterns /review # Evolve instincts into skills /evolve # Import/export for sharing /export-instincts > team-patterns.json /import-instincts < team-patterns.json
After a few sessions, the agent knows your naming conventions, preferred patterns, and common error resolutions without being told.
AI agents generate code fast but can introduce vulnerabilities: SQL injection, XSS, leaked secrets, insecure defaults. AgentShield catches these before they ship.
| 102 | Security rules |
| 1,282+ | Test cases |
# Run a security scan /security-scan # Output example: CRITICAL SQL injection in user_query() Line 42: f"SELECT * FROM users WHERE id = {user_input}" FIX: Use parameterized queries HIGH Hardcoded API key detected Line 8: api_key = "sk-..." FIX: Use environment variables LOW Missing rate limiting on /api/login FIX: Add express-rate-limit middleware
Community-contributed security hook that integrates with CI/CD pipelines for continuous scanning.
Match model capability to task complexity. Don't use a large model for simple refactors.
Key insight: Token optimization isn't just about cost — it's about keeping the important context in the window so the agent doesn't lose track of the task.
Run multiple agent instances on separate branches simultaneously using git worktree. Each gets its own working directory.
# Create parallel workstreams git worktree add ../feature-auth feature/auth git worktree add ../feature-api feature/api # Run agents in each worktree # They share the same repo but # work on different branches
Coordinated execution where one agent's output feeds the next:
For heavy workloads, the system provides guidance on how many parallel instances to run based on task complexity and API rate limits.
| GitHub | PR review, issue management, Actions |
| Supabase | Database ops, auth, edge functions |
| Vercel | Deploy, preview, environment config |
| Railway | Service deploy, logs, scaling |
MCP configs give the agent authenticated access to external services without embedding credentials in prompts.
# MCP config structure # mcp-configs/github.json { "name": "github", "transport": "stdio", "command": "npx", "args": [ "@modelcontextprotocol/server-github" ], "env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" } }
MCP is becoming the standard protocol for agent-tool communication. These configs are ready-to-use templates for the most common integrations.
# .claude/config language: typescript framework: nextjs database: supabase payments: stripe skills: - typescript-strict - nextjs-app-router - supabase-rls - stripe-webhooks
language: go framework: grpc database: postgresql skills: - go-error-handling - grpc-protobuf - postgres-migrations
language: python framework: django async: celery skills: - django-drf - celery-tasks - python-typing
language: rust framework: axum database: postgresql skills: - rust-ownership - axum-handlers - sqlx-queries
Templates are starting points. The selective installer lets you mix and match skills from different templates.
AI agents frequently generate wrong install commands (npm install in a pnpm project). This detection ensures correct commands every time.
# Project-level config # .claude/package-manager.json { "manager": "pnpm", "version": "9.x" } # The agent then uses: pnpm add express # not npm install pnpm run build # not npm run pnpm exec tsc # not npx
Run tests at key milestones. Lower overhead, but problems compound between checks.
Validate after every tool call via PostToolUse hooks. Higher overhead, catches issues immediately.
Generate k solutions and measure what fraction passes all graders. Useful for benchmarking agent configurations against each other.
# CLAUDE.md - your project's brain # This file is read by the agent at # every session start. # Project: E-commerce Platform ## Stack - Next.js 15 (App Router) - Supabase (Auth + DB + Storage) - Stripe (Payments) - Resend (Email) ## Conventions - All components in src/components/ - Server actions in src/actions/ - Always use RLS policies - Never use any type ## Active Skills - nextjs-app-router - supabase-rls - stripe-webhooks - typescript-strict
When you run a command like /plan "add subscription billing", the system composes:
This is the core insight: the plugin doesn't replace the agent's intelligence — it gives it the right context at the right time.
| 93.3K | GitHub stars |
| 12.2K | Forks |
| 150+ | GitHub App installs |
The project originated at an Anthropic hackathon and has since grown into one of the most-starred developer tools repositories on GitHub.
# Lean, high-signal CLAUDE.md # MyApp Stack: Next.js 15, Supabase, TypeScript Style: Biome (not ESLint) Test: Vitest + Playwright ## Rules - NO any types - NO default exports - Server components by default - All DB access via Supabase RLS ## Structure src/app/ # Routes src/components/ # UI src/lib/ # Shared utils src/actions/ # Server actions supabase/ # Migrations
Rule of thumb: If you'd tell a new team member on day one, put it in CLAUDE.md. Everything else goes in skills or rules.
The plugin transforms the agent from a generic code generator into a project-native team member.
| Feature | everything-claude-code | Custom CLAUDE.md | IDE Plugins |
|---|---|---|---|
| Skills library | 116 skills | Manual | Limited |
| Sub-agent delegation | 28 agents | None | None |
| Session persistence | SQLite + hooks | None | Varies |
| Security scanning | AgentShield (102 rules) | Manual | Basic |
| Continuous learning | Instinct evolution | None | None |
| Multi-harness support | 5 platforms | 1 platform | 1 platform |
| Community size | 93K stars | N/A | Varies |
./install.sh typescript
Raw model capability matters less than the system around it: context, memory, tools, and verification.
The right knowledge at the right time beats a bigger model with no context. Skills, rules, and memory make this possible.
Continuous learning with instinct evolution means the system improves with use, not just with updates.
AI-generated code moves fast. Automated security scanning is the only way to keep up without slowing down.
93K stars, 12K forks, translations in multiple languages. The best agent configs come from community iteration.
You don't need all 116 skills. Start with CLAUDE.md + a few commands. Add skills as your needs grow.
93k stars • 28 agents • 116 skills • 59 commands • 12 languages
The performance optimization system for AI agent harnesses.
From an Anthropic hackathon winner.
github.com/affaan-m/everything-claude-code
agent37.club