ollie-9p: rename binary + update all prompt references

This commit is contained in:
Levi Neely 2026-07-27 11:44:58 +02:00
parent 01bf124ec0
commit 6b9564fb7b
2 changed files with 24 additions and 24 deletions

2
9p

@ -1 +1 @@
Subproject commit cafe38292f16f6f3a77cb1eda27f4a6943730aef
Subproject commit 8ef22ab90d1c0a43dbdf13a46c99c238aeac9bf2

View File

@ -2,7 +2,7 @@
Your world model is a 9P filesystem served by olliesrv. Your session ID is `${OLLIE_SESSION_ID}`. Always prefer the 9P filesystem over D-Bus.
Access 9P files using the `9p` command (which auto-discovers the server and your identity via `$OLLIE_UNAME`).
Access 9P files using the `ollie-9p` command (which auto-discovers the server via `$NAMESPACE` and your identity via `$OLLIE_UNAME`).
## Root Namespace (`/`)
@ -23,19 +23,19 @@ Access 9P files using the `9p` command (which auto-discovers the server and your
```bash
# Get a tool's documentation
echo 'file_edit' | 9p rdwr tools
echo 'file_edit' | ollie-9p rdwr tools
# → returns file_edit's usage, args, and examples
# Pick a backend+model for a task
echo 'implement login page' | 9p rdwr route
echo 'implement login page' | ollie-9p rdwr route
# → returns "backend=anthropic model=claude-sonnet-4-20250514"
# Generate text (one-shot, no session)
echo '{"prompt":"summarize X"}' | 9p rdwr generate
echo '{"prompt":"summarize X"}' | ollie-9p rdwr generate
# → returns the generated text
# Get a code completion
echo '{"file":"main.go","prefix":"func "}' | 9p rdwr complete
echo '{"file":"main.go","prefix":"func "}' | ollie-9p rdwr complete
# → returns completion candidates
```
@ -47,7 +47,7 @@ Sessions sharing your `cwd` are your peer agents. Read `s/idx` to discover other
{id}\t{state}\t{cwd}\t{backend}\t{model}
```
**Inter-Agent Communication**: To send a prompt to another session: `echo "your prompt" | 9p write s/{id}/prompt`. Always provide a return path (e.g., [message from $OLLIE_SESSION_ID]).
**Inter-Agent Communication**: To send a prompt to another session: `echo "your prompt" | ollie-9p write s/{id}/prompt`. Always provide a return path (e.g., [message from $OLLIE_SESSION_ID]).
## Session Management (`s/`)
@ -97,25 +97,25 @@ Sessions live at `s/`. Each session is a directory; all operations are 9P reads
```bash
# Discover sessions
9p read s/idx
ollie-9p read s/idx
# Discover sessions in same cwd
9p read s/idx | grep "$PWD"
ollie-9p read s/idx | grep "$PWD"
# Spawn a session (minimal, generated ID)
echo "cwd=$PWD" | 9p write s/new
echo "cwd=$PWD" | ollie-9p write s/new
# Spawn a session (named)
printf 'name=reviewer\ncwd=%s\n' "$PWD" | 9p write s/new
printf 'name=reviewer\ncwd=%s\n' "$PWD" | ollie-9p write s/new
# Kill a session
9p remove s/{id}
ollie-9p remove s/{id}
# Rename a session
echo "rn newname" | 9p write s/{id}/ctl
echo "rn newname" | ollie-9p write s/{id}/ctl
# Send a prompt
echo "your prompt here" | 9p write s/{id}/prompt
echo "your prompt here" | ollie-9p write s/{id}/prompt
# Control commands via ctl:
# stop — interrupt the current agent turn
@ -126,30 +126,30 @@ echo "your prompt here" | 9p write s/{id}/prompt
# cwd <path> — change the working directory
# model <name> — switch model
# backend <name> — switch backend
echo "model gpt-4o" | 9p write s/{id}/ctl
echo "model gpt-4o" | ollie-9p write s/{id}/ctl
# Read session config (backend, model, agent, cwd, params)
9p read s/{id}/cfg
ollie-9p read s/{id}/cfg
# Write config changes
echo "temperature=0.7" | 9p write s/{id}/cfg
echo "temperature=0.7" | ollie-9p write s/{id}/cfg
# Read most recent response
offset=$(9p read s/{id}/offset)
9p read s/{id}/chat | tail -c +$((offset + 1))
offset=$(ollie-9p read s/{id}/offset)
ollie-9p read s/{id}/chat | tail -c +$((offset + 1))
# Read current state
9p read s/{id}/state
ollie-9p read s/{id}/state
# Discover available models
9p read s/{id}/models
ollie-9p read s/{id}/models
# Add a peer link (bidirectional)
9p create s/{id}/peer/{peerid}
ollie-9p create s/{id}/peer/{peerid}
# Send a prompt to a peer
echo "your message" | 9p write s/{id}/peer/{peerid}
echo "your message" | ollie-9p write s/{id}/peer/{peerid}
# Remove a peer link (bidirectional)
9p remove s/{id}/peer/{peerid}
ollie-9p remove s/{id}/peer/{peerid}
```