Set up and use Talamus as durable, local-first memory for AI agents. Use when an agent needs to initialize or diagnose a Talamus brain, ingest files or repos...
--- name: talamus-memory description: Set up and use Talamus as durable, local-first memory for AI agents. Use when an agent needs to initialize or diagnose a Talamus brain, ingest files or repositories, retrieve cited context across sessions, inspect note history, verify memory against sources, review proposed corrections, connect Talamus through MCP, or capture a session with explicit consent. --- # Talamus Memory Use the `talamus` CLI to maintain source-grounded Markdown memory backed by a derived local SQLite/FTS5 index. Keep the brain inspectable, preserve citations, and make all potentially paid or sensitive operations explicit. ## Safety contract - Run `talamus where` before acting so the selected brain is unambiguous. - Treat `ask`, `search --smart`, `scan --yes`, `ingest`, `enrich`, `consolidate`, `verify` without `--stale`, and `remember` as possible LLM calls. State the planned calls and obtain consent before running them unless the user already explicitly requested that exact operation. - Preview repository ingestion with `talamus scan --dry-run`. Never pass `--allow-secrets` without explicit approval. - Never install a session-capture hook or read/capture a transcript without explicit consent. Prefer `talamus setup --capture ask`. - Do not apply review items or corrections automatically. Show the proposal, then run `talamus review apply ID` or `talamus verify TITLE --apply` only after approval. - Preserve Talamus citation markers and identify the notes or sources behind an answer. Do not present unsupported recollection as verified fact. - Never expose secrets from `talamus.json`, environment variables, source files, transcripts, or `.talamus/logs`. ## 1. Inspect readiness ```bash talamus --version talamus where talamus status talamus doctor ``` If the executable is missing, explain the change and ask once before installing it. Use the first available isolated installer; do not run multiple installers: ```bash uv tool install "talamus[mcp]" # or, when uv is unavailable: pipx install "talamus[mcp]" # last resort: python -m pip install --user "talamus[mcp]" ``` Then run `talamus --version` again. If the install succeeded but the command is not on `PATH`, report the installer-provided bin directory instead of silently installing a second copy. Installing the skill itself must never execute a package installer; installation happens only when an agent uses the skill and the user approves the local change. If no brain exists, ask whether the memory belongs to this project or should be global. For a project brain, run `talamus setup --capture ask` from the project root. Use `talamus init` for minimal initialization without MCP or a hook. ## 2. Retrieve before generating Start with deterministic, no-embedding retrieval: ```bash talamus search "QUERY" --json talamus recall "QUESTION" --json talamus read "NOTE TITLE" --json ``` Use `--scope project+central` or `--all-brains` only when the user wants broader memory. If lexical retrieval is insufficient and the user approves an LLM call, retry with `talamus search "QUERY" --smart`. For a cited synthesis, run: ```bash talamus ask "QUESTION" --trace ``` For historical questions, preserve the requested time boundary: ```bash talamus ask "QUESTION" --as-of 2026-01 talamus timeline "NOTE TITLE" talamus history "NOTE TITLE" ``` ## 3. Add knowledge deliberately For a single source, summarize the expected scope and possible LLM usage before running: ```bash talamus ingest PATH_OR_URL ``` For a repository, preview first and show the plan: ```bash talamus scan . --dry-run --profile docs # After explicit approval: talamus scan . --yes --profile docs ``` Import an existing Markdown, Obsidian, or Notion-export vault without an LLM call when a lossless import is preferable: ```bash talamus import-vault PATH ``` After a write, report the target brain, sources processed, notes created or updated, review items created, and any skipped or failed inputs. ## 4. Verify and curate Check provenance without an LLM first: ```bash talamus verify --stale --json talamus review list ``` Inspect proposals before changing memory: ```bash talamus review show ID talamus verify "NOTE TITLE" ``` Apply or reject only after the user chooses: ```bash talamus review apply ID talamus review reject ID --reason "REASON" ``` Use `talamus reindex` after manual note edits. Use `talamus doctor` when an index, engine, capture queue, or source check behaves unexpectedly. ## 5. Connect agents Install the MCP configuration only when the user asks to connect an agent: ```bash talamus mcp install --agent auto ``` Use `--agent claude`, `cursor`, `codex`, `opencode`, `openclaw`, or `all` when the target is explicit. OpenClaw receives a read-oriented tool filter by default; LLM-backed and mutating tools remain opt-in. Re-run `talamus doctor` and report which integrations were detected. For automatic session memory, explain that the hook reads the session transcript and git diff, stores decisions locally, and audits the decision. Install it only after explicit consent through `talamus setup --capture yes` or the dedicated hook command. ## 6. Back up before risky maintenance Before bulk curation, relocation, or destructive maintenance, create a portable backup: ```bash talamus export brain.zip ``` End every workflow with the active brain path, the commands actually run, any LLM or capture activity, the evidence retrieved or changed, and the safest next action.
don't have the plugin yet? install it then click "run inline in claude" again.
use the talamus CLI to maintain source-grounded markdown memory backed by a derived local sqlite/fts5 index. keep the brain inspectable, preserve citations, and make all potentially paid or sensitive operations explicit.
this skill sets up talamus as a local-first memory system for ai agents. use it to initialize a talamus brain (project or global), ingest files and repositories, retrieve cited context without hallucination, inspect note history and provenance, verify memory against sources, review and apply corrections, connect agents through mcp, and optionally capture session decisions. the skill prioritizes safety by making all llm calls and mutations explicit, requiring consent before expensive operations, and preserving citations so memory claims stay grounded.
talamus CLI
talamus (installed via uv tool, pipx, or pip --user; check with talamus --version)mcp, ingest, verify, and review commandsbrain location and scope
talamus setup or talamus init--scope project+central, --all-brainsexternal data sources (optional; requires consent before ingestion)
--dry-run)environment and credentials (if talamus integrations are enabled)
talamus.json in project or home directory (never expose secrets from this file)--capture yes consentnetwork and rate limits (edge cases)**
ask, search --smart, ingest, enrich, consolidate, verify without --stale) may hit rate limits or timeouts; plan for retry or degradation to lexical search--allow-secrets require explicit approval and are high-risk operationsstep 1: inspect readiness and brain location
1.1. inputs: shell access, talamus executable (may be missing)
1.2. run talamus --version to check if executable is on path
1.3. if missing, explain the installation approach (uv, pipx, or pip) and ask once before proceeding
1.4. run talamus where to confirm the active brain path (must be unambiguous; abort if ambiguous)
1.5. run talamus status to check if the brain is initialized, healthy, index state, and last activity
1.6. run talamus doctor to detect missing indexes, capture queue issues, source validation errors, or mcp problems
1.7. output: active brain path, version, health status, any diagnostics
step 2: retrieve from memory deterministically (no llm calls unless approved)
2.1. inputs: query or question, optional scope flags (--scope project+central, --all-brains)
2.2. for lexical retrieval (no embeddings, no llm), run talamus search "QUERY" --json
2.3. for qa-style retrieval, run talamus recall "QUESTION" --json
2.4. for a specific note, run talamus read "NOTE TITLE" --json
2.5. if lexical retrieval is insufficient, inform the user that search --smart will call an llm and ask for consent
2.6. if approved, run talamus search "QUERY" --smart --json
2.7. for a cited synthesis with trace, run talamus ask "QUESTION" --trace (inform user this is an llm call; get consent first)
2.8. for historical questions, run talamus ask "QUESTION" --as-of YYYY-MM, talamus timeline "NOTE TITLE", or talamus history "NOTE TITLE" (preserve time boundary)
2.9. output: retrieved notes in json, citations (source file, line numbers), relevance scores where available, trace log if --trace was used
step 3: add knowledge deliberately (ingest and import)
3.1. inputs: file path, directory, url, or vault path; optional flags (--dry-run, --profile, --allow-secrets)
3.2. for a single source (file, url, or small directory), summarize the scope and inform user that ingest may call an llm to summarize or extract structure; get consent
3.3. run talamus ingest PATH_OR_URL (llm call if content is large or complex; preview the summary before confirmation)
3.4. for a repository, run talamus scan . --dry-run --profile PROFILE (e.g. docs, code, all) to preview files and estimate llm usage
3.5. show the user the plan: files to ingest, estimated notes, any sensitive patterns detected
3.6. if --allow-secrets is requested, require explicit approval before proceeding; warn that secrets may be exposed if ingested
3.7. after approval, run talamus scan . --yes --profile PROFILE
3.8. for an existing markdown, obsidian, or notion vault (lossless import), run talamus import-vault PATH (no llm calls)
3.9. after a write, report: target brain path, sources processed, notes created/updated, review items created, skipped or failed inputs
3.10. output: json log of ingestion results, note titles, source mappings
step 4: verify provenance and curate memory
4.1. inputs: optional note title, review item id
4.2. for stale-check (no llm), run talamus verify --stale --json
4.3. list all pending review items with talamus review list --json
4.4. show a specific review proposal with talamus review show ID --json
4.5. if user requests verification with llm (fact-check), inform them and get consent; run talamus verify "NOTE TITLE" (llm call)
4.6. preview the verification result and any proposed corrections; do not apply automatically
4.7. if user approves a review item, run talamus review apply ID; if rejected, run talamus review reject ID --reason "REASON"
4.8. if user approves a verification correction, run talamus verify "NOTE TITLE" --apply
4.9. after manual note edits (e.g. in editor), run talamus reindex to update the index
4.10. if index, engine, capture queue, or source validation behaves unexpectedly, run talamus doctor again
4.11. output: review items shown, decisions applied, notes updated, reindex result
step 5: connect agents via mcp (optional)
5.1. inputs: optional agent target (--agent claude, cursor, codex, opencode, openclaw, auto, or all)
5.2. install mcp configuration only when the user explicitly requests agent connection
5.3. run talamus mcp install --agent auto (detects common agents) or specify target agent
5.4. after install, run talamus doctor to verify mcp integration
5.5. report which agents were detected and connected (claude, cursor, codex, opencode, openclaw)
5.6. note: openclaw receives a read-oriented tool filter by default; llm-backed and mutating tools (ingest, review apply) require explicit opt-in
5.7. output: mcp installation log, detected agents, tool availability per agent
step 6: optional session capture (requires explicit consent)
6.1. inputs: user consent via prompt or flag
6.2. explain that session capture reads the current session transcript and git diff, stores decisions locally, and audits the decision for transparency
6.3. never install a session-capture hook without explicit consent; prefer talamus setup --capture ask (asks at setup time)
6.4. if user requests capture, run talamus setup --capture yes or the dedicated hook command
6.5. after install, verify with talamus doctor
6.6. output: hook installation log, transcript location, audit log path
step 7: back up before risky maintenance
7.1. inputs: none (routine before destructive operations)
7.2. before bulk curation, relocation, or destructive maintenance (e.g. bulk delete, schema migration), create a portable backup
7.3. run talamus export brain.zip (creates a complete snapshot of notes, sources, index, and metadata)
7.4. report backup file size and path
7.5. output: backup file location, checksum
step 8: summarize and advise next action
8.1. inputs: all prior steps 8.2. report the active brain path, commands actually run, any llm or capture activity, evidence retrieved or changed 8.3. advise the safest next action (e.g. "review 3 pending items before ingesting more", "run doctor if ingest stalled", "create backup before verify --apply") 8.4. output: summary log, recommended next step
if talamus executable is missing
uv tool install "talamus[mcp]" (preferred if uv is available)pipx install "talamus[mcp]" (if pipx is available)python -m pip install --user "talamus[mcp]" (last resort)talamus --version and report the bin directory if path is wrongif brain location is ambiguous
talamus where and stop if multiple brains are detectedif no brain exists
talamus setup --capture ask from project root (enables mcp and session capture prompting)talamus init (minimal init, no mcp or hook)if lexical retrieval returns no results or low confidence
search --smart will call an llm to embed the query and find semantic matchessearch --smartif a single ingest or repository scan is requested
--dry-run and show the file list and estimated llm usage--allow-secrets is requested, warn that secrets may be extracted and stored; require explicit approvalif review items or verification corrections are proposed
talamus review show ID or verification output)review apply or review rejectif session capture is requested
--capture yes (not --capture ask, which only prompts at setup time)if mcp connection is requested
--agent auto to detect common agents, or specify the target agentdoctor after install to verify integrationif talamus doctor reports stale indexes, capture queue backlog, or source validation errors
if a network timeout, rate limit, or llm call failure occurs
talamus doctor to diagnose connectivity or service healthreadiness check (step 1)
talamus where), status summary (initialized, index age, last activity), doctor diagnostics (errors, warnings)--json is passed)retrieval (step 2)
--trace was used) showing which sources and embeddings were consulted--json flags) or formatted textingestion (step 3)
verification and curation (step 4)
--json) or formatted textmcp integration (step 5)
session capture (step 6)
backup (step 7)
brain.zip in current directory (or user-specified path)summary and next action (step 8)
the user knows the skill worked when:
talamus where returns an unambiguous brain path, talamus status shows a healthy initialized brain with a current index, and talamus doctor reports no critical errorstalamus search, talamus recall, or talamus read returns json with note titles, bodies, source file paths, line numbers, and citation markers (e.g. [source: file.md:42-50])talamus scan or talamus ingest reports the number of notes created/updated, review items queued, and sources processed; running talamus search on a phrase from the ingested content returns the new notetalamus review list shows pending items, talamus review show ID previews a specific proposal, and talamus review apply or talamus verify --apply updates the note without silent changestalamus doctor reports mcp integration success, the agent (claude, cursor, etc.) recognizes talamus tools (search, read, ask, ingest, etc.), and a test query through the agent returns cited results.talamus/captures/ contains readable transcript logs, .talamus/hooks/ contains the installed hook script, and talamus doctor confirms the hook is activebrain.zip can be extracted on another machine and talamus where points to the restored brain with all notes and indexes intact