Commit Graph

454 Commits

Author SHA1 Message Date
Levi Neely df651908c4 docs: document x/ namespace and x/elevate in scripts/README.md
Add x/ to the namespace list and add an x/elevate section describing
its role as the elevation plugin for execute_code elevated steps, the
calling convention, the default superpowerd implementation, and how to
replace or disable it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 11:22:29 +02:00
Levi Neely d42778c61a docs: correct Sandboxing section in ARCHITECTURE.md
Sandboxing is not layered. It is applied specifically to execute_code:
each step is wrapped with landrun using a named config from
~/.config/ollie/sandbox/<name>.yaml (default: "default"). Steps marked
elevated:true bypass the sandbox via x/elevate. Remove superpowerd
reference.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 11:21:29 +02:00
Levi Neely 5326de7b46 docs: fix auto-compact description in ARCHITECTURE.md
Auto-compact does exist: triggers automatically at 75% of the model's
context length (128k default), and also manually via /compact.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 11:19:53 +02:00
Levi Neely ead4678ee5 docs: correct Session and Context section in ARCHITECTURE.md
Remove references to the non-existent contextBuilder and rolling window.
Describe the actual compaction model: unbounded history, explicit /compact
trigger, LLM-generated summary, system message preservation, user message
budget (~20k tokens), tool call flattening, and pre-compaction snapshot.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 11:19:05 +02:00
Levi Neely eff00a7b2e docs: document httpgw and webui
Add HTTP gateway and web UI sections to USAGE.md: build instructions,
runtime flags, HTTP→9P endpoint reference, nginx serving example, and
Vite dev workflow. Add HTTP gateway architecture section to
ARCHITECTURE.md with frontend comparison table. Update README.md with
httpgw build target, dual remote-access paths (9P mount vs httpgw),
and container example updated for both.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 09:14:48 +02:00
Levi Neely c3df30df3c docs: add multi-agent workflows and store federation to USAGE.md
Promote IDEAS.md content to concrete how-to documentation: subagent
delegation via subagent_spawn, concurrent sessions with direct prompt
passing (prompt/statewait/offset), predefined shell-script workflows,
self-generating workflows, and store federation via OLLIE_TOOLS_PATH
and OLLIE_TRANSCRIPT_PATH pointing at 9pfuse-mounted remote dirs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 08:37:33 +02:00
Levi Neely 2148c8c668 update docs: unify b/ into s/, introduce s/bfg and s/bbg
Batch and session namespaces are now a single s/ concept. s/bfg blocks
until the agent finishes and writes to stdout; s/bbg returns immediately
and prints the session path. s/b is the core one-shot runner. Remove all
b/ references from README, USAGE, ARCHITECTURE, and scripts/README.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 08:31:15 +02:00
Levi Neely 7b8d665457 fix subagent_spawn, sort sessions, update prompts
- subagent_spawn: use s/bfg instead of deprecated b/q
- SYSTEM_PROMPT: fix stale /b/ reference to /s/
- core: sort session index by ID
- webui: gitignore .kiro/
2026-04-24 21:44:57 +02:00
Levi Neely 0cca67c66f update core and webui submodules 2026-04-24 21:33:35 +02:00
Levi Neely 528bb232ca update httpgw and webui submodules 2026-04-24 21:14:18 +02:00
Levi Neely d98c6d3ef0 webui + httpgw fixes, tilde expansion, build targets
- Update core, httpgw, webui submodules
- Add httpgw and webui to mk all rule
2026-04-24 20:11:04 +02:00
Levi Neely 78f7d63b60 add ollie-webui as webui submodule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 18:33:19 +02:00
Levi Neely 261d20ded1 bump httpgw 2026-04-24 18:31:08 +02:00
Levi Neely 9c007efce5 httpgw: JSON API with structured parsing and consumer-facing endpoints
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 18:30:04 +02:00
Levi Neely 1fa59b1b5d add httpgw submodule and mkfile target 2026-04-24 17:45:07 +02:00
Levi Neely dfabeab4a8 sh: fix is_idle for multi-word state values 2026-04-24 15:39:42 +02:00
Levi Neely a232925745 sh: multi-line input with C-j/C-m via readmulti 2026-04-24 15:38:38 +02:00
Levi Neely 963210ea6e scripts/s/sh: replace line with awk; remove sh.rc 2026-04-24 15:29:42 +02:00
Levi Neely 52f6226057 update core submodule 2026-04-24 14:08:09 +02:00
Levi Neely 6ab2bf7011 doc: add prompt composition observation 2026-04-24 14:04:11 +02:00
Levi Neely 379fa33935 update core submodule, sandbox config 2026-04-24 14:01:00 +02:00
Levi Neely e4b78b705a s/cleanup: kill idle sessions instead of removing done batch jobs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 09:18:31 +02:00
Levi Neely 9e26eb0375 s/b: poll for session directory after creation
FUSE entry cache may not reflect the new session directory immediately
after the write to s/new returns. Poll until it appears, mirroring the
approach in s/sh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 09:17:41 +02:00
Levi Neely 00155f28fc s/b: write s/new as single write() to avoid partial-KV parse failure
Bash's printf builtin issues one write() syscall per call; the server
processes each write independently, so the first write (name= only)
would fail the cwd-required check. Build the full KV string first,
then write once.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 08:48:58 +02:00
Levi Neely b3e0367078 fix s/bfg and s/bbg: reference s/b not s/job
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 08:44:48 +02:00
Levi Neely 57d164310c remove batch jobs; rename spec -> cfg; s/job -> s/b, s/q -> s/bfg, s/sched -> s/bbg
Batch jobs were a front-end concern. All one-shot query workflows now
compose session primitives via s/b (engine), s/bfg (foreground), and
s/bbg (background). Parallel execution is a shell loop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 08:42:38 +02:00
Levi Neely 14b4e5db1a core, 9p: update submodules (spec file refactor)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:43:17 +02:00
Levi Neely 127e518dae frontends: update to spec file; remove individual session file reads
tui/session: IsIdle reads spec and parses state= key.
scripts/s/sh, sh.rc: add spec_get helper; is_idle, /cwd, /model,
/agent, /backend read via spec_get; writes go to spec as key=value.
el/ellie.el: ellie--state reads spec with string-match on state=.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:43:10 +02:00
Levi Neely 908db7fbdd 9p: update submodule (batch/session dirspec docs)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:14:27 +02:00
Levi Neely 87ebe75c10 9p: update submodule (README docs update)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 07:06:16 +02:00
Levi Neely 68591a30e8 mkfile: install s/ scripts to scripts/s/ instead of defunct scripts/b/ 2026-04-23 23:44:25 +02:00
Levi Neely f4c340c2cb unify s/ and b/ namespaces: batch jobs now live under s/
Option C implementation: single namespace with composable file tables.
Batch jobs are sessions with a reduced file set — the directory
contents declare the capability.

