cd /news/ai-agents/show-hn-agentbadge-lighthouse-for-ai… · home › topics › ai-agents › article
[ARTICLE · art-175529] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

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.

key 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.

read4 min views1 publishedNov 24, 2026
Show HN: Agentbadge – Lighthouse for AI coding agents (0-100 readiness score)
Image: Michielbdejong (auto-discovered)

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 /.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!

<sub>Built with ❤️ by Emre Ceyhan for the future of autonomous software engineering.</sub>

── more in #ai-agents 4 stories · sorted by recency
── more on @agentbadge 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-agentbadge-l…] indexed:0 read:4min 2026-11-24 · —