Agents & jobs
Beyond one prompt and one answer: profiles that shape the agent, a goal it keeps in view, verification passes, and multi-step jobs that run as subagents.
/personas
Agent profiles
A profile is a Markdown file that gets injected into the system prompt. Drop one in .cachy/agents/ (project), ~/.cachy/agents/ (yours) or .claude/agents/ — the Claude Code layout also works. Frontmatter is optional.
.cachy/agents/reviewer.md
--- name: reviewer description: Reviews code before anything is written --- You are in review mode. - Read before you write. - Prefer small, focused diffs. - End every answer with a short "Risks" list.
Then /personas lists them (with none to go back to the default) and /persona reviewer applies one directly. The choice is remembered in [agent] name.
/goal
Goals, and proving them
/goal ship the reviewer records what the session is trying to achieve. The goal rides in the header, goes into every system prompt inside <goal>, and is stored with the session — resuming it brings the goal back.
/goal verify then runs [agent] goal_verifier_count (3 by default) verifier subagents in parallel. Each one reads the repository and answers met / not met / unclear, what it checked, and what is still missing. The reports land in the transcript and in /tasks.
The agent can do this itself too: the set_goal tool lets the model record or clear the goal (and optionally verify it) when a request has several phases.
/workflow
Workflows
A workflow is a named list of steps; every step runs as its own subagent, at most [subagents] max_concurrent at a time, each one visible in /tasks.
.cachy/workflows/review.md
--- name: review description: Two passes over the working tree --- ## Step: look List the files that changed and say what each change does. ## Step: judge List the risks and what could break.
Run it with /workflow review, or just ask in plain language: the model has a run_workflow tool and will use it when a task has clearly separable phases. A JSON form is also accepted:
.cachy/workflows/ship.json
{"name":"ship","description":"Cut a release",
"steps":[{"title":"test","prompt":"Run the tests"},
{"title":"tag","prompt":"Tag the release"}]}The agent can also write the plan itself: the plan_workflow tool takes up to 8 steps with optional depends_on, runs the independent ones together, and hands each dependent step the reports of the steps it needs — so “investigate → change → verify” actually builds on itself. With save: true the plan is stored under .cachy/workflows/ and becomes reusable with /workflow.
[subagents]
Limits you control
| Setting | What it does |
|---|---|
max_concurrent | How many subagents (workflow steps, verifiers, tasks) run at once. Extras queue. |
max_depth | How deep subagents may nest. Past it, the task tool refuses to delegate again. |
goal_verifier_count | How many verifiers /goal verify launches. |
auto_compact_threshold_percent | When the context passes this, the older segments are summarised automatically. |
context
Long sessions
/compact summarises the conversation in segments: the older blocks are summarised one by one (nothing is dropped blindly) while the most recent messages stay verbatim. The result is written to the session too, so /resume sees the same picture.
/rewind 2 drops the last two turns, /fork copies the session into a new one, /timeline lists the turns with their durations, /jump scrolls back to an earlier turn and /search text looks through every saved session.
/bench
Picking a fast model
With several providers and dozens of models, guessing is expensive. /bench times the first token of each model on your machine, stores the results in ~/.cachy/bench.json and annotates the model list — so /model shows · free, no key · 11.4s instead of a name you have to trust.
/tasks
Watching the work
Everything that runs in the background — shell commands, workflow steps, verifier subagents, plans — shows up in /tasks: id, kind, elapsed time, a moving bar while it runs, and its status. Enter opens a task’s full output, x kills it and r refreshes; the panel also refreshes itself while it is open.
/timeline shows the turns of the session with a bar scaled to each duration, so you can see where the time went; /timeline all does it across every session — when each turn ran, how long it took, how much work was in it and which project it was in — read back from the stored update streams, so it survives restarts.
/share · agent serve
Sharing and serving
/share writes the session to a portable .cachy file (a readable JSON bundle with the messages, the model and the goal) — send it however you like; the other side opens it with /import <file> and continues the conversation.
The same bundle travels over a socket: cachycli share --to ws://host:8765 sends this directory’s latest session to a running agent serve, --id <id> pulls one back and --list shows what the server holds, and --remove <id> makes it forget one. In the interface it is /share push, /share pull <id> and /shares (with /shares remove <id>); set [share] server once and the url can be left out. The server keeps the bundles under its own ~/.cachy/shares.
terminal
cachycli agent serve --port 8765 # WebSocket server, localhost by default
# client → {"prompt": "run the tests"}
# server → {"type":"text","data":"…"} … {"type":"done","stop":"end_turn"}
# client → {"cancel": true}One agent per connection, in the server’s directory, with the same events the interface shows. Nothing listens on the network unless you run it.
Plugins can come from an index instead of a folder: point [plugins] index at a JSON file or URL and /plugin search <term> lists what matches; installing clones (git) or copies (path) the entry into ~/.cachy/plugins/.
/worktree
Worktrees
/worktree lists the git worktrees, /worktree fix-login creates ../<repo>-fix-login on a new branch, and /worktree remove fix-login deletes it. Handy to let one job work in its own checkout.