Repository navigation
Conversation
Each FLOW/ACTION record carries <!-- added --> and <!-- used --> comments under its heading. A record is used when learnExperience reads it or when the same recipe is recorded again; the used date updates once per day. Agents see the age of each record in the experience TOC and inline recipes. ExperienceCompactor drops records never used within experience.forgetUnusedAfterDays (default 15) and keeps the last-used date through AI compaction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
DavertMik
requested a deployment
to
regression
November 22, 2026 21:38 — with
GitHub Actions
Waiting
DenysKuchma
approved these changes
Nov 26, 2026
This branch is waiting to be deployed
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.
Experience files only grow, and agents cannot tell a recipe that worked yesterday from one recorded months ago. Each record now stores when it was added and when it was last used. Agents see that age, and the compactor removes records nobody ever used.
Spec:
docs/superpowers/specs/2026-11-22-experience-usage-tracking-design.mdFormat
Every
## FLOW:/## ACTION:record gets comments under its heading:addedis stamped bywriteExperienceFile, the single write path, so new records, compactor rewrites and legacy files all get it.usedis set whenlearnExperiencereads the record, or when the same code or flow is recorded again (that covers Navigator, which gets recipes inline). It is day-based: a second use on the same UTC day does not touch the file.markUsededits only theusedcomment of the raw file through mdq. Frontmatter and the rest of the file are untouched. A record found in a secondary experience directory is updated where it lives.Agents see the age
The same appears in inline recipes (
## HOW to … (single-step, used 2 days ago)) and inexplorbot experience. The comments are stripped from every body sent to an agent, andmaxReadLinescounts lines without them.Forgetting
ExperienceCompactor.forgetUnusedRecords()runs first inautocompactandcompactAllExperiences. It is deterministic: it drops records whoseaddedis older thanexperience.forgetUnusedAfterDays(default 15;0/falsekeeps them) and that have noused. Records withoutaddedare stamped, not deleted. AI compaction keeps the newestused(restoreLastUsed), so a used record does not turn into an unused one.Notes
explorbot compactAI-reviews them once.CLAUDE.mdenvelope table anddocs/reference/configuration.mdare updated.Tests
used,$in recorded code, secondary directories, TOC ages, forgetting and the used date surviving AI compaction.bun test tests/unit tests/integration: 1999 pass, 1 fail. The failure,ApibotConfigParser environment fallback > enables Langfuse from LANGFUSE_* env vars, fails the same way onmain.src/ai/, so the regression gate will queue; it is left for a reviewer to approve.🤖 Generated with Claude Code