FAQ & Troubleshooting
What can I use Ulmi for?
Ulmi is a terminal AI agent for coding, research, and automation. You can explore a project, write code, summarize text files, research a topic with web tools, or automate tasks through shell commands. Available actions depend on your selected agent, configured tools, and permission rules.
Connect external tools through MCP, add reusable instructions with skills, and choose which actions are allowed in Permissions. See Tools for the built-in actions.
Where is my config?
| Layer | Path |
|---|---|
| Global | ~/.config/ulmi/config.yaml (or $XDG_CONFIG_HOME/ulmi/config.yaml) |
| Project | ulmi.yaml in the current working directory |
| Alternate project path | ULMI_CONFIG=/path/to/config.yaml (replaces cwd ulmi.yaml; not merged on top of it) |
Run ulmi config init to scaffold one. Merge order:
Configuration.
Where are logs?
JSON files named ulmi-YYYY-MM-DD.log under ~/.local/state/ulmi/log
(or $XDG_STATE_HOME/ulmi/log). If you still have files in
~/.config/ulmi/log and the state directory has not been created, that
legacy path is used. Set logging.dir to override.
At the default logging.level: info, a TUI turn and a ulmi run are
reconstructable from one file: filter on turn_id. Example:
# latest turn_id
jq -r 'select(.msg == "turn_start") | .turn_id' \
~/.local/state/ulmi/log/ulmi-$(date +%F).log | tail -n1
# every record for that turn
jq 'select(.turn_id == "TURN_ID")' \
~/.local/state/ulmi/log/ulmi-$(date +%F).logSee Configuration → logging for the msg
table. logging.level: debug plus logging.log_prompts: true is only
needed when the bug is in prompt shape (redact secrets first).
Where are sessions stored?
By default ~/.local/share/ulmi/sessions.db (SQLite). Switch to JSON or
override the path with the sessions block. See Sessions.
Where is prompt input history stored?
Composer ↑/↓ / Ctrl+R recall uses
~/.local/share/ulmi/prompt-history.db by default (separate from
sessions). Configure with tui.prompt_history — see
Configuration and TUI Guide.
Where are snapshots stored?
~/.cache/ulmi/snapshots/<session-id>/ by default. Configure with the
snapshots block — see Snapshots.
How do I run with a specific model?
ulmi --model anthropic/claude-sonnet-4-5
ulmi --model ollama/qwen3:8b
ulmi --model @smart # named model groupModel groups are defined under model_groups in your config and provide
fallback chains.
How do I use Ollama?
- Install Ollama.
- Start the daemon:
ollama serve(often automatic). - Pull a tool-capable model:
ollama pull qwen3-coder. - Run
ulmi. The default model isollama/qwen3-coder.
“no provider registered for model …”
You have asked for provider/model but the provider is not enabled. Most
likely the provider entry is missing from the config or its API key
environment variable is not set.
Check your config:
ulmi config validate“model_group X has no models configured”
The named group exists but its models: list is empty (or the entries
were filtered out because their providers are disabled). Add concrete
model IDs whose providers are configured.
A tool prompt won’t go away
The TUI is asking for confirmation because the tool’s permission level is
ask. Press y to allow once, a for Always session, A for Always
global, or n to deny. To skip prompts permanently without the dialog,
add a rule to your config:
permissions:
tools:
read: allow
bash: ask
rules:
- pattern: "**/*.go"
edit: allow
- pattern: "go test*"
bash: allowSee Permissions for the priority chain and pattern syntax.
How do I read a stuck turn?
A hung stream has turn_start without a matching turn_end. Filter
today’s file by turn_id (Where are logs?):
jq 'select(.turn_id == "TURN_ID") | {time, msg, duration_ms, stop, err, name, attempts}' \
~/.local/state/ulmi/log/ulmi-$(date +%F).logRead records in order:
turn_start— the turn began (session_id,model).llm_round— each provider call (duration_ms,attempts,stop_reason,err).llm_retry(WARN) — a 429/5xx that was retried.tool_done— each tool (name,call_id,is_error,denied).compact— history trimmed (breaker_trippedif the circuit opened).turn_end—stopisok,error,cancel, orloop_cap.
If the last line is llm_round with a large duration_ms and no
turn_end, the provider call is still in flight. If you see tool_done
without a later llm_round or turn_end, a tool is blocking. Default
info is enough; debug is only for prompt-shape bugs.
How do I undo a change made by the agent?
/undo (or Ctrl+X U) reverts the last file mutation. /redo re-applies
it. List the journal with:
ulmi snapshot listDetails: Snapshots.
Auto-compact removed too much / too little
Auto-compact triggers at 80% of the model context window and asks the
model to summarise the older history while keeping the recent turns. Tune
sessions.auto_compact_tokens as the fallback when the window is unknown.
Use /compact for a manual, whole-conversation pass. /context shows
headroom and the prompt-cache hit-rate.
Streaming hangs forever
Press Ctrl+C once to cancel the stream (the chat shows
⊘ interrupted). Press Ctrl+C again when idle to quit.
If a remote provider is the cause, check connectivity and provider
credentials. Local Ollama models can hang if they have not finished
loading; try a smaller model or wait for the model to warm up. Then
read the JSON log for the open turn_id — see
How do I read a stuck turn?.
I want to inspect what the agent is doing
/details(orCtrl+X D) opens the session-statistics overlay./thinkingtoggles display of reasoning blocks for models that emit them (currently Claude with extended thinking).Ctrl+X Tis the themes picker, not thinking.Ctrl+Stoggles mouse capture. By default mouse capture is on (wheel scrolling works immediately). PressCtrl+Sto enter select mode, which restores the terminal’s native text selection so you can copy chunks of the chat. PressCtrl+Sagain to re-enable scrolling. While mouse capture is on, holdShiftwhile clicking/dragging to use the OS-native selection.
Can I run Ulmi headless?
ulmi run "your prompt here"
ulmi run --format json "..."ulmi run does not currently load tools. For full agent runs in CI,
watch the CLI Reference — ulmi serve is roadmap only and
does not exist yet.
Why is the binary so large?
A typical stripped binary is around 25–30 MB; the size is enforced in CI.
Most of it comes from go-git, the SQLite driver, and the embedded
markdown / chroma renderers. If you do not need undo via shadowgit, the
default cas backend keeps go-git out of the working set at runtime
but it is still linked. Removing optional dependencies is on the roadmap.
Where do skill / agent files go?
| Type | Global | Project |
|---|---|---|
| Agents | ~/.config/ulmi/agents/<name>.md | .ulmi/agents/<name>.md |
| Skills | ~/.config/ulmi/skills/<name>.md | .ulmi/skills/<name>.md |
| Themes | ~/.config/ulmi/themes/<name>.yaml | n/a |
Project-level files override same-named global ones.
How do I report a bug?
Open an issue on GitHub with:
- The output of
ulmi version. - Your platform (
uname -a). - Your config (with secrets redacted).
- A minimal reproduction or transcript.
- JSON logs for the affected
turn_idat defaultinfo(see Where are logs?). That is enough to reconstruct the turn. Setlogging.level: debugandlogging.log_prompts: trueonly if the bug is in prompt shape (redact secrets first); both are off by default.
If Ulmi misbehaves with a particular model, mention the provider and model ID — and whether the same prompt works through the provider’s official client.
How do I propose a new feature?
Open an issue describing the use case before sending a large pull
request. Significant features usually start with a discussion. See
CONTRIBUTING.md for the full workflow.