Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Kastalien-Research/thoughtbox --skill thoughtbox-evolutiongit clone --depth 1 https://github.com/Kastalien-Research/thoughtboxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kastalien-research/thoughtbox/thoughtbox-evolution)<a href="https://agentmods.dev/skills/kastalien-research/thoughtbox/thoughtbox-evolution"><img src="https://agentmods.dev/badge/skills/kastalien-research/thoughtbox/thoughtbox-evolution/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kastalien-research/thoughtbox/thoughtbox-evolution"><img src="https://agentmods.dev/badge/skills/kastalien-research/thoughtbox/thoughtbox-evolution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00102 | $0.01081 |
| Opus 5.5 | $0.00041 | $0.00432 |
| Sonnet 5.5 | $0.00020 | $0.00216 |
| Haiku 4.5 | $0.00010 | $0.00108 |
Grade A, and why
thoughtbox:evolution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Thought Evolution (A-Mem Pattern)
When you add a new insight to a reasoning session, earlier thoughts don't automatically update. Thought 1 might say "consider rate limiting" while thought 15 decides "use sliding window algorithm" — but thought 1 doesn't know about the sliding window decision. This skill checks which prior thoughts should evolve.
Based on the A-Mem paper (arxiv.org/abs/2502.12110): when new memory is added, find related existing memories and update their context.
When to Trigger
Run evolution checks when the new thought:
- Resolves ambiguity from earlier thoughts
- Contradicts an earlier assumption
- Adds implementation detail to a high-level earlier thought
- Synthesizes multiple earlier threads into a conclusion
Don't run for every thought — only on significant ones (synthesis, conclusions, decisions, revisions).
Workflow
Phase 1: Retrieve Session Content
// thoughtbox_execute
async () => {
const session = await tb.session.get("current-session-id");
return session.thoughts.map((t, i) => ({
number: t.thoughtNumber,
content: t.thought.slice(0, 200) // Truncate for efficiency
}));
}
Phase 2: Spawn Evolution Checker
Dispatch a Haiku subagent for cost efficiency (~400 tokens in subagent context, ~50 tokens returned):
Spawn subagent (model: haiku):
"Evaluate which prior thoughts should be updated based on a new insight.
NEW INSIGHT:
[Your new thought content]
PRIOR THOUGHTS:
S1: [thought 1 content]
S2: [thought 2 content]
...
For each thought, respond ONLY with:
S1: [UPDATE|NO_UPDATE] - [brief reason if UPDATE]
S2: [UPDATE|NO_UPDATE] - [brief reason if UPDATE]
...
Be selective. Only suggest UPDATE if the new insight meaningfully enriches
the prior thought's context. Keyword overlap alone is not enough."
Phase 3: Apply Revisions
For each thought marked UPDATE, create a revision:
async () => {
await tb.thought({
thought: "EVOLVED: [original content] — Now contextualized: [how new insight relates]",
thoughtType: "reasoning",
isRevision: true,
revisesThought: 1, // The thought number being updated
thoughtNumber: 20, // Current thought number (advances the chain)
totalThoughts: 25,
nextThoughtNeeded: true
});
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 132 lines · 102 tokens per session scan A 3368d88b93f4
thoughtbox:evolution is a skill published in the GitHub repository Kastalien-Research/thoughtbox (65 stars, last pushed 3mo ago), licensed MIT. It adds 102 tokens to every session and 1,081 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
handoff
Resume the most recent agent session for the current working directory, leading with any unanswered question. Use when the user says "where were we", "resume", "handoff", "pick up where I left off", or starts a session with no fresh context.
agentmemory-agents
How agentmemory wires into host coding agents via the connect command. Use when installing agentmemory into a specific agent, when asked which agents are supported, or when a connect adapter writes the wrong config path.
agentmemory-hooks
The agentmemory plugin hooks that capture observations automatically across the agent session lifecycle. Use when explaining how memory gets captured without manual saves, when debugging missing observations, or when tuning what gets recorded.
run-memory
Shared step of the marketing playbooks (analyze-performance, run-paid-campaigns, research-competitors, email-lifecycle): reads the last run's record, checks whether its recommendations were done and whether they worked, and saves a short record of this run for the next one. Loaded by those playbooks; not for direct…
save-learning
Shared step of the marketing playbooks (make-static-ads, analyze-performance, email-lifecycle, write-outreach): saves a short brand rule or finding in the human's own words, one idea per rule, retires the playbook's own older rules it replaces, and reads the result back to confirm. Loaded by those playbooks; not for…
lc-curate-context
Decide which files a task actually needs, record that as a reusable llm-context rule, verify it against the codebase - including the files your selection references but leaves out - and pack it for your own context, a chat, or a sub-agent you dispatch. Load when choosing what code to put in front of a model, packing…