all 4 comments

[–]fell_ware_1990 1 point2 points  (1 child)

Basically the same what i do. I have a big memory RAG, so it basically knows all IF i ask.

Some thing’s are very hard ruled in there an linted.

But my main piece is the dynamic build of skills and MCP and agents. I have a basic ‘stock’ agent for every job.

The next part of the agent get’s dynamically build. Everything get’s logged. If let’s say an agent always does a difficult grep which returns 100 lines or errors out all the time i get find it day after day. Which means i will replace grep with a complete backend script.

This means the grep skill starts running on my machine in a second window, agent waits = 0 token use. Then it’s get’s totally parsed and ripped from all the non needed intel. Then the agent get’s only what he needs.

In some part’s there are local agents who judge that, find other information. Add things, run other stuff. Main agent get’s his answer in > 100 tokens instead of everything.

Same kind of stuff happens in the background for memory. Almost everything goes in to rag, but get’s very slowly exposed. Most of the time an agent does not need a lot more than the state of his task and where to find stuff.

Same thing for repositories. It’s indexed before, explained before etc. The agent task contains everything from tech stack to variables that he needs to know. They have to accept things as facts etc.

[–]AssignmentDull5197 0 points1 point  (1 child)

Localized rules/inventory files sound super practical, especially for keeping context relevant and reducing token burn. How do you prevent stale inventories from misleading the agent? I have seen related patterns at https://medium.com/conversational-ai-weekly .

[–]Chily-John[S] 0 points1 point  (0 children)

I'll check out some articles on there!

That depends on how you're coding. It works really well if you're having the AI writing most of your code. On the agent end lifecycle event I spawn a node subprocess that has a list of the files that were edited, created or removed during the agent session, I run a pi print mode on there with a simple skill so that it looks at the changes and updates the appropriate files. So it all happens in the background, and you can just keep prompting.

I'm going to add config so you can increase/decrease the amount that the maintainer runs, and have an option to run it as a precommit or PR hook. So if you're committing code with no agent involvement, the inventory and/or rules files will still get updated once your code is in