Hacker News new | ask | show | jobs
by bruce343434 4 days ago
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

3 comments

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

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

I used to do this. One folder per epic with numbered files describing the work, acceptance details ..etc.

Now I use Beads and it’s been a game changer.

I misspoke a bit.

What I do is: each user story is a markdown file.

From that, I generate tickets. Tickets are ephemeral and live only in the sprint branch. Once the branch is merged, the sprint folder and its tickets is deleted and only durable documentation survives. Tickets are mostly AI slop anyway, and are really just glorified instructions to the subagents that implement them, so why keep them. I didn't care to read them too much other than a quick LGTM glance, so I don't care to keep them around either. They have served their purpose. If I absolutely need them for posterity, they are in git history, since I don't squash sprint branches.

I find user stories (which I either author myself, or fully review and/or amend) much more valuable to keep around. They are a beacon to follow and contain some sort of vision of how things should be and how things should work on a higher level.

I find tickets too myopic. IME keeping too much of such low level planning context can really put an AI into a jail of its own accidental making.

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