Show HN: Agentbadge – Lighthouse for AI coding agents (0-100 readiness score) Developer Emre Ceyhan released Agentbadge, a command-line tool that statically audits a repository across five pillars — context (25 points), setup (20), verification (20), guardrails (20) and tooling (15) — and returns a deterministic 0–100 readiness score for AI coding agents including Claude Code, Cursor, Codex, Devin and Copilot. The tool runs via `npx agentbadge scan .` in under 5 seconds, can export an SVG README badge, emit JSON for CI/CD gates, and generate or patch AGENTS.md instructions with `--fix`. Agentbadge is currently optimized for JS/TS repositories, with Go, Rust and Makefile-based test/CI detection on the roadmap. 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 https://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 https://agentbadge.emreceyhan.xyz Quickstart -quickstart • The 5 Pillars -the-5-pillars-100-points-total • One-Click Remediation -one-click-remediation • Badge Setup -badge-setup • Contributing -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: 1. Run full audit in current directory npx agentbadge scan . 2. Export SVG badge directly to your repository npx agentbadge scan . --badge 3. Auto-generate or patch AGENTS.md instructions safe & idempotent npx agentbadge scan . --fix 4. Output machine-readable JSON for CI/CD gates 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 / .cursorrules guidelines +10 - Architecture overview, directory map & design principles in README.md +8 - Architecture Decision Records ADRs or structured docs/ index +4 - CONTRIBUTING.md defining 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.example template 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 .gitignore rules +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 --fix updates 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 : agentbadge ./agentbadge.svg https://github.com/Emreceyhnn/Agentbadge If you deploy apps/web e.g. to Vercel , embed a live badge that automatically updates on scan: agentbadge https://agentbadge.emreceyhan.xyz/api/badge?repo=Emreceyhnn/Agentbadge 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: 1. Fork the repository. 2. Clone locally: git clone https://github.com/Emreceyhnn/Agentbadge.git 3. Install dependencies: pnpm install 4. Build & verify: pnpm run build && pnpm run test 5. Open a Pull Request Star ⭐ this repository if you believe AI coding agents deserve better context