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•3mo ago

Comments

jordanmnunez•3mo 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•3mo 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.

Show HN: Glance – Fast CSV inspection for the terminal (SIMD-accelerated)

https://github.com/AveryClapp/glance
1•AveryClapp•49s ago•0 comments

Busy for the Next Fifty to Sixty Bud

https://pestlemortar.substack.com/p/busy-for-the-next-fifty-to-sixty-had-all-my-money-in-bitcoin-...
1•mithradiumn•1m ago•0 comments

Imperative

https://pestlemortar.substack.com/p/imperative
1•mithradiumn•2m ago•0 comments

Show HN: I decomposed 87 tasks to find where AI agents structurally collapse

https://github.com/XxCotHGxX/Instruction_Entropy
1•XxCotHGxX•6m ago•1 comments

I went back to Linux and it was a mistake

https://www.theverge.com/report/875077/linux-was-a-mistake
1•timpera•7m ago•1 comments

Octrafic – open-source AI-assisted API testing from the CLI

https://github.com/Octrafic/octrafic-cli
1•mbadyl•8m ago•1 comments

US Accuses China of Secret Nuclear Testing

https://www.reuters.com/world/china/trump-has-been-clear-wanting-new-nuclear-arms-control-treaty-...
1•jandrewrogers•9m ago•1 comments

Peacock. A New Programming Language

1•hashhooshy•14m ago•1 comments

A postcard arrived: 'If you're reading this I'm dead, and I really liked you'

https://www.washingtonpost.com/lifestyle/2026/02/07/postcard-death-teacher-glickman/
2•bookofjoe•15m ago•1 comments

What to know about the software selloff

https://www.morningstar.com/markets/what-know-about-software-stock-selloff
2•RickJWagner•19m ago•0 comments

Show HN: Syntux – generative UI for websites, not agents

https://www.getsyntux.com/
3•Goose78•20m ago•0 comments

Microsoft appointed a quality czar. He has no direct reports and no budget

https://jpcaparas.medium.com/ab75cef97954
2•birdculture•20m ago•0 comments

AI overlay that reads anything on your screen (invisible to screen capture)

https://lowlighter.app/
1•andylytic•21m ago•1 comments

Show HN: Seafloor, be up and running with OpenClaw in 20 seconds

https://seafloor.bot/
1•k0mplex•21m ago•0 comments

Tesla turbine-inspired structure generates electricity using compressed air

https://techxplore.com/news/2026-01-tesla-turbine-generates-electricity-compressed.html
2•PaulHoule•23m ago•0 comments

State Department deleting 17 years of tweets (2009-2025); preservation needed

https://www.npr.org/2026/02/07/nx-s1-5704785/state-department-trump-posts-x
2•sleazylice•23m ago•1 comments

Learning to code, or building side projects with AI help, this one's for you

https://codeslick.dev/learn
1•vitorlourenco•23m ago•0 comments

Effulgence RPG Engine [video]

https://www.youtube.com/watch?v=xFQOUe9S7dU
1•msuniverse2026•25m ago•0 comments

Five disciplines discovered the same math independently – none of them knew

https://freethemath.org
4•energyscholar•25m ago•1 comments

We Scanned an AI Assistant for Security Issues: 12,465 Vulnerabilities

https://codeslick.dev/blog/openclaw-security-audit
1•vitorlourenco•26m ago•0 comments

Amazon no longer defend cloud customers against video patent infringement claims

https://ipfray.com/amazon-no-longer-defends-cloud-customers-against-video-patent-infringement-cla...
2•ffworld•27m ago•0 comments

Show HN: Medinilla – an OCPP compliant .NET back end (partially done)

https://github.com/eliodecolli/Medinilla
2•rhcm•30m ago•0 comments

How Does AI Distribute the Pie? Large Language Models and the Ultimatum Game

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6157066
1•dkga•30m ago•1 comments

Resistance Infrastructure

https://www.profgalloway.com/resistance-infrastructure/
3•samizdis•35m ago•1 comments

Fire-juggling unicyclist caught performing on crossing

https://news.sky.com/story/fire-juggling-unicyclist-caught-performing-on-crossing-13504459
1•austinallegro•35m ago•0 comments

Restoring a lost 1981 Unix roguelike (protoHack) and preserving Hack 1.0.3

https://github.com/Critlist/protoHack
2•Critlist•37m ago•0 comments

GPS and Time Dilation – Special and General Relativity

https://philosophersview.com/gps-and-time-dilation/
1•mistyvales•40m ago•0 comments

Show HN: Witnessd – Prove human authorship via hardware-bound jitter seals

https://github.com/writerslogic/witnessd
1•davidcondrey•40m ago•1 comments

Show HN: I built a clawdbot that texts like your crush

https://14.israelfirew.co
2•IsruAlpha•42m ago•2 comments

Scientists reverse Alzheimer's in mice and restore memory (2025)

https://www.sciencedaily.com/releases/2025/12/251224032354.htm
2•walterbell•45m ago•0 comments