Overview
ECC is a performance optimization harness wrapping existing coding agents — Claude Code, Codex, OpenCode, Cursor — to inject skills, instincts, memory, security policies, and a research-first workflow. With 234,400+ GitHub stars, it is the most-starred AI agent tool on GitHub.
Features
- ✓Skills Injection
- ✓Instincts Engine
- ✓Persistent Memory Management
- ✓Security Sandboxing
- ✓Research-First Workflow
- ✓Multi-Agent Compatibility
Installation
git clone https://github.com/affaan-m/ECC and add to .agents directoryPros
- +Massive community (234K+ stars)
- +Works across multiple agent platforms
- +Improves quality without replacing the model
- +Built-in security and memory
- +Research-first reduces regressions
Cons
- −Adds abstraction complexity
- −Higher initial tokens in research-first mode
- −JavaScript-focused
- −Configuration overhead
Alternatives
Documentation
ECC — Agent Harness Performance Optimization System
Overview
ECC (by affaan-m) is a performance optimization layer for AI coding agents — Claude Code, Codex, OpenCode, Cursor, and beyond. With over 234,400 GitHub stars and 458 stars per day at its peak, ECC has become one of the most-starred AI agent tools on GitHub, surpassing most full agent frameworks.
ECC is not an agent framework in the traditional sense. Instead, it acts as a harness that wraps around existing coding agents to inject skills, instincts, memory management, security policies, and a research-first development workflow. It is written primarily in JavaScript and integrates as a .agents-compatible layer.
The philosophy behind ECC is that the quality of an AI coding agent is determined less by the underlying model and more by the harness — the prompts, the tool access patterns, the memory strategy, and the safety guardrails. ECC standardizes and optimizes all of these.
Features
- Skills Injection: Attach reusable skill definitions (prompt templates + tool bundles) to any agent session on demand.
- Instincts Engine: Pre-configured behavioral heuristics that guide agent decision-making — e.g., "prefer editing over rewriting," "verify before committing."
- Memory Management: Persistent cross-session memory that survives agent restarts, maintaining project context over time.
- Security Layer: Built-in guardrails for sandboxing agent actions, restricting filesystem access, and validating generated code.
- Research-First Workflow: Encourages agents to explore and understand the codebase before making changes, reducing regressions.
- Multi-Agent Compatibility: Works with Claude Code, Codex, OpenCode, Cursor, and other coding agents through a unified interface.
- Performance Optimization: Caches context, batches operations, and optimizes prompt delivery to reduce latency and API costs.
Installation
# Clone the ECC repository
git clone https://github.com/affaan-m/ECC
cd ECC
# Follow the setup instructions in the repository
# ECC integrates with your existing .agents directory
ECC is designed to drop into existing agent environments. Add it to your .agents directory structure to activate its optimization layer.
Quick Start
Once installed, ECC automatically augments your agent sessions. Configure which instincts and skills to load via the ECC configuration file:
{
"instincts": ["verify-before-commit", "prefer-edit-over-rewrite"],
"skills": ["code-review", "security-audit"],
"memory": { "enabled": true, "path": ".ecc/memory" }
}
Core Concepts
- Harness Layer: ECC sits between the raw agent runtime and the developer's workflow, intercepting actions and enriching them with context.
- Skills: Reusable bundles of prompts, tools, and behavioral rules that can be activated per-session.
- Instincts: Lightweight behavioral rules that shape agent priorities without full prompt engineering.
- Memory Graph: A persistent structure that tracks project state, decisions made, and lessons learned across sessions.
Advanced Features
Research-First Mode
When enabled, agents are instructed to read and understand the full relevant context before making any change. This mode significantly reduces buggy changes but increases initial token usage.
Security Sandboxing
ECC can restrict agent filesystem operations to whitelisted paths, block destructive commands, and require confirmation for risky actions like force-pushes or database migrations.
Pros
- ✅ Massive community adoption (234K+ stars)
- ✅ Works with multiple agent platforms — not vendor-locked
- ✅ Improves agent quality without replacing the underlying model
- ✅ Built-in security and memory management
- ✅ Research-first workflow reduces regressions
Cons
- ✅ Adds complexity — introduces a new abstraction layer
- ✅ Higher initial token usage in research-first mode
- ✅ JavaScript-focused; less ideal for Python-centric workflows
- ✅ Configuration overhead to get optimal results
When to Use
- Already using a coding agent and want better results — ECC is a drop-in enhancer, not a replacement.
- Teams needing cross-agent standardization — deploy ECC across Claude Code, Codex, and Cursor with consistent behavior.
- Security-conscious deployments — ECC's sandboxing and audit capabilities help contain agent actions.
