{"slug": "show-hn-agentbadge-lighthouse-for-ai-coding-agents-0-100-readiness-score", "title": "Show HN: Agentbadge – Lighthouse for AI coding agents (0-100 readiness score)", "summary": "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.", "body_md": "**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.**\n\n*Not affiliated with [agentbadge.xyz](https://agentbadge.xyz), an agent-readiness platform for websites and APIs.*\n\n**Currently optimized for JS/TS repositories** — Go, Rust, and Makefile-based test/CI detection is on the roadmap.\n\n🔗 **Live demo:** [agentbadge.emreceyhan.xyz](https://agentbadge.emreceyhan.xyz)\n\n[Quickstart](#-quickstart) • [The 5 Pillars](#-the-5-pillars-100-points-total) • [One-Click Remediation](#-one-click-remediation) • [Badge Setup](#-badge-setup) • [Contributing](#-contributing)\n\nWhen a new human engineer joins your team, they get the README, the setup guide, and twenty minutes looking over a teammate's shoulder.\n\nWhen an **autonomous AI coding agent** enters your repository, it gets raw files.\n\n- It **guesses** the bootstrap and install commands.\n- It **invents tests** where none exist.\n- It has no clue **why** the backend depends on Redis.\n- It repeats the same architectural mistake three times, and engineers dismiss the model as incapable.\n\n**It is not a model limitation. It is a context failure.**\n\nRepositories do not expose what an agent needs in a machine-readable format.\n\n`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.\n\n```\n┌────────────────────────────────────────────────────────────────────────┐\n│                        AGENT READINESS SCORE: 100                      │\n├──────────────┬──────────────┬──────────────┬─────────────┬─────────────┤\n│ 1. CONTEXT   │   2. SETUP   │3.VERIFICATION│ 4.GUARDRAIL │  5. TOOLING │\n│   (25 Pts)   │   (20 Pts)   │   (20 Pts)   │   (20 Pts)  │   (15 Pts)  │\n└──────────────┴──────────────┴──────────────┴─────────────┴─────────────┘\n```\n\n- 🟢 **80 – 100** :`agent-ready` (A / A+)\n- 🔵 **60 – 79** :`agent-friendly` (B)\n- 🟡 **40 – 59** :`agent-tolerated` (C)\n- 🔴 **0 – 39** :`agent-hostile` (F)\n\nRun a scan in any repository in under 5 seconds:\n\n```\n# 1. Run full audit in current directory\nnpx agentbadge scan .\n\n# 2. Export SVG badge directly to your repository\nnpx agentbadge scan . --badge\n\n# 3. Auto-generate or patch AGENTS.md instructions (safe & idempotent)\nnpx agentbadge scan . --fix\n\n# 4. Output machine-readable JSON for CI/CD gates\nnpx agentbadge scan . --json\n🛡️  agentbadge — Repository Readiness Scanner\n\nRepository: Agentbadge\nOverall Score: 100/100 (A+) · agent-ready\n\nPillar Breakdown:\n────────────────────────────────────────────────────────────\nContext & Documentation      ████████████████████ 100% (25/25 pts)\nSetup & Environment          ████████████████████ 100% (20/20 pts)\nVerification & Testing       ████████████████████ 100% (20/20 pts)\nGuardrails & Safety          ████████████████████ 100% (20/20 pts)\nTooling & Schemas            ████████████████████ 100% (15/15 pts)\n────────────────────────────────────────────────────────────\n```\n\n*Does the agent understand project boundaries within the first 60 seconds?*\n\n- `AGENTS.md` /`CLAUDE.md` /`.cursorrules` guidelines (+10)\n- Architecture overview, directory map & design principles in `README.md` (+8)\n- Architecture Decision Records (ADRs) or structured `docs/` index (+4)\n- `CONTRIBUTING.md` defining branch conventions and PR criteria (+3)\n\n*Can the agent spin up the project without guessing system dependencies?*\n\n- Deterministic package lockfiles (`pnpm-lock.yaml` ,`package-lock.json` ,`poetry.lock` ,`Cargo.lock` ) (+6)\n- Comprehensive `.env.example` template for secrets and runtime configuration (+5)\n- Container or sandbox specifications (`Dockerfile` ,`docker-compose.yml` ,`.devcontainer` ) (+5)\n- Single-command bootstrap script (`Makefile` ,`Taskfile` ,`npm run setup` ) (+4)\n\n*Can the agent verify its changes in under 30 seconds?*\n\n- Executable automated test suite command (`npm test` ,`pytest` ,`cargo test` ) (+8)\n- Strict static type checking (`tsc --noEmit` ,`mypy --strict` ) (+6)\n- Linter and formatter configurations (`biome` ,`eslint` ,`ruff` ) (+6)\n\n*Are there automated barriers preventing regressions and secret leakage?*\n\n- Automated CI/CD pipeline on push/PR (`.github/workflows` ) (+10)\n- Pre-commit git hooks (`husky` ,`lefthook` ,`pre-commit` ) (+5)\n- Secret leakage prevention and strict `.gitignore` rules (+5)\n\n*Can the agent execute structured CLI tools and consume machine-readable contracts?*\n\n- Automation scripts directory (`scripts/` , project CLI utilities) (+6)\n- Model Context Protocol (MCP) server manifest (`mcp.json` ) (+5)\n- Declarative data schemas (`OpenAPI` ,`GraphQL` ,`Prisma` ,`Protobuf` ) (+4)\n\nDon't just diagnose — **patch**.\n\nWhen you run `npx agentbadge scan . --fix`, `agentbadge` analyzes the exact deficiencies and safely patches your **`AGENTS.md`** file:\n\n- **Idempotent** : Re-running`--fix` updates existing patch blocks without creating duplicates.\n- **Context-Aware** : Detects your package manager (`pnpm` ,`npm` ,`yarn` ,`bun` ) and configures appropriate verification commands.\n\nYou can embed your repository's badge in two ways:\n\nGenerate your badge locally or during CI via CLI:\n\n```\nnpx agentbadge scan . --badge\n```\n\nThen reference the committed badge file in your `README.md`:\n\n```\n[![agentbadge](./agentbadge.svg)](https://github.com/Emreceyhnn/Agentbadge)\n```\n\nIf you deploy `apps/web` (e.g. to Vercel), embed a live badge that automatically updates on scan:\n\n```\n[![agentbadge](https://agentbadge.emreceyhan.xyz/api/badge?repo=Emreceyhnn/Agentbadge)](https://agentbadge.emreceyhan.xyz)\n\nReplace `Emreceyhnn/Agentbadge` with your own `owner/repo`.\napps/web/          Next.js app: landing page, /api/scan, /api/badge\npackages/core/     agentbadge-core: scan engine, rules per pillar, SVG badge\npackages/cli/      agentbadge CLI: scan, --fix (AGENTS.md), --badge\ndocs/openapi.yaml  OpenAPI spec for the public web API\n```\n\nWorkflow commands (run from the repo root):\n\n```\npnpm install --frozen-lockfile   # install (pre-commit hook is set up by `prepare`)\npnpm run build                   # build core, cli and web\npnpm run lint && pnpm run type-check && pnpm test\n```\n\nContributions are warmly welcome! Whether you are adding new framework detectors or improving heuristics:\n\n1. Fork the repository.\n2. Clone locally: `git clone https://github.com/Emreceyhnn/Agentbadge.git`\n3. Install dependencies: `pnpm install`\n4. Build & verify: `pnpm run build && pnpm run test`\n5. Open a Pull Request!\n\n**Star ⭐ this repository if you believe AI coding agents deserve better context!**\n\n<sub>Built with ❤️ by Emre Ceyhan for the future of autonomous software engineering.</sub>", "url": "https://wpnews.pro/news/show-hn-agentbadge-lighthouse-for-ai-coding-agents-0-100-readiness-score", "canonical_source": "https://github.com/Emreceyhnn/Agentbadge", "published_at": "2026-11-24 16:27:48+00:00", "updated_at": "2026-11-24 16:42:21.718054+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools"], "entities": ["Agentbadge", "Emre Ceyhan", "Claude Code", "Cursor", "Codex", "Devin", "GitHub Copilot"], "also_reported_by": [], "takeaway": "Running `npx agentbadge scan .` scores a repository 0–100 across context, setup, verification, guardrails and tooling, and `--fix` generates or patches AGENTS.md instructions idempotently.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-agentbadge-lighthouse-for-ai-coding-agents-0-100-readiness-score", "markdown": "https://wpnews.pro/news/show-hn-agentbadge-lighthouse-for-ai-coding-agents-0-100-readiness-score.md", "text": "https://wpnews.pro/news/show-hn-agentbadge-lighthouse-for-ai-coding-agents-0-100-readiness-score.txt", "jsonld": "https://wpnews.pro/news/show-hn-agentbadge-lighthouse-for-ai-coding-agents-0-100-readiness-score.jsonld"}}