- core: SessionStore absorbs BatchStore; s/new detects batch format
- 9p: /b/ removed entirely; all routing through /s/
- scripts/b/* moved to scripts/s/*; paths updated
- subagent_spawn, optimize: /b/q -> /s/q
- scripts/b/ removed
2026-04-23 18:50:05 +02:00
Levi Neely 7477a0f78d core: update submodule (RunFileStore refactor) 2026-04-23 18:20:32 +02:00
Levi Neely fc1dad795a gitignore 2026-04-23 18:00:30 +02:00
Levi Neely 111dcbcf94 sandbox: expose PATH env var 2026-04-23 11:58:10 +02:00
Levi Neely f918955951 file_read: return (binary file) when null bytes detected 2026-04-23 11:35:12 +02:00
Levi Neely dadc9286e5 chore: update tui submodule — remove dead code 2026-04-22 16:41:05 +02:00
Levi Neely 4c53efa502 chore: update tui submodule — add unit tests 2026-04-22 16:38:41 +02:00
Levi Neely bdcbb5c66a fix: chat tailing lag — ensure newline-terminated log lines
Update core and tui submodules. Core ensures assistant content in the
chat log ends with a newline so 9P line-buffered reads don't lag one
turn behind. TUI adds regression tests for the tailing behavior.
2026-04-22 16:34:16 +02:00
Levi Neely de0457713c feat: add tail script to session directories
Adds an executable `tail` file to each session under s/{sid}/ that
runs `tail -f chat`, usable from any working directory.
2026-04-22 12:29:40 +02:00
Levi Neely 8633443fe9 fix: update core submodule — system prompt uses session cwd 2026-04-22 12:22:06 +02:00
Levi Neely bb66a465ab doc: add dashed wrapped-by arrow between core primitives and Stores 2026-04-22 11:30:35 +02:00
Levi Neely e8204143a2 doc: fix plugin arrows — hooks from agent.Core, elevation from execute_code 2026-04-22 11:25:25 +02:00
Levi Neely 46918ff753 doc: add plugins (x/) box, route backend->LLM as bezier 2026-04-22 11:21:37 +02:00
Levi Neely 53b69fd923 doc: add sandbox region, refine architecture diagram layout 2026-04-22 11:19:40 +02:00
Levi Neely 1947f90f6f doc: scale architecture diagram to 60% width 2026-04-22 11:17:33 +02:00
Levi Neely b4a0014dd2 doc: hand-crafted architecture diagram
Replace Mermaid-generated SVG with hand-written SVG to avoid
font metric clipping. Shows core as foundation, olliesrv as
the 9P layer, and front-ends/scripts/pipelines as consumers.
2026-04-22 11:16:35 +02:00
Levi Neely 8f70b647f2 doc: simplify architecture diagram labels to fix text clipping 2026-04-22 10:56:20 +02:00
Levi Neely c616050f36 doc: add high-level architecture diagram 2026-04-22 10:53:55 +02:00
Levi Neely 2f1db75b02 docs: update documentation for recent refactor
- Package layout: add pkg/store, pkg/log, pkg/env, pkg/paths, pkg/skills
- System prompt: loaded from SYSTEM_PROMPT.md by Go, not agentSpawn hooks
- Tool prompts injected via preTurn hooks, not agentSpawn
- Sandbox config: single named config, not layered global+overlay
- Store interfaces: unified Store, remove ReadableStore/ReadWriteStore/BlobStore
- Fix batch status -> state in USAGE.md polling examples
- Fix enqueue -> fifo.in in session-management skill
- Fix 9p/internal/p9/server.go -> 9p/server.go (flattened)
- Remove stale sys-base, sys-ollie, sys-skills prompt file references
- Remove stale /pl references from 9p backing stores docs
2026-04-22 10:35:46 +02:00