From 301744db97088f6a9e5fead9378e4f9da27f03a6 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 14 Apr 2026 19:44:54 +0200 Subject: [PATCH] prompts: replace ollie/ and $OLLIE with {{.OllieMountPath}} Co-Authored-By: Claude Sonnet 4.6 --- prompts/00_base.md | 82 +++++++++++++++++++++++----------------------- prompts/03_task.md | 9 +++-- 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/prompts/00_base.md b/prompts/00_base.md index 46cc7bd..d48b86d 100644 --- a/prompts/00_base.md +++ b/prompts/00_base.md @@ -29,60 +29,60 @@ A plan step is not complete until it is marked done in the plan. # Filesystem -The ollie 9P filesystem is mounted at `{{.OllieMountPath}}`. Throughout these instructions, `ollie/...` refers to paths under that mount point. All persistent state lives here. +The ollie 9P filesystem is mounted at `{{.OllieMountPath}}`. All persistent state lives here. ## Top-level | Path | Contents | |---|---| -| `ollie/t/` | Tool scripts — run with `execute_tool` | -| `ollie/sk/` | Skills — domain-specific knowledge files | -| `ollie/pl/` | Task plans — markdown checklists | -| `ollie/m/` | Memory files | -| `ollie/s/` | Sessions | -| `ollie/a/` | Agent configs (JSON, r/w) | -| `ollie/p/` | Prompt templates (r/w) | -| `ollie/backends` | Available backend names (read) | -| `ollie/help` | Help text (read) | +| `{{.OllieMountPath}}/t/` | Tool scripts — run with `execute_tool` | +| `{{.OllieMountPath}}/sk/` | Skills — domain-specific knowledge files | +| `{{.OllieMountPath}}/pl/` | Task plans — markdown checklists | +| `{{.OllieMountPath}}/m/` | Memory files | +| `{{.OllieMountPath}}/s/` | Sessions | +| `{{.OllieMountPath}}/a/` | Agent configs (JSON, r/w) | +| `{{.OllieMountPath}}/p/` | Prompt templates (r/w) | +| `{{.OllieMountPath}}/backends` | Available backend names (read) | +| `{{.OllieMountPath}}/help` | Help text (read) | -## Sessions (`ollie/s/`) +## Sessions (`{{.OllieMountPath}}/s/`) -Each session is a directory `ollie/s/{session-id}/`. Your current session ID is `{{.SessionID}}`. +Each session is a directory `{{.OllieMountPath}}/s/{session-id}/`. Your current session ID is `{{.SessionID}}`. | File | Mode | Purpose | |---|---|---| -| `s/new` | r/w | Read: key=value template for session creation. Write: create a new session. | -| `s/{id}/ctl` | write | Control commands (see below) | -| `s/{id}/prompt` | write | Submit a prompt to the agent | -| `s/{id}/enqueue` | write | Queue a prompt for execution after the current turn | -| `s/{id}/dequeue` | read | Pop the next queued prompt | -| `s/{id}/chat` | read | Full cumulative chat history (tail-able) | -| `s/{id}/reply` | read | Assistant text from the most recent turn (tail-able) | -| `s/{id}/state` | read | Current agent state: `idle`, `thinking`, or `calling: ` | -| `s/{id}/backend` | r/w | Active backend name | -| `s/{id}/agent` | r/w | Active agent name | -| `s/{id}/model` | r/w | Active model name | -| `s/{id}/models` | read | Available models from the backend | -| `s/{id}/mcp` | read | MCP server list | -| `s/{id}/cwd` | r/w | Working directory for tool execution | -| `s/{id}/usage` | read | Token usage counts | -| `s/{id}/ctxsz` | read | Context size vs. window | -| `s/{id}/systemprompt` | read | Fully rendered system prompt for this session | +| `{{.OllieMountPath}}/s/new` | r/w | Read: key=value template for session creation. Write: create a new session. | +| `{{.OllieMountPath}}/s/{id}/ctl` | write | Control commands (see below) | +| `{{.OllieMountPath}}/s/{id}/prompt` | write | Submit a prompt to the agent | +| `{{.OllieMountPath}}/s/{id}/enqueue` | write | Queue a prompt for execution after the current turn | +| `{{.OllieMountPath}}/s/{id}/dequeue` | read | Pop the next queued prompt | +| `{{.OllieMountPath}}/s/{id}/chat` | read | Full cumulative chat history (tail-able) | +| `{{.OllieMountPath}}/s/{id}/reply` | read | Assistant text from the most recent turn (tail-able) | +| `{{.OllieMountPath}}/s/{id}/state` | read | Current agent state: `idle`, `thinking`, or `calling: ` | +| `{{.OllieMountPath}}/s/{id}/backend` | r/w | Active backend name | +| `{{.OllieMountPath}}/s/{id}/agent` | r/w | Active agent name | +| `{{.OllieMountPath}}/s/{id}/model` | r/w | Active model name | +| `{{.OllieMountPath}}/s/{id}/models` | read | Available models from the backend | +| `{{.OllieMountPath}}/s/{id}/mcp` | read | MCP server list | +| `{{.OllieMountPath}}/s/{id}/cwd` | r/w | Working directory for tool execution | +| `{{.OllieMountPath}}/s/{id}/usage` | read | Token usage counts | +| `{{.OllieMountPath}}/s/{id}/ctxsz` | read | Context size vs. window | +| `{{.OllieMountPath}}/s/{id}/systemprompt` | read | Fully rendered system prompt for this session | -**Session index:** `ollie/s/idx` — live, tab-separated, one line per session: +**Session index:** `{{.OllieMountPath}}/s/idx` — live, tab-separated, one line per session: ``` {id} {state} {cwd} {backend} {model} ``` -Use this to discover other sessions for cooperation. Sessions sharing your `cwd` are likely working on the same project. To send a prompt to another session: `echo "your prompt" > ollie/s/{id}/prompt` +Use this to discover other sessions for cooperation. Sessions sharing your `cwd` are likely working on the same project. To send a prompt to another session: `echo "your prompt" > {{.OllieMountPath}}/s/{id}/prompt` **Session lifecycle:** -- Create: write a key=value string to `s/new` -- Kill: `rm -r ollie/s/{id}` -- Rename: `mv ollie/s/{id} ollie/s/{newname}` — this also updates `$OLLIE_SESSION_ID` in the session environment +- Create: write a key=value string to `{{.OllieMountPath}}/s/new` +- Kill: `rm -r {{.OllieMountPath}}/s/{id}` +- Rename: `mv {{.OllieMountPath}}/s/{id} {{.OllieMountPath}}/s/{newname}` — this also updates `$OLLIE_SESSION_ID` in the session environment -**`ctl` commands** (write to `s/{id}/ctl`): +**`ctl` commands** (write to `{{.OllieMountPath}}/s/{id}/ctl`): - `stop` — interrupt the current agent turn - `kill` — terminate the session - `rn ` — rename the session (equivalent to `mv`) @@ -92,13 +92,13 @@ Use this to discover other sessions for cooperation. Sessions sharing your `cwd` # Tools -Tool scripts live at `ollie/t`. Run them with `execute_tool` or as steps in an `execute_pipe` pipeline. +Tool scripts live at `{{.OllieMountPath}}/t`. Run them with `execute_tool` or as steps in an `execute_pipe` pipeline. Supported languages are detected from the script's shebang line: - `#!/usr/bin/env bash` — runs with `bash -c` - `#!/usr/bin/env python3` — runs with `python3 -c`; `sys.argv` is set automatically when args are provided -`ollie/t/idx` is a searchable index of all available tools. Each entry is a named section: +`{{.OllieMountPath}}/t/idx` is a searchable index of all available tools. Each entry is a named section: ``` ## name @@ -106,7 +106,7 @@ description: what it does args: [optional] ``` -Search before acting: `grep -A2 "keyword" ollie/t/idx` +Search before acting: `grep -A2 "keyword" {{.OllieMountPath}}/t/idx` # Skills @@ -115,15 +115,15 @@ Skills are domain-specific knowledge files that extend your capabilities for spe When the user asks about anything — a tool, a workflow, a system, a technology — search for relevant skills and load them before responding or acting. A skill may contain exact commands, configs, or constraints that change how you should proceed. -`ollie/sk/idx` is a searchable index of all available skills: +`{{.OllieMountPath}}/sk/idx` is a searchable index of all available skills: ``` ## name description: what it covers ``` -Search: `grep -A1 "keyword" ollie/sk/idx` -Load: `cat ollie/sk/.md` +Search: `grep -A1 "keyword" {{.OllieMountPath}}/sk/idx` +Load: `cat {{.OllieMountPath}}/sk/.md` If a relevant skill exists, load it before taking any action. If none matches, proceed without one — do not ask the user whether to check for skills. diff --git a/prompts/03_task.md b/prompts/03_task.md index 2dadd78..29f03ee 100644 --- a/prompts/03_task.md +++ b/prompts/03_task.md @@ -32,9 +32,8 @@ args: ["", ""] ## Notes -- Plan files live under `$OLLIE/pl/` -- List plans: `execute_code` with `ls $OLLIE/pl/` -- Inspect a plan: `execute_code` with `cat $OLLIE/pl/` -- Rename/move plans: `execute_code` with `mv $OLLIE/pl/ $OLLIE/pl/` +- Plan files live under `{{.OllieMountPath}}/pl/` +- List plans: `execute_code` with `ls {{.OllieMountPath}}/pl/` +- Inspect a plan: `execute_code` with `cat {{.OllieMountPath}}/pl/` +- Rename/move plans: `execute_code` with `mv {{.OllieMountPath}}/pl/ {{.OllieMountPath}}/pl/` - Bulk edits: `file_edit` or `execute_code` -- `$OLLIE` is always set in the sandbox environment; use it instead of relative paths