Terminal Agent (llamatik)
Approvals
Nothing changes without your approval. Each edit is shown as a diff and you answer y (once), a (always, for edits) or N. Commands (terminal_run) are asked about too, and only an allow-list of build and test commands can run at all.
--yesapproves everything, for unattended use.- When there is no terminal to ask (output piped, no
--yes), edits are skipped rather than applied. - When asked to approve a command, answer
pto always allow it in this project (saved in.llamatik/permissions.txt).
Commands in a session
| Command | What it does |
|---|---|
/help, /exit | Help; leave the session |
/clear | Forget the conversation |
/yes | Toggle auto-approve |
/context | How full the context window is, by category |
/compact [what to keep] | Summarize the conversation to free context |
/resume [n] | List earlier conversations of this project, or continue number n (llamatik --continue picks up the latest) |
/undo | Take back the edits of the last task (edits made by commands are not undone) |
/redo, /rewind [chat|code] | Put undone edits back; forget the last task (its messages, its edits, or both) |
/plan | Plan mode: the agent can read and search but not edit or run anything |
/mode [ask|edits|plan|auto] | How much the agent may do without asking; no name cycles. edits applies edits (you still see the diff) but asks about commands |
/init | Have the agent write LLAMATIK.md |
/diff, /status | Uncommitted changes and git status |
/commit | The model writes a commit message; you approve it and it commits |
/permissions | Commands always allowed in this project (add, remove <n>) |
/agent [name|off] | Work in a role defined in .llamatik/agents/<name>.md |
/stats | Tokens per second, prompt tokens and time spent this session |
/memory | Notes saved with # |
/config | Settings in effect, and what was auto-tuned |
Input shortcuts
@pathattaches a file. Tab completes paths and commands.!cmdruns a command and tells the agent about it. It is not sandboxed.#notesaves a note to.llamatik/memory.mdfor this project.
While it works
- Esc (or Ctrl-C) stops the task. Esc first clears a half-typed message. Ctrl-C with nothing running exits.
- What you type and send with Enter is passed to the agent before its next step.
- The agent keeps a checklist for multi-step tasks and shows it as it works. The spinner shows how full the context window is.
Your own commands
Put a prompt in .llamatik/commands/<name>.md (in the project) or ~/.llamatik/commands/ and run it as /<name> arguments. $ARGUMENTS in the file is replaced by what you type after the name. Conversations are saved in ~/.llamatik/sessions/.
Checks after every edit
Tell the agent what “correct” means and it sees its own mistakes at once:
{ "hooks": { "afterEdit": ["./gradlew compileKotlin", "ktlint $FILES"], "timeoutSeconds": 300 } }Or use --check "<command>" (repeatable). After each change the commands run, and what they print goes back to the model as file:line: message diagnostics when the output has them.
Project map and auto-compact
The system prompt carries a compact list of the source files and what each declares, so a small model knows where things are before its first tool call (agent.repoMapChars; 0 turns it off; it is left out of windows under 6K tokens).
When the conversation fills more than agent.autoCompactAt (default 0.7) of what history may use, it is summarized before the next task.
Project notes size
Only the first agent.instructionChars characters of LLAMATIK.md (default 2000, about 800 tokens) go into every request. The rest is cut, and the agent is told so with a [… LLAMATIK.md cut at N characters] line. Raise the value for a longer file, for example "instructionChars": 6000, keeping in mind that it takes room from small context windows on every request. /config shows the value in effect.
@file imports are limited separately: up to 3 files, 1500 characters each.
Piping and scripting
git diff | llamatik -p "review this"
llamatik -p "..." --output-format json- Piped text is given to the agent automatically when there is any;
--stdinwaits for slow producers. --output-format jsonprints one JSON document (success,result,toolCalls,editedFiles,checks,usage) and sends everything else to stderr.
Sandbox
--sandbox (or "sandbox": true) runs the agent’s commands with no network (loopback stays open for build daemons) and writes allowed only in the project, temp and build caches. It uses macOS Seatbelt or Linux bwrap; where neither exists, commands are refused rather than run unprotected.
Planner model
"planner": { "server": "big-box:8080" } (or --planner-model / --planner-server) makes /plan use a second, stronger model; the main model carries out the plan. It is only loaded the first time you plan.
Roles
.llamatik/agents/reviewer.md:
---
description: Reads code and finds bugs
tools: read_file, search_code, list_files
---
You review code. Report problems with file and line; never change anything./agent reviewer applies the instructions and refuses every tool outside tools.
