/knowledge:journal <subcommand> [args]from knowledge
Write to and query the knowledge vault journal — the log of WHY beliefs exist. Records context behind identity changes, learnings, corrections, and decisions.
Ships in knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scripts path: The Python scripts live in the knowledge-tools plugin. Resolve the path with:
KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1)
The journal is the append-only record of WHY things are the way they are.
For persistent agents, the journal records learnings, corrections, and decisions that shaped identity (defined in AGENTS.md/CLAUDE.md) and vault knowledge.
For project repos, the journal records why conventions were adopted, architectural decisions, and rationale behind project knowledge. Any agent working in the repo can query the journal before changing a convention to understand the reasoning behind it.
Before modifying AGENTS.md/CLAUDE.md or any vault knowledge, search the journal first. The journal may contain context about why something was written the way it was.
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py init")
When you learn something, make a decision, get corrected, or have a significant conversation — journal it.
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py add '<category>' '<summary>' '<context>' --source '<who/what>' --tags '<comma,separated>'")
Categories: learning, correction, decision, experiment, conversation
After adding, note the j:N ID. If this entry should be referenced from
AGENTS.md/CLAUDE.md or a vault knowledge file, add the reference: [j:N].
After adding a journal entry, if vector embeddings are available, update:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/vectorize.py update --journal $ID")
Before changing core beliefs, search for prior context:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py search '<query>'")
Uses SQLite FTS5 full-text search across summary, context, and tags.
When AGENTS.md/CLAUDE.md or a vault file references [j:42], retrieve the full context:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py get 42")
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py recent 10")
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py by-category correction")
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py by-tag identity")
If AGENTS.md/CLAUDE.md or a vault file says - Never block the main thread [j:3, j:7, j:19],
read all referenced entries before changing or removing that rule:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py get 3")
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py get 7")
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py get 19")
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py stats")
correctiondecisionlearningconversationexperimentAGENTS.md/CLAUDE.md and vault knowledge files reference journal entries:
- Never block the main thread [j:3, j:7, j:19]
- Adopted exhaustive switch pattern [j:45]
Each rule becomes traceable — grounded in the experiences and decisions that produced it. A rule without journal references is an assertion. A rule with references is knowledge.
Always use backup instead of dump for routine SQL export.
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py backup")
backup dumps to a temp file, verifies the INSERT count and in-memory
rebuild match the live DB, then atomically replaces journal.sql. This
prevents the footgun where shell redirects with dump overwrite good data.
Never do journal.py dump > journal.sql — dump writes to the file
directly AND prints status to stdout, so the redirect captures only the
status line and overwrites the real dump.
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py rebuild")
Rebuild validates the SQL file has entries before deleting the existing DB.
If the SQL is empty, rebuild refuses (pass --force to override). The
existing DB is backed up to .bak before deletion.
journal.db is .gitignored (binary)journal.sql (text dump) lives in gitbackup (not dump) to update the SQL file safelyjournal.py rebuild to recreate the db from the dump$ARGUMENTS is passed as the subcommand and arguments.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (agiterra/knowledge-claude-code) — no native marketplace selected
npx claudepluginhub p/agiterra-knowledge17 skills in this plugin
/associateAssociate — Fast Keyword AssociationsLightweight keyword-only association search — fast (<100ms), no vector embeddings, no LLM. Returns quick context associations from the knowledge vault./bootKnowledge BootFull boot sequence — restores session state and memory continuity after context compaction./calibrateCalibrate — Compression Test BatteryMeasure decompression fidelity after compaction. Creates or runs a compression test battery tailored to the knowledge vault.Other plugins' skills for the same job