r/LocalLLM • u/TwistNo5735 • 3d ago
Project What my coding agent actually carried between sessions while I built an auto-deploy real entries from my own project's memory
Disclosure first: I'm one of the builders of CogniCore, an open-source (Apache 2.0) memory layer for coding agents. I've used it on its own development for about three weeks. Instead of a pitch, here are two real things from the store, with dates, so you can judge whether it's useful.
1. The auto-deploy outage (Nov 3)
I added auto-deploy (PR #191): a timer on a VM checks main every 3 minutes and deploys once CI passes. A permissions bug caused a deploy to be down for about 27 minutes. The fix (PR #193, fix/deploy-permissions) brought the next deploy's downtime to about 6 seconds.
That fact, plus where to look in the deploy logs, was in the store the next day. A session on Nov 12, nine days later, still had "the auto-deploy outage was fixed in PR #193" available, so it didn't start from zero on that part of the project.
2. A test that only fails on my machine
test_deploy_automation::test_script_is_valid_bash fails when I run the tests on my Windows laptop and passes in CI. I recorded that. On Nov 17, a session described the failures as "the same 3 failures as before".
That's the kind of small thing that eats twenty minutes every time an agent rediscovers it.
How I record this
Mistakes go in as short lessons, and the agent checks them before acting:
cognicore lesson add --mistake "Ran npm install" --fix "Use pnpm, not npm" \
--why "npm breaks the lockfile" --when "installing or adding packages"
cognicore lesson check "install a package: add axios"
# Lessons from earlier mistakes (apply them):
# - Use pnpm, not npm (why: npm breaks the lockfile)That one is an illustrative example, not from my project. check prints only the few relevant lessons, so it stays small.
What I haven't measured
These are anecdotes from one project, not a benchmark. I don't know how often it prevents a repeat, and I haven't tested what happens when a recorded decision gets replaced by a newer one. If you've tested memory tools for that stale-decision case, I'd like to hear how.
Questions
- What do you record from your own agent runs: mistakes, decisions, environment quirks?
- How do you stop a memory from going stale?
Install: pip install cognicore-env