knowledge

A search workflow that looks across project memory, Thoughtbox knowledge, Git history, assumptions, development patterns, and saved session handoffs. It returns findings together with where they came from.

In plain words
What is it for?
Use it to investigate a topic across the project's knowledge stores, compare the freshness and relevance of findings, and present the results with their provenance.
Why use it?
It reduces the chance of missing relevant prior decisions or repeating work stored in another project record.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/kastalien-research/thoughtbox/knowledge
Any agent
npx skills add Kastalien-Research/thoughtbox --skill knowledge
Clone the repo
git clone --depth 1 https://github.com/Kastalien-Research/thoughtbox

Made for: Claude Code, Codex.

Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00031 $0.00613
Opus 5 $0.00015 $0.00307
Sonnet 5 $0.00006 $0.00123
Haiku 4.5 $0.00003 $0.00061

Measured 2d ago against content hash 43ab59a02504, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

knowledge 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 2d 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.

.agents/skills/knowledge/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Search all knowledge stores for: $ARGUMENTS

Workflow

Phase 1: Parallel Search (Observe)

Execute all searches in parallel:

  1. MEMORY.md: Search the auto memory file at .Codex/projects/*/memory/MEMORY.md for the query terms using Grep
  2. Thoughtbox Knowledge Graph: Use ToolSearch to load thoughtbox_execute, then search entities and observations matching the query via tb.knowledge.listEntities({ name_pattern: "..." }) and tb.knowledge.queryGraph(...)
  3. Git History: Run git log --all --oneline --grep="$ARGUMENTS" -20 for commit history
  4. Assumption Registry: Search .assumptions/*.jsonl for matching assumption records using Grep
  5. DGM Patterns: Search .dgm/fitness.json for patterns matching the query using Grep
  6. Session Handoffs: Search .sessions/handoff-*.json for relevant context using Grep

Phase 2: Collate and Rank (Orient)

For each result found:

  1. Note the source store (provenance)
  2. Note the freshness (when was this last updated/verified)
  3. Note the relevance (how closely does it match the query)
  4. Check for cross-references (does this result reference other stores)

Phase 3: Present Results (Act)

Present results grouped by relevance, with provenance:

## Knowledge Query: "{query}"

### High Relevance
- [MEMORY.md] {finding} (line {N}, updated {date})
- [Thoughtbox] Entity: {name} — {observation} (created {date})

### Medium Relevance
- [Git] {commit-hash}: {message} ({date})

### Low Relevance
- [Assumptions] {assumption} (confidence: {N}%, last verified: {date})

### Cross-References
- Thoughtbox entity "{name}" relates to git commit {hash}

### Gaps
- No results found in: {store1}, {store2}
- Consider adding knowledge about "{query}" to {suggested_store}

Notes

  • If a store doesn't exist yet (e.g., .dgm/fitness.json not created), skip it silently
  • If Thoughtbox MCP tools aren't available, skip the knowledge graph search
  • Always show which stores were searched and which returned nothing — gaps are informative
  • If the query is broad, suggest more specific sub-queries

Read the full file on GitHub · 63 lines

Changes

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.

  1. 2d ago First seen · 63 lines · 31 tokens per session scan A 43ab59a02504

Subscribe to this mod's changes

knowledge is a skill published in the GitHub repository Kastalien-Research/thoughtbox (64 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 613 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

reasoning

Use BEFORE answering analytical, diagnostic, planning, or multi-step reasoning questions. Trigger phrases include "should I X or Y", "why is X happening", "what's the best approach", "what are the tradeoffs", "help me think through", "diagnose", "root cause", "plan/design X", "what are the implications of", "compare…

ejentum/ejentum-mcp · 186 tokens

xcodebuildmcp-structured-output-review

Use when reviewing XcodeBuildMCP structured output schema changes, schema versioning, manifest outputSchema metadata, and JSON fixture compatibility.

getsentry/XcodeBuildMCP · 37 tokens

opik-diagnose

Surface the Opik traces worth a developer's attention, ranked by signal — errors, failed tool calls, latency, regressions, and low online-eval scores — plus Diagnostics issues. Reads live/production traces via the SDK (searchtraces and agentinsights) and works with no MCP; uses the MCP issue entity when connected.…

comet-ml/opik-mcp · 147 tokens

cortex-automate

Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me when', 'trigger when', 'create a rule', 'auto-remember', 'sync to CLAUDE.md', 'push insights', 'set up trigger', 'when I open this file', 'when this keyword appears', or when you want to…

cdeust/Cortex · 93 tokens

tabnexus-mcp-evals

Generate, validate, and run isolated Codex-to-TabNexus MCP evaluations with a curated 600-query dataset, executable gold tool labels, safety checks, and best-of-three stability scoring. Use when testing TabNexus MCP tool coverage, Agent behavior, regression quality, destructive-action safety, prompt changes, or a…

KaichenCurry/TabNexus · 75 tokens

compare

Structured comparison of 2+ alternatives with consistent criteria and decision matrix.

n24q02m/wet-mcp · 15 tokens