"SEO for your code, optimized for AI Agents."
ARO is a CLI toolkit designed to optimize your codebase for AI agents (Cursor, Windsurf, Devin). It eliminates the Hallucination Tax and ensures your code is understood by AI "instantly".
Analyze any project instantly without installation:
npx @agent-aro/cli audit
# or if installed globally
aro auditFor frequent use, install ARO globally:
npm install -g @agent-aro/cliDeeply analyze your project structure and calculate AI financial debt.
aro audit # Standard audit
aro audit --silent # Output only the score (for CI/CD)Analyze large files and get smart splitting suggestions. Optionally apply them automatically.
aro refactor # Analyze and generate refactoring plan
aro refactor --apply # Auto-split classes and extract types (agentic mode)Generate optimized configuration files for specific AI editors.
aro rules # Generates .cursorrules, .windsurfrules, etc.Generate an ARO Score badge and automatically patch your README.md.
aro badge --updateInitialize a GitHub Action to automatically audit your project on every push/PR.
aro init-ciEnable live integration so AI Agents can query your project structure directly.
aro mcp # Starts the MCP server💡 Tip: All commands work with
npx @agent-aro/cliif you haven't installed globally.🔌 Local LLMs: ARO's MCP server works with local LLMs like Ollama and LM Studio. See examples/mcp-local-llm for setup instructions.
- 🎯 Real-time ARO Score: Get a deterministic 0-100 rating of your code's AI-readiness.
- 🤖 Agentic Refactoring: Auto-split large files with
--applyflag for instant optimization. - 📊 Context File Analysis: Scores AI instruction files (AGENTS.md, .cursorrules) for quality.
- 💰 Financial Analyzer: Calculate the annual "AI-Debt" in USD and wasted developer hours.
- 🛰️ MCP Server: Native integration for AI Agents to query your structure directly.
- 🛡️ Security Gate: Integrated security checks for keys and dangerous functions.
The score (0-100) is based on AI-Agent understanding efficiency:
- Documentation (25pts): README quality and completeness.
- Structure (20pts): Organized directories and entry points.
- File Size (30pts): Avoiding truncation with manageable file sizes.
- AI Context (25pts): Quality of agent instruction files (AGENTS.md, .cursorrules).
We welcome all PRs! Check our CONTRIBUTING.md to get started.
MIT (c) Hasan Kemal Demirci