s1lv4/th0th/th0th-memory
Claude Code and agent skill by s1lv4/th0th
- community
Checking that the SKILL.md file is still in the repository.
Mandatory rules for using th0th semantic search, compression, memory, and symbol graph tools. Prioritize th0th tools over native tools (Glob, Grep, Read) to explore and understand code. Triggers on tasks involving code search, context compression, storing decisions, symbol navigation, or retrieving project knowledge.
Install
npx vskill@latest install s1lv4/th0th/th0th-memorySKILL.md
th0th-memory Skill
Mandatory rules for using th0th tools. Prioritize semantic search, compression, memory, and symbol graph tools over native tools (Glob, Grep, Read) to explore and understand code.
When to Apply
Reference these guidelines when:
- Searching for code patterns or implementations
- Navigating to symbol definitions or finding all usages of a symbol
- Understanding codebase architecture
- Storing important decisions or patterns
- Compressing large code contexts
- Retrieving memories from previous sessions
- Listing or checking the status of indexed projects
- Analyzing usage and performance metrics
Available Tools
| Priority | Tool | Use | |
|---|---|---|---|
| 1 | th0th_index | Index project before searching (returns jobId for background jobs) | |
| 2 | th0th_index_status | Poll background indexing job status by jobId | |
| 3 | th0th_search | Semantic + keyword search with filters | |
| 4 | th0th_optimized_context | Search + compress in one call (max token efficiency) | |
| 5 | th0th_search_definitions | Find symbol definitions (functions, classes, types) | |
| 6 | th0th_get_references | Find all usages of a symbol across the project | |
| 7 | th0th_go_to_definition | Jump to a symbol's definition with context | |
| 8 | th0th_list_projects | List all indexed projects and their status | |
| 9 | th0th_reset_project | Delete all indexed data for a project (vectors, symbols, memories) | |
| 10 | th0th_remember | Store important information in persistent memory | |
| 11 | th0th_recall | Retrieve memories from previous sessions | |
| 12 | th0th_compress | Reduce context size (70-98%) | |
| 13 | th0th_analytics | Usage patterns and metrics | |
| 14 | th0th_read_file | Read file/line-range with symbol metadata (prefer over Read when you have lineStart/lineEnd) | |
| 15 | th0th_project_map | One-shot project overview: PageRank backbone, symbol counts, language distribution | |
| 16 | th0th_synapse_session | Create/resume Synapse cognitive session (task alignment, agent affinity, working memory) | |
| 17 | th0th_synapse_prime | Seed Synapse buffer with recalled memories before searching | |
| 18 | th0th_synapse_access | Record file access for affinity scoring (call after reading/editing a file) | |
| 19 | th0th_symbol_snippet | Get raw code snippet by file + line range | |
| 20 | th0th_memory_list | Browse memories by type/importance without a query (audit mode) | |
| 21 | th0th_reindex | Force full reindex (when autoReindex/50-file limit is insufficient) | |
| 22 | Glob/Grep/Read | Only when th0th doesn't find what you need |
Tool Reference
1. th0th_index
Index a project directory for semantic search. Returns immediately with a jobId; polling is optional (use th0th_index_status).
2. th0th_index_status
Poll a background indexing job by the jobId returned from th0th_index.
CRITICAL — polling discipline (mandatory):
Never call th0th_index_status in a tight loop. Choose one strategy:
Strategy A — single Bash sleep loop (preferred for normal tasks):
Strategy B — ScheduleWakeup (only inside /loop mode):
Then on the next wake-up call th0th_index_status once and repeat or finish.
Never do this:
3. th0th_search
Semantic + keyword search with RRF (Reciprocal Rank Fusion).
responseMode:
"summary"(default) — returns preview only; saves ~70% tokens."full"— includes full file content; use when you need to read code."enriched"— full content +fileImports+parentSymbolin every result; best for deep dives without extra tool calls. UsechunkIndex/totalChunksto navigate adjacent chunks.
4. th0th_optimized_context
Search + compress in one call. Maximum token efficiency.
Always pass `sessionId` to activate the session file cache. On repeated calls within the same conversation, unchanged file chunks are replaced with a compact reference token (~8 tokens) instead of full content, saving 50-70% of input tokens in long sessions.
The response includes metadata.tokensSavedBySessionCache and data.sessionCacheHits so you can observe the savings.
5. th0th_search_definitions
Find symbol definitions (functions, classes, variables, types, interfaces, exports) in an indexed project.
6. th0th_get_references
Find all usages of a symbol across the project. Returns file paths, line numbers, reference kinds (call, import, type_ref, extend, implement), and code context.
7. th0th_go_to_definition
Jump to a symbol's definition. Disambiguates using calling file context.
8. th0th_list_projects
List all indexed projects and their current status.
9. th0th_reset_project
Delete all indexed data for a project. Each scope is independent and defaults to true.
When to use:
- Before a full reindex to ensure a clean slate (
th0th_reset_project→th0th_index) - To free space from a project that is no longer needed
- To clear stale data after a major refactor
Response includes: vectorsDeleted, symbolsCleared, memoriesDeleted counts.
10. th0th_remember
Store important information in persistent memory.
11. th0th_recall
Search stored memories from previous sessions.
12. th0th_compress
Compress context (keeps structure, removes details).
13. th0th_analytics
Usage patterns, cache performance, metrics.
Compression Strategies
| Strategy | Use Case | Reduction | |
|---|---|---|---|
code_structure | Source code | 70-90% | |
conversation_summary | Chat history | 80-95% | |
semantic_dedup | Repetitive content | 50-70% | |
hierarchical | Structured docs | 60-80% |
Memory Types
| Type | Use | |
|---|---|---|
critical | Critical user-defined facts | |
conversation | Important conversation points | |
code | Code patterns discovered | |
decision | Architecture decisions | |
pattern | Recurring patterns |
Decision Flow
Installation
One-command (recommended)
Supports three modes (select interactively or override with TH0TH_MODE):
| Mode | TH0TH_MODE | Requirements | Best for | |
|---|---|---|---|---|
| Docker | docker | Docker | Production, quick start | |
| Docker build | build | Docker + Git | Custom builds, local changes | |
| From source | source | Git + Bun | Development, contributors |
Non-interactive example:
Configuration
Config file: ~/.config/th0th/config.json (auto-created on first run)
Embedding Providers
| Provider | Default Model | Dimensions | Cost | |
|---|---|---|---|---|
| Ollama (default) | bge-m3 | 1024 | Free | |
| Ollama alt | qwen3-embedding | 4096 | Free | |
| Mistral | mistral-embed | — | $$ | |
| OpenAI | text-embedding-3-small | — | $$ |
Quick Config Commands
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/th0th-memory/SKILL.md
Popularity
- Repository stars
- 127
- Repository forks
- 21
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/s1lv4/th0th/th0th-memory)