Skip to main content

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.

Usage

selftune init [options]
Detects your agent type, creates configuration, and installs hooks.

Options

FlagDescription
--alphaEnroll in the alpha program
--alpha-email EMAILEmail for alpha enrollment

What it does

  1. Detects agent type — identifies Claude Code, Codex, OpenCode, or OpenClaw
  2. Creates config — writes ~/.selftune/config.json with detected settings
  3. Installs hooks — sets up Claude Code hooks for automatic session capture
  4. Creates database — initializes ~/.selftune/selftune.db

Configuration created

After init, your config at ~/.selftune/config.json will look like:
{
  "agent_type": "claude_code",
  "cli_path": "/path/to/selftune",
  "llm_mode": "agent",
  "hooks_installed": true,
  "initialized_at": "2025-01-15T10:30:00.000Z"
}
See Configuration for all fields.