Project Memory for AI Coding Agents: Decisions Linked to the Code They Cover

●1 ●12 ●49
calendar_today • schedule1 min read

Project Memory for AI Coding Agents: Decisions Linked to the Code They Cover

AI coding agents lose your team's decisions at the end of every chat. TokenCap now keeps them as project memory records, stored in your repository and linked to the files and functions they apply to.

A record is a decision, constraint, gotcha or convention:

tokencap analyze memory add --kind constraint \
  --title "Totals are rounded to cents" \
  --text "round() in src/money.js is the only rounding rule." \
  --anchor src/invoice.js --anchor src/money.js:round

When TokenCap builds a task pack, it adds the accepted records for the files in that pack, up to 8 records and about 300 tokens. When anchored code changes, the record is flagged stale until someone confirms it or supersedes it. Decisions captured from a session are only proposed; a person approves them.

Also new: every main command ends with one Next: line, and change review names the tests to run and where a missing test belongs.

File selection is unchanged. On all 235 benchmark tasks it matches the previous results task by task.

npm install -g tokencap

Want more deep dives?

Join 6,168+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

What Security Teams Want From AI Agents Before They Let Them Act Alone

Tom Smithverified - Nov 18

AI Agents for Business: What They Actually Do (and 3 Ways to Use Them)

floxolab - Nov 3

Dozens of email accounts: learning AI coding tools as a student

rahuldk1105 - Oct 27

Frameworks Are Institutional Memory

Ken W. Algerverified - Sep 17

Tuesday Coding Tip 33 — Imported CMake targets

Jakub Neruda - Dec 1
chevron_left
2k Points • 62 Badges
Jaipur, India • t.co/BRmkFprjYq
25Posts
10Comments
16Connections
tech freak

Related Jobs

View all jobs →

Commenters (This Week)

13 comments
5 comments
2 comments

Contribute meaningful comments to climb the leaderboard and earn badges!