Agents
An agent is a reusable profile inside a workspace. Profiles let the same Pi harness act as a builder, reviewer, researcher, or planner. Every agent receives Cake’s application-wide base system prompt first; edit it in Settings → Application settings.
Profile settings
Section titled “Profile settings”| Setting | What it controls |
|---|---|
| Name and description | How the profile appears when starting a conversation |
| Model | The model the profile uses; it must be allowed by the workspace and served by a linked provider key |
| Provider key | The OpenCode Go key that pays for calls, or the workspace default |
| Thinking level | off, low, medium, high, xhigh, or max |
| System prompt append | Extra context or personality added after Cake’s base system prompt |
| Instructions | Standing instructions for its work |
| Tool grants | Every available tool, or exactly the capabilities this profile may use |
A model or key that the workspace does not permit is rejected when the profile is saved. Cake does not silently fall back to an unrelated credential. If no provider key reaches an agent, add one in Settings → Credentials, link it on Providers, and select an allowed model.
The base prompt is followed by the agent’s system prompt append and instructions. New agents start with an empty append. Changing a profile does not rewrite earlier transcript messages; for a one-chat change, use the conversation’s model, thinking-level, and key controls instead.
Example: a Plan agent
Section titled “Example: a Plan agent”This profile inspects code and public documentation, then returns a plan. Its grants are strictly read-only; it cannot edit files, run shell commands, or use code mode.
1. Create the profile and select its tools
Section titled “1. Create the profile and select its tools”New container-backed workspaces already include a Plan profile with exactly read, grep, find, ls, git, and web_fetch. To make your own, open Agents, select New agent, and name it Plan. Turn off All tools available here, then grant only those six tools. Do not grant write, edit, bash, or codemode.
The registry’s tool catalog is synchronized at startup, so there is no manual sync step. Other agents in the same workspace can independently keep editing and shell tools.
2. Choose its run settings
Section titled “2. Choose its run settings”Use a description such as “Inspect and plan without changing files.” Choose the model, thinking level, and provider key you want planning conversations to use. A higher thinking level can be useful, but it is not required.
3. Add the system prompt append
Section titled “3. Add the system prompt append”The shared Cake base prompt already describes the harness and its boundaries. Put this Plan agent’s role in System prompt append:
You are Plan, a read-only software planning agent.
Inspect the relevant code and configuration before proposing changes. Use read,grep, find, and ls to examine the workspace; use git only for status, history,diffs, file history, branches, and remotes; use web_fetch for specific publicdocumentation URLs. Never modify files, run shell commands, or claim to havedone so.
Ask a question when a requirement changes the implementation materially.Otherwise, return:1. A short statement of the problem and the constraints you found.2. The relevant existing files and behaviour.3. An ordered implementation plan, small enough to verify step by step.4. The tests and operational checks that would prove the change.5. Risks, migrations, and explicitly out-of-scope work.
Do not invent APIs or files. Say what you could not inspect.Put repository-specific standing instructions in Instructions. For example, point to the project’s contributor guide or name the test command a future implementation agent should run; the Plan agent itself cannot execute that command because it has no bash or code-mode grant.
4. Use it
Section titled “4. Use it”Start a conversation with Plan and ask for an implementation plan. The transcript shows its thinking, every tool call, and expandable context rows containing the prompt sections and offered tools sent to the model. When the plan is ready, start or switch to a conversation with a profile that has the editing and testing grants you want.
Profiles versus conversation overrides
Section titled “Profiles versus conversation overrides”Use a profile for a durable role you will reuse. Use the per-conversation controls for a temporary change in model, thinking level, or provider key. The workspace’s provider rules still provide the outer boundary for keys and models.