Documentation Index
Fetch the complete documentation index at: https://docs.selftune.dev/llms.txt
Use this file to discover all available pages before exploring further.
Claude Code is selftune’s primary platform with full hook-based integration.
Prerequisites
- Claude Code installed and working
- Node.js 18+ or Bun
Installation
initialize selftune
Hook integration
selftune installs 6 hooks into Claude Code’ssettings.json:
| Hook | Event | Purpose |
|---|---|---|
prompt-log | UserPromptSubmit | Logs every user query and detects improvement signals via regex |
auto-activate | UserPromptSubmit | Evaluates activation rules (e.g., too many unmatched queries) |
skill-change-guard | PreToolUse (Write/Edit) | Prevents unreviewed SKILL.md changes |
evolution-guard | PreToolUse (Write/Edit) | Blocks conflicting edits during active evolutions |
skill-eval | PostToolUse (Read) | Tracks skill triggers and classifies invocation type |
session-stop | Stop | Captures end-of-session telemetry, spawns signal-reactive orchestrate |
Data flow
Signal detection
Theprompt-log hook detects user corrections in real-time using regex patterns like:
- “why didn’t you use X?”
- “you should have used the Y skill”
- “use Z next time”
Session paths
| Path | Purpose |
|---|---|
~/.claude/ | Claude Code session logs |
~/.claude/settings.json | Hook configuration |
~/.selftune/selftune.db | Normalized selftune data |