frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Agents-lint – detect stale paths and context rot in AGENTS.md files

https://github.com/giacomo/agents-lint
1•devGiacomo•1h ago
AGENTS.md (and CLAUDE.md, GEMINI.md, .cursorrules) has become the standard way to tell AI coding agents how your repo works. It's now in 60,000+ repos. Codex, Claude Code, and Gemini CLI read these files before every task.

The problem: nobody keeps them up to date.

Paths get renamed. npm scripts change. Framework patterns go stale. The file that was accurate when you wrote it in September starts giving your agents wrong instructions by December — without a single commit to AGENTS.md.

An ETH Zurich study presented at ICSE 2026 put numbers on this: stale context files reduced agent task success by 2–3% while increasing token costs by over 20%.

agents-lint is a zero-dependency CLI that catches this automatically:

  npx agents-lint
It runs five independent checks: 1. Filesystem — every path mentioned in your file is verified to exist 2. npm scripts — every `npm run <script>` is verified against package.json (workspace-aware) 3. Dependencies — deprecated packages (moment, request, tslint) are flagged 4. Framework staleness — Angular NgModules in Angular 14+, ReactDOM.render() in React 19, getInitialProps in Next.js App Router, CommonJS in ESM projects 5. Structure — recommended sections, bloat (>15k chars adds 20% token cost), unresolved TODOs, old year references

Every run produces a freshness score (0–100). The real value is adding it to CI with a weekly schedule — because context rot happens even when the file hasn't changed:

  schedule:
    - cron: '0 9 * * 1'  # Every Monday
That weekly schedule is the whole point. Your AGENTS.md can rot without a single commit to it.

When multiple agent config files exist (AGENTS.md + CLAUDE.md, etc.), it also cross-checks them for conflicting instructions — e.g. one file says `npm run test`, the other says `npm run test:unit`.

What I found when testing on real repos: absolute home-directory paths that only work on the author's machine, monorepo commands copy-pasted into single-package projects, and framework references to APIs removed two major versions ago. All silently misleading agents on every task.

Landing page: https://giacomo.github.io/agents-lint/ npm: https://www.npmjs.com/package/agents-lint

Would love feedback — especially if you find unexpected issues in your own AGENTS.md.

Comments

devGiacomo•1h ago
Author here. To pre-empt the obvious question: yes, you could write a shell script to check if paths exist. The value here is three things a shell script doesn't do:

1. Framework-specific pattern detection — knowing that @NgModule is stale in Angular 14+, or that ReactDOM.render() was removed in React 19, requires versioned knowledge about what's current vs. deprecated. That's not a grep.

2. The weekly CI schedule — context rot happens even when AGENTS.md hasn't changed. Your codebase evolves around a static file. A one-time check misses this entirely.

3. Cross-file consistency — if you have both AGENTS.md and CLAUDE.md, they can silently contradict each other. One says `npm run test`, the other says `npm run test:unit`. Agents pick one arbitrarily.

A few things I found on real repos while building this: steipete/agent-scripts has absolute paths like ~/Projects/bird/bird in their AGENTS.md — works on one MacBook, fails silently everywhere else. The official agentsmd/agents.md spec repo says "execute the test suite (if present)" in their own AGENTS.md — they're not sure if they have tests. The sample AGENTS.md that everyone copy-pastes includes Turborepo monorepo commands that break in single-package projects.

None of this is criticism — it's just how files rot. Happy to answer questions about the design.

Show HN: Jaypore CI. Minimal offline CI system

1•theSage•1m ago•0 comments

An interactive version of Xkcd 2347, the dependency comic

https://nesbitt.io/xkcd-2347/
1•zdw•1m ago•1 comments

Disable Your SSH access accidentally with scp

https://sny.sh/hypha/blog/scp
1•zdw•2m ago•0 comments

Palantir Sues Magazine for Reporting That the Government Didn't Want Palantir

https://www.techdirt.com/2026/02/27/palantir-sues-swiss-magazine-for-accurately-reporting-that-th...
1•Palmik•4m ago•0 comments

Show HN: Grant Project Access Without Forms or Mail Verification

https://autheona.com/
1•lasgawe•5m ago•0 comments

Have We Forgotten How to Design?

https://lmnt.me/blog/have-we-forgotten-how-to-design.html
1•zdw•8m ago•0 comments

Genode OS Framework 26.02

https://genode.org/documentation/release-notes/26.02
1•snvzz•10m ago•0 comments

Show HN: Vigil – Zero-dependency safety guardrails for AI agent tool calls

2•HexitLabs•11m ago•1 comments

Show HN: Wardrowbe – I kept staring at a full closet with nothing to wear

https://github.com/Anyesh/wardrowbe
1•rabbi7•12m ago•0 comments

Blocks apps on your phone by scanning a QR Code

https://apps.apple.com/us/app/offkit-app-blocker/id6758268708
1•nickfthedev•13m ago•0 comments

Extend a Python-Like Language into Your Own Type-Safe DSL

https://tapl-lang.org/
1•orti•14m ago•0 comments

Ventuals: Pre-IPO Stocks on Hyperliquid

https://app.ventuals.com/markets
1•andxor•18m ago•0 comments

Masakhane

https://www.masakhane.io/
1•pizza•21m ago•0 comments

Show HN: Magicreader – shorten and simplify web articles in-place

https://magicreader.com/demo
1•mzelling•22m ago•0 comments

The Radical Font

https://terathon.com/blog/radical-font.html
1•tzury•24m ago•0 comments

Who is/was the Anthropic in Amazons rise? What about in Facebook’s?

1•AbstractH24•25m ago•0 comments

Show HN: Inteldump – CIA World Factbook 1990–2025 terminal UI (281 countries)

https://inteldump.site
1•crawde•33m ago•0 comments

3D Printer for Kids [video]

https://www.youtube.com/watch?v=2HuwxrtPo_0
1•sxzygz•34m ago•0 comments

After 6 months of building an app, Google Play keeps bitching about permission

https://www.photoai4me.com
1•zoalord12•34m ago•1 comments

Extracted tech from 5.6M sites and made some dashboards out of 'em

https://versiondb.io/technology/php/
1•_chse_•39m ago•1 comments

OpenAI strikes deal with Pentagon hours after Trump admin bans Anthropic

https://www.cnn.com/2026/02/27/tech/openai-pentagon-deal-ai-systems
4•Bender•41m ago•1 comments

Archer Aviation to use Starlink internet in its eVTOL air taxis

https://electrek.co/2026/02/27/archer-aviation-achr-starlink-internet-evtol-air-taxis/
1•Bender•41m ago•0 comments

Tesla launches Model Y 7-seater in Europe for €2,500

https://electrek.co/2026/02/27/tesla-launches-model-y-7-seater-europe-model-yl/
1•Bender•43m ago•1 comments

Show HN: Ebbforge - 10M agent Rust swarm engine, 8 fundamental benchmarks

https://github.com/juyterman1000/ebbforge-swarm-intelligence
2•agent-world•47m ago•0 comments

Show HN: YourApp – Mobile-First Developer Tool (Contributors Welcome)

https://github.com/Adhishtanaka/yourapp
1•adhishtanaka•48m ago•0 comments

Show HN: QAA – YAML-Based Test Automation Agent Looking for Contributors)

1•adhishtanaka•51m ago•0 comments

AI is rewiring how the best Go players think

https://www.technologyreview.com/2026/02/27/1133624/ai-is-rewiring-how-the-worlds-best-go-players...
2•davidst•52m ago•0 comments

Show HN: Use your domain as its own sale page

https://d.omain.co/
1•mrdost•54m ago•0 comments

How Louis Theroux Took on the Manosphere

https://www.gq-magazine.co.uk/article/louis-theroux-vs-the-manosphere
1•mellosouls•58m ago•0 comments

Human Brain Cells on a Chip Learned to Play Doom in a Week

https://m.slashdot.org/story/452896
2•computersuck•59m ago•0 comments