frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: cAGENTS – Context-aware AGENTS.md from templates

https://github.com/centralinc/cAGENTS
1•jordanmnunez•12h ago

Comments

jordanmnunez•12h ago
I wasn't happy with bloated static AGENTS.md files in a monorepo, so I built cAGENTS to compile instructions dynamically.

cAGENTS composes context-aware instruction files (AGENTS.md, CLAUDE.md, .cursorrules) from small templates with simple conditions. It can detect which tools or files exist, tailor rules per environment, and even drop in guidance for matching file types (like *.ts).

  npm i -D cagents
  npx cagents init
  npx cagents build

Built in Rust, shipped via npm. MIT-licensed. Repo: github.com/centralinc/cAGENTS
jordanmnunez•11h ago
I wanted AI agents and developers to share a single source of rules that adapted to context. - A local dev might have bd installed. - A cloud coding agent might have none of them with other resistrictions.

Static AGENTS.md files don’t scale to those realities. They’re either overly general or wrong for half your environments.

How it works

Templates live in .cAGENTS/templates/ with YAML headers that define conditions:

  ---
  name: beads
  when:
    use_beads: "true"
  order: 20
  ---
  ## Issue Tracking with bd
  
  **IMPORTANT:** This project uses bd for ALL issue tracking.
  
  - Check ready work: `bd ready --json`
  - Create issue: `bd create "Title" -t bug -p 1`

  [variables.command]
  use_beads = "command -v bd >/dev/null 2>&1 && echo true || echo false"
When you run cagents build, it evaluates conditions and composes AGENTS.md (and CLAUDE.md, etc.) using only relevant templates.

  If bd is installed → the section appears.
  If not → it’s skipped. Same templates, different contexts.
My goal is to have this library help me implement progressive disclosure for AI agents. I want to present the right amount of context at the right time. I'm experimenting with `cagent context` so an AI agent can look up all relevant rules for any file automatically and On-demand detail granularity. The dream is that agents that don’t need a 300-line AGENTS.md. just the parts that matter for what they’re touching.

How I use cAGENTS:

  - Gitignore instruction files; commit only templates.
  - Auto-build on postinstall.
  - Keep templates small and composable.

Jujutsu VCS

https://swiftwithmajid.com/2025/10/15/introducing-jujutsu-vcs/
1•vinhnx•8m ago•0 comments

Elements of Programming: A Treatise on the Foundations of Computing

https://leanpub.com/elementsofprogramming
1•vesterthacker•8m ago•1 comments

Game Development Principles

https://irradiance.ca/posts/principles/
1•tarsiel•15m ago•0 comments

Bannon Claims 'There Is a Plan' for Trump to Run for a Third Term

https://www.nytimes.com/2025/10/24/us/politics/president-trump-2028-steve-bannon.html
5•zerosizedweasle•16m ago•6 comments

Key IOCs for Pegasus and Predator Spyware Removed with iOS 26 Update

https://iverify.io/blog/key-iocs-for-pegasus-and-predator-spyware-cleaned-with-ios-26-update
1•transpute•17m ago•0 comments

Underdetermined Weaving with Machines (2021) [video]

https://www.youtube.com/watch?v=on_sK8KoObo
3•akkartik•19m ago•3 comments

Show HN: An AI-flavored philosophy web app to fuel an offline journaling habit

https://www.gnothi.app
1•lumpycustard•23m ago•0 comments

Advice for New Principal Tech ICs (I.e., Notes to Myself)

https://eugeneyan.com/writing/principal/
2•7d7n•24m ago•0 comments

Target cuts 1,800 corporate jobs in its first major layoffs in a decade

https://www.cnbc.com/2025/10/23/target-layoffs-corporate-jobs-sales-slump.html
2•mgh2•26m ago•1 comments

The State of Developer Ecosystem 2025

https://blog.jetbrains.com/research/2025/10/state-of-developer-ecosystem-2025/
1•doppp•28m ago•0 comments

Scanned Maker – Make PDFs look scanned, 100% private

https://scannedmaker.com/
1•youxwa•32m ago•0 comments

Should You Apply for a PhD in AI (2025-26)?

https://yashbhalgat.github.io/blog/phd-or-not-phd.html
1•azhenley•33m ago•0 comments

Ask HN: Not treated respectfully by colleague – advice?

2•golly_ned•34m ago•1 comments

A 'Death Train' Is Haunting South Florida

https://www.theatlantic.com/technology/2025/10/brightline-train-florida/684624/
2•freebee87•37m ago•1 comments

Bringing the Dodo Back from Extinction [video]

https://www.youtube.com/watch?v=u3TJYiYB6nk
1•gmays•37m ago•0 comments

Minimum Wage Increases and University Lab Employment

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5629410
1•mhb•40m ago•0 comments

LLMs Are Weird, Man

https://surfingcomplexity.blog/2025/05/25/llms-are-weird-man/
1•andai•42m ago•0 comments

Computer Science Education Newsletter

https://computingeducationthings.substack.com/
1•dannyprol•48m ago•0 comments

The design space of AI coding tools

https://austinhenley.com/blog/aidesignspace.html
5•vinhnx•50m ago•0 comments

Context engineering is sleeping on the humble hyperlink

https://mbleigh.dev/posts/context-engineering-with-links/
2•vinhnx•54m ago•0 comments

Maverick-2 Technology Launch (CPU, GPU,? Is this the next hardware evolution?) [video]

https://www.youtube.com/watch?v=krpunC3itSM
1•peter_d_sherman•57m ago•0 comments

Strong State Capacity is a product of blurred lines

https://substack.com/home/post/p-177051199
2•currydove•1h ago•0 comments

Rare dinosaur mummies help scientists recreate their prehistoric lives

https://apnews.com/article/dinosaur-mummy-wyoming-767580229ba73b0e07cf08c593d87225
2•gmays•1h ago•0 comments

Deepagent: A powerful desktop AI assistant

https://deepagent.abacus.ai
2•o999•1h ago•0 comments

A Brief History of Inference in Astronomy

https://www.ams.org/journals/notices/202510/noti3267/noti3267.html
1•bikenaga•1h ago•0 comments

Lightning Talk: Why Aren't We GUI Yet?

https://docs.google.com/presentation/d/1iuaKYn94aFNsYzahZSpX3rB6dgeYhyC_xN6fuNAvlc0/edit?usp=sharing
1•0x1997•1h ago•0 comments

Why I Run

https://www.theatlantic.com/magazine/archive/2025/12/the-running-ground-memoir/684633/
2•gmays•1h ago•0 comments

Modifying a radiation meter for (radioactive) rock collecting

https://maurycyz.com/projects/ludlum3/
2•8organicbits•1h ago•0 comments

The sci-fi films that physicists love to watch – from Interstellar to Spider-Man

https://www.nature.com/articles/d41586-025-03440-7
2•bookofjoe•1h ago•0 comments

What Is Intelligence?

https://mitpress.mit.edu/9780262049955/what-is-intelligence/
10•sva_•1h ago•2 comments