Scores how well a repository can be worked on by AI coding agents (Claude Code, Cursor, Codex, Devin, Copilot) from 0 to 100, and provides an SVG badge for your README.
Not affiliated with agentbadge.xyz, an agent-readiness platform for websites and APIs.
Currently optimized for JS/TS repositories — Go, Rust, and Makefile-based test/CI detection is on the roadmap.
🔗 Live demo: agentbadge.emreceyhan.xyz
Quickstart • The 5 Pillars • One-Click Remediation • Badge Setup • Contributing
When a new human engineer joins your team, they get the README, the setup guide, and twenty minutes looking over a teammate's shoulder.
When an autonomous AI coding agent enters your repository, it gets raw files.
- It guesses the bootstrap and install commands.
- It invents tests where none exist.
- It has no clue why the backend depends on Redis.
- It repeats the same architectural mistake three times, and engineers dismiss the model as incapable.
It is not a model limitation. It is a context failure.
Repositories do not expose what an agent needs in a machine-readable format.
agentbadge statically audits your codebase across 5 core pillars, calculates a deterministic 0–100 readiness score, generates an SVG badge, and outputs an automated remediation patch.
┌────────────────────────────────────────────────────────────────────────┐
│ AGENT READINESS SCORE: 100 │
├──────────────┬──────────────┬──────────────┬─────────────┬─────────────┤
│ 1. CONTEXT │ 2. SETUP │3.VERIFICATION│ 4.GUARDRAIL │ 5. TOOLING │
│ (25 Pts) │ (20 Pts) │ (20 Pts) │ (20 Pts) │ (15 Pts) │
└──────────────┴──────────────┴──────────────┴─────────────┴─────────────┘
- 🟢 80 – 100 :
agent-ready(A / A+) - 🔵 60 – 79 :
agent-friendly(B) - 🟡 40 – 59 :
agent-tolerated(C) - 🔴 0 – 39 :
agent-hostile(F)
Run a scan in any repository in under 5 seconds:
npx agentbadge scan .
npx agentbadge scan . --badge
npx agentbadge scan . --fix
npx agentbadge scan . --json
🛡️ agentbadge — Repository Readiness Scanner
Repository: Agentbadge
Overall Score: 100/100 (A+) · agent-ready
Pillar Breakdown:
────────────────────────────────────────────────────────────
Context & Documentation ████████████████████ 100% (25/25 pts)
Setup & Environment ████████████████████ 100% (20/20 pts)
Verification & Testing ████████████████████ 100% (20/20 pts)
Guardrails & Safety ████████████████████ 100% (20/20 pts)
Tooling & Schemas ████████████████████ 100% (15/15 pts)
────────────────────────────────────────────────────────────
Does the agent understand project boundaries within the first 60 seconds?
AGENTS.md/CLAUDE.md/.cursorrulesguidelines (+10)- Architecture overview, directory map & design principles in
README.md(+8) - Architecture Decision Records (ADRs) or structured
docs/index (+4) CONTRIBUTING.mddefining branch conventions and PR criteria (+3)
Can the agent spin up the project without guessing system dependencies?
- Deterministic package lockfiles (
pnpm-lock.yaml,package-lock.json,poetry.lock,Cargo.lock) (+6) - Comprehensive
.env.exampletemplate for secrets and runtime configuration (+5) - Container or sandbox specifications (
Dockerfile,docker-compose.yml,.devcontainer) (+5) - Single-command bootstrap script (
Makefile,Taskfile,npm run setup) (+4)
Can the agent verify its changes in under 30 seconds?
- Executable automated test suite command (
npm test,pytest,cargo test) (+8) - Strict static type checking (
tsc --noEmit,mypy --strict) (+6) - Linter and formatter configurations (
biome,eslint,ruff) (+6)
Are there automated barriers preventing regressions and secret leakage?
- Automated CI/CD pipeline on push/PR (
.github/workflows) (+10) - Pre-commit git hooks (
husky,lefthook,pre-commit) (+5) - Secret leakage prevention and strict
.gitignorerules (+5)
Can the agent execute structured CLI tools and consume machine-readable contracts?
- Automation scripts directory (
scripts/, project CLI utilities) (+6) - Model Context Protocol (MCP) server manifest (
mcp.json) (+5) - Declarative data schemas (
OpenAPI,GraphQL,Prisma,Protobuf) (+4)
Don't just diagnose — patch.
When you run npx agentbadge scan . --fix, agentbadge analyzes the exact deficiencies and safely patches your AGENTS.md file:
- Idempotent : Re-running
--fixupdates existing patch blocks without creating duplicates. - Context-Aware : Detects your package manager (
pnpm,npm,yarn,bun) and configures appropriate verification commands.
You can embed your repository's badge in two ways:
Generate your badge locally or during CI via CLI:
npx agentbadge scan . --badge
Then reference the committed badge file in your README.md:
[](https://github.com/Emreceyhnn/Agentbadge)
If you deploy apps/web (e.g. to Vercel), embed a live badge that automatically updates on scan:
[](https://agentbadge.emreceyhan.xyz)
Replace `Emreceyhnn/Agentbadge` with your own `owner/repo`.
apps/web/ Next.js app: landing page, /api/scan, /api/badge
packages/core/ agentbadge-core: scan engine, rules per pillar, SVG badge
packages/cli/ agentbadge CLI: scan, --fix (AGENTS.md), --badge
docs/openapi.yaml OpenAPI spec for the public web API
Workflow commands (run from the repo root):
pnpm install --frozen-lockfile # install (pre-commit hook is set up by `prepare`)
pnpm run build # build core, cli and web
pnpm run lint && pnpm run type-check && pnpm test
Contributions are warmly welcome! Whether you are adding new framework detectors or improving heuristics:
- Fork the repository.
- Clone locally:
git clone https://github.com/Emreceyhnn/Agentbadge.git - Install dependencies:
pnpm install - Build & verify:
pnpm run build && pnpm run test - Open a Pull Request!
Star ⭐ this repository if you believe AI coding agents deserve better context!
<sub>Built with ❤️ by Emre Ceyhan for the future of autonomous software engineering.</sub>