Command Reference

Complete reference for all Tenax commands. All commands use the /tenax: namespace.

Status & Info

/tenax:status

Show Tenax status and quick summary. Displays total sessions, decisions, patterns, tasks, insights, recent activity, and storage size.

Use when: You want a quick overview of accumulated project knowledge.

/tenax:stats

Show detailed statistics about Tenax including timeline, sessions per month, top topics, and storage breakdown.

Use when: You want analytics on your project history and memory usage patterns.

/tenax:list

List all stored sessions with metadata including session ID, date, summary, token count, and decision count.

Use when: You want to browse all past sessions and their contents.

Loading Sessions

/tenax:load-session

Load a specific session by ID into context. Shows full session details including decisions, patterns, files modified, and topics.

/tenax:load-session <session-id>
ArgumentDescription
session-idSession ID (e.g., "5" or "005")

Example: /tenax:load-session 003

/tenax:load-sessions

Load multiple sessions by IDs. If no IDs specified, loads the last 3 sessions. Use --recent N to load N recent sessions. Respects token budget.

/tenax:load-sessions [IDs] [--recent N] [-b, --budget <tokens>]
ArgumentDescription
IDsSession IDs (comma or space separated)
--recent NLoad N most recent sessions
-b, --budgetToken budget limit

Examples:

  • /tenax:load-sessions 001,002,003 - Load specific sessions
  • /tenax:load-sessions --recent 5 - Load 5 most recent sessions
  • /tenax:load-sessions - Load last 3 sessions (default)

Recording Knowledge

/tenax:save

Manually save the current session to Tenax. Reviews conversation for decisions, patterns, tasks, and insights.

Use when: You want to checkpoint important knowledge mid-session.

/tenax:record

Manually record a decision, pattern, task, or insight.

Record a Decision

/tenax:record decision -t <topic> "<text>" -r "<rationale>"

Example: /tenax:record decision -t database "Using PostgreSQL" -r "Team expertise"

Record a Pattern

/tenax:record pattern -n <name> "<description>" -u "<usage>"

Example: /tenax:record pattern -n error-handler "Wrap async routes in try-catch"

Record a Task

/tenax:record task "<title>" -d "<description>" -p <priority>

Example: /tenax:record task "Add unit tests" -p high

Record an Insight

/tenax:record insight "<text>" -c "<context>"

Example: /tenax:record insight "Rate limits are per-user not per-app"

Searching

/tenax:search

Search across all Tenax using semantic similarity. Returns ranked results with similarity scores and snippets.

/tenax:search <query> [-t, --type <type>] [-l, --limit <n>]
ArgumentDescription
queryNatural language search query (required)
-t, --typeFilter by type: decision, pattern, task, insight, session
-l, --limitMaximum results (default: 10)

Examples:

  • /tenax:search "authentication approach"
  • /tenax:search "database" -t decision
  • /tenax:search "error handling" -l 5

Management

/tenax:settings

View or modify Tenax settings including token budget, auto-load behavior, and recording preferences.

See Settings Reference for all available options.

/tenax:forget

Remove entries from Tenax. Confirmation required for bulk deletions.

/tenax:forget [id] [--type <type>] [--all]
ArgumentDescription
idDelete specific entry by ID
--typeDelete all of type: decisions, patterns, tasks, insights
--allDelete everything (requires confirmation)

Use when: You need to clean up obsolete or incorrect entries.

/tenax:tag

Add or remove tags from sessions for organization.

/tenax:tag <session-id> <tag1> [tag2...] [--remove]

Examples:

  • /tenax:tag 003 auth feature - Add tags
  • /tenax:tag 003 auth --remove - Remove tag

Export & Backup

/tenax:export

Export Tenax to various formats: Markdown, JSON, Obsidian, or Notion.

/tenax:export [-f, --format <format>] [-o, --output <dir>] [-s, --sessions]
ArgumentDescription
-f, --formatExport format: markdown (default), json, obsidian, notion
-o, --outputOutput directory
-s, --sessionsInclude full session data

Examples:

  • /tenax:export - Export to Markdown
  • /tenax:export -f obsidian -o ./vault - Export to Obsidian vault
/tenax:backup

Create a backup of all Tenax data as a JSON file with base64-encoded contents.

/tenax:backup [-o, --output <path>]

Use when: You want to safeguard Tenax before major changes or share between machines.

/tenax:restore

Restore Tenax from a backup file. Asks for confirmation if memory already exists.

/tenax:restore <backup-file> [-f, --force]
ArgumentDescription
backup-filePath to backup file (required)
-f, --forceOverwrite without confirmation

Use when: You need to recover from accidental deletions or transfer to a new machine.