Skip to content

Everyday Usage ​

You don't need to memorize flags or shortcuts here—run iki --help for the full CLI options, or type / inside the terminal UI to see available commands and key hints right where you're working. This page only covers the workflows you'll use most often.

Interactive Mode ​

Run iki inside any project directory to open the terminal UI. It reads AGENTS.md (if present in your repo) and your personal instructions in ~/.iki/PERSONA.md.

A few commands you'll reach for often inside the UI:

  • /models — search and switch models on the fly.
  • /resume — pick an earlier session and continue where you left off.
  • /compact — summarize older turns when a long session gets heavy.
  • /mcp, /swarm, /jobs — manage MCP servers, parallel agents, and background tasks.

Scripts & CI (One-Shot Mode) ​

Use -p (--print) when you want iKi to finish a single task and exit—handy for shell pipelines, git hooks, or CI checks. Add --json to get structured output (threadId, text, usage).

bash
# Run a single prompt and print the answer
iki -p "Summarize git diff --stat and point out risky changes"

# Structured JSON output against a specific repo
iki --json -C /path/to/repo "List exported hooks in packages/harness"

# Continue the most recent thread
iki -c "Now write unit tests for the edge cases"

You can also target a specific model, workspace, or tool set per run:

bash
iki --model claude-sonnet-4-6 -C ./my-app -p "Check why build fails"

Where Files Live ​

Everything iKi stores locally is plain text under ~/.iki/ (override with --data-dir or IKI_DATA_DIR):

PathWhat it holds
~/.iki/models.tomlConfigured providers, API keys / env refs, and model lists
~/.iki/settings.tomlBehavior knobs ([tools.shell], [tools.ptc], [mcp], [general])
~/.iki/PERSONA.mdOptional personal instructions shared across projects
~/.iki/sessions/<threadId>.jsonlFull event log for each conversation (used for replay and recovery)

Released under AGPL-3.0-only.