Local commands
These commands manage your local .tekmemo/ folder.
init
Creates the .tekmemo/ directory and canonical memory files.
npx tekmemo initOptions:
-f, --forceOverwrite existing seed files-p, --project-id <id>Explicit project ID--no-inputSkip interactive prompts
inspect
Summarizes the current local memory state, including file sizes and record counts.
npx tekmemo inspectremember
Stores a durable note for humans or coding agents.
npx tekmemo remember "Use VoyageAI for embeddings" \
--kind decision \
--tag architecture \
--source "team meeting"Options:
--stdinRead memory content from standard input--file <path>Read memory content from a file-k, --kind <kind>Type of memory (decision,constraint,goal,preference,reference,summary,note)--title <title>Optional note title-t, --tag <tag>Tag to attach (can be used multiple times)--confidence <n>Confidence from 0 to 1--source <source>Source identifier (file, URL, or agent name)--actor <actor>Actor type (e.g.agent:claude-code)--metadata-json <json>Custom metadata JSON object--allow-secretsAllow content that looks like a secret
context
Packs project memory into an agent-friendly context block.
npx tekmemo context --query "database schema work" --max-chars 8000Options:
-q, --query <query>Prioritize lines matching a task or query--max-chars <n>Maximum output characters (default: 12000)--include-eventsInclude recent memory events--include-chunksInclude recent chunk records
read
Reads a canonical memory document.
npx tekmemo read core
npx tekmemo read notes
npx tekmemo read manifestevents
Reads the memory event log.
npx tekmemo events --limit 10Options:
-l, --limit <n>Limit number of events-s, --strictStrict protocol validation
chunks
Reads the local chunk index.
npx tekmemo chunksOptions:
-l, --limit <n>Limit number of chunks-s, --strictStrict protocol validation
snapshot
Creates a local memory snapshot bundle.
npx tekmemo snapshot --label "pre-refactor"Options:
-l, --label <name>Snapshot label (default: "manual")
diff
Compares two memory snapshots by ID or label.
npx tekmemo diff "pre-refactor" "post-refactor"search
Searches memory files for a query.
npx tekmemo search "database"Options:
-e, --regexTreat query as a regular expression
doctor
Diagnoses memory issues and finds missing or corrupt memory files.
npx tekmemo doctorOptions:
-s, --strictStrict protocol validation
validate
Performs strict protocol validation. Useful for CI pipelines.
npx tekmemo validateedit
Legacy alias to append a note or core memory text.
npx tekmemo edit note "Added a new endpoint"Options:
--allow-secretsAllow content that looks like a secret