Skip to content

feat: evolving memory + self-critique + coaching, bounded by token economy (3.3.0) - #40

Merged
Vahlame merged 1 commit into
mainfrom
feat/initializer-hybrid-and-docs-v3
Jun 15, 2026
Merged

feat: evolving memory + self-critique + coaching, bounded by token economy (3.3.0)#40
Vahlame merged 1 commit into
mainfrom
feat/initializer-hybrid-and-docs-v3

Conversation

@Vahlame

@Vahlame Vahlame commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Makes the memory loop learn and improve service over time while staying token-cheap. The rules block (installed by --rules, plus install.md Step 4 and AGENTS.md) gains four tightly-written behaviors:

  • Self-check before answering — assumptions stated? edge cases / failure modes? what would make this wrong? Scaled to the task, internal, no padding.
  • Coach, don't impose — spot a high-impact anti-pattern in the user's code (secrets, unparameterized SQL, missing boundary types, force-push w/o lease, untested security rules)? Ask, and 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 preferences in MEMORY.md, hypotheses → facts, drop stale observations.
  • Token economy (hard constraint) — passage-first reads, terse bullets, dedup. The intelligence comes from good notes + targeted recall, not re-reading or long monologues. So smarter ≠ pricier.

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 test 24 + 41 · prettier 0 · markdownlint 0 · sync-agents OK · linkcheck 80.

🤖 Generated with Claude Code

…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>
@Vahlame
Vahlame merged commit 1b785b2 into main Jun 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant