From 5535e0edbbc94bf2a03a111ee315b8ac5559809b Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 16 Apr 2026 22:35:07 +0200 Subject: [PATCH] transcript: add tr/ store, save via chat write or ctl save Co-Authored-By: Claude Sonnet 4.6 --- 9p | 2 +- doc/help.md | 5 ++++- prompts/01_ollie.md | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/9p b/9p index 261fa54..b4974cc 160000 --- a/9p +++ b/9p @@ -1 +1 @@ -Subproject commit 261fa547fbf72ce71adf65fd574c823405a4adc1 +Subproject commit b4974cc6c29f8fd42cc6ecc6de456eb84804a068 diff --git a/doc/help.md b/doc/help.md index 6bb7a58..e9d5bf9 100644 --- a/doc/help.md +++ b/doc/help.md @@ -39,7 +39,7 @@ ollie/ / session directory rm -r to kill; mv to rename agent active agent (r/w) backend active backend (r/w) - chat conversation log (ro) + chat conversation log (r/w; write to save transcript to tr/) offset byte offset of chat after last user prompt; tail -c +$((offset+1)) gives model response (ro) ctl control (w) stop, kill, clear, compact, rn ctxsz context size (ro) @@ -58,6 +58,8 @@ ollie/ .md skill content (r/w) t/ tool scripts (r/w) ls, cat, edit, chmod idx tool index (ro) cat + tr/ transcripts (ro) ls, cat + -chat.md saved transcripts ``` ## Session management @@ -91,6 +93,7 @@ OLLIE_TOOLS_PATH tool scripts directory (default: ~/.config/ollie/tools) OLLIE_SKILLS_PATH skills directory (default: ~/.config/ollie/skills) OLLIE_PLAN_PATH plans directory (default: ~/.config/ollie/plans) OLLIE_MEMORY_PATH memory directory (default: ~/.config/ollie/memory) +OLLIE_TRANSCRIPT_PATH transcript directory (default: ~/.config/ollie/transcript) OLLIE_OLLAMA_URL base URL for ollama (default: http://localhost:11434) OLLIE_OPENAI_URL base URL for openai-compatible backends diff --git a/prompts/01_ollie.md b/prompts/01_ollie.md index c913f53..33a3862 100644 --- a/prompts/01_ollie.md +++ b/prompts/01_ollie.md @@ -12,6 +12,7 @@ The ollie 9P filesystem is mounted at `{{.OllieMountPath}}`. All persistent stat | `{{.OllieMountPath}}/sk/` | Skills — domain-specific knowledge files | | `{{.OllieMountPath}}/pl/` | Task plans — markdown checklists | | `{{.OllieMountPath}}/m/` | Memory files | +| `{{.OllieMountPath}}/tr/` | Transcripts — saved chat logs | | `{{.OllieMountPath}}/s/` | Sessions | | `{{.OllieMountPath}}/a/` | Agent configs (JSON, r/w) | | `{{.OllieMountPath}}/p/` | Prompt templates (r/w) | @@ -29,7 +30,7 @@ Each session is a directory `{{.OllieMountPath}}/s/{session-id}/`. Your current | `{{.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}/chat` | r/w | Full cumulative chat history (tail-able); write to save a datestamped transcript to `tr/` | | `{{.OllieMountPath}}/s/{id}/offset` | read | Byte offset of chat immediately after the last user prompt; `tail -c +$((offset+1))` yields the model response for that turn | | `{{.OllieMountPath}}/s/{id}/state` | read | Current agent state: `idle`, `thinking`, or `calling: ` | | `{{.OllieMountPath}}/s/{id}/backend` | r/w | Active backend name |