logoalt Hacker News

bruce343434 • today at 12:39 PM • 3 replies • view on HN

If you are having a recurring issue with how you AI is developing the project, i.e. pittfalls, then you can put the right way to do it or a workaround in the AGENTS.md

This depends on both the AI model and the Project.

Other than that, most things should probably still go into documentation like README, CONTRIBUTING since a lot of process still generalizes to both humans and AI agents.

You can add a line in AGENTS that it should orient itself with those files before starting anything.

Stay on top of the "project memory" that your agent is building up. Literally prompt it to "dream about the project" so that it can prune stale entries itself and re-derive, re-summarize. I try to keep most project memory entries in traditional documentation, since it's also useful to humans. And putting it in the repo makes it useful across AI providers and accounts.

It's not well established to think about documentation this way. But documentation is instructions. Code is instructions. Code is commonly refactored and technical debt is regularly (hopefully!) reduced in a dedicated maintenance pass. Do the same for documentation.

And this is very unorthodox but: for my personal projects, I put the tickets as markdown in the repository now. They haev a fixed structure that begins with owner, status (approved, ai suggested, draft). I have tickets/todo and tickets/done. This way, tickets are not only version tracked, but also directly accessible to the agent without having to go through some API. As a bonus, it makes migrations to and from various forges very easy.

When you notice that a workflow generalizes across repositories or projects, you should move it out of AGENTS.md and into a SKILL.md


Replies

eigencoder • today at 4:12 PM

I tried putting tickets as markdown in my personal repository, but I found I had to be very diligent about pruning them, because ai suggested "tickets" kept being read by other agents and it would bloat the way they would build other unrelated features.

samudrijan • today at 4:50 PM

Keep the project management out of the code.

If you don’t want to use an api, then centralize all your tickets in one repo, organized by project.

Schlagbohrer • today at 3:28 PM

How do you manage the tickets? Are they just lists in .md files?

I have a workflow that creates a project folder, gives it a README.md, and git init's for everything. But the README.md also accumulates the TODO list which is where the tickets get put and it builds up a bit. I wonder if git has some esoteric way of doing this already that I could use...

➕ show 1 reply