feat: evolving memory + self-critique + coaching, bounded by token economy (3.3.0) - #40
Merged
Merged
Conversation
…onomy (3.3.0)
Make the memory loop learn and improve service without spending more tokens.
The rules block (memory-rules.mjs + install.md Step 4 + AGENTS.md) now adds:
- Self-check before non-trivial answers (assumptions / edge cases / what would
make this wrong), scaled to the task, internal — no padding.
- Coach, don't impose: flag HIGH-IMPACT anti-patterns in the user's code as a
QUESTION, log a one-line hypothesis to PRACTICES/observations.md, promote to
confirmed-{good,bad}.md only when the user confirms.
- Evolving memory: track new tech in STACKS/ (one note each), record firm user
preferences in MEMORY.md, hypotheses->facts, drop stale observations.
- Explicit token-economy guard on the whole loop: passage-first, terse bullets,
dedup — smarts come from good notes + targeted recall, not re-reading.
Scaffold now creates PRACTICES/ + STACKS/; examples/ gains matching samples.
Rules kept dense (loaded every session). Bumps package to 3.3.0.
Verified: npm test 24+41, prettier 0, markdownlint 0, sync-agents OK, linkcheck 80.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the memory loop learn and improve service over time while staying token-cheap. The rules block (installed by
--rules, plusinstall.mdStep 4 andAGENTS.md) gains four tightly-written behaviors:PRACTICES/observations.md; promote toconfirmed-{good,bad}.mdonly when the user confirms.STACKS/(one note each), record firm preferences inMEMORY.md, hypotheses → facts, drop stale observations.The scaffold now creates
PRACTICES/+STACKS/;examples/gains matching samples. Rules kept dense (they load every session — keeping per-session cost low is part of the point). Package → 3.3.0.Verified:
npm test24 + 41 · prettier 0 · markdownlint 0 · sync-agents OK · linkcheck 80.🤖 Generated with Claude Code