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

●1 ●11 ●42
calendar_today ago • 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,024+ 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

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

rahuldk1105 - Oct 27

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

floxolab - Nov 3

Frameworks Are Institutional Memory

Ken W. Algerverified - Sep 17

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4
chevron_left
1.8k Points • 54 Badges
Jaipur, India • t.co/BRmkFprjYq
21Posts
9Comments
15Connections
tech freak

Related Jobs

Commenters (This Week)

8 comments
3 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!