rename workdir to cwd in docs, toys, and submodule refs

This commit is contained in:
Levi Neely 2026-04-13 15:51:58 +02:00
parent 66c908a265
commit cf7145593f
6 changed files with 14 additions and 14 deletions

2
9p

@ -1 +1 @@
Subproject commit fdcf048a705e6c7ad5b71b0799903502e5470177
Subproject commit 818ccf2632ca9d71c4ffd5cc31ac477c0187d5ab

2
core

@ -1 +1 @@
Subproject commit aa32d17e818f89361c8fd6bf61ced66dee09b42f
Subproject commit bebe3014fc3fbb99ee34e22f711b82b7bd1edb54

View File

@ -38,9 +38,9 @@ cd ~/mnt/ollie
# Count existing sessions so we can identify the newly created ones by offset.
n=$(ls s/ | wc -l)
echo "new agent=developer workdir=$workdir" > ctl
echo "new agent=reviewer workdir=$workdir" > ctl
echo "new agent=tester workdir=$workdir" > ctl
echo "new agent=developer cwd=$workdir" > ctl
echo "new agent=reviewer cwd=$workdir" > ctl
echo "new agent=tester cwd=$workdir" > ctl
dev=$(ls s/ | sort | sed -n "$((n+1))p")
rev=$(ls s/ | sort | sed -n "$((n+2))p")
@ -120,7 +120,7 @@ def session_ids():
def spawn_session(agent="default", workdir=""):
with _spawn_lock:
before = session_ids()
(BASE / "ctl").write_text(f"new agent={agent} workdir={workdir}\n")
(BASE / "ctl").write_text(f"new agent={agent} cwd={workdir}\n")
while True:
new = session_ids() - before
if new:

View File

@ -6,7 +6,7 @@ An AI agent exposed as a filesystem. Mount it, then use shell tools.
```sh
olliesrv start # start the 9P server
echo "workdir=$PWD" > ~/mnt/ollie/s/new # create a session
echo "cwd=$PWD" > ~/mnt/ollie/s/new # create a session
ls ~/mnt/ollie/s/ # find the session ID
echo "hello" > ~/mnt/ollie/s/<id>/prompt # send a prompt
cat ~/mnt/ollie/s/<id>/chat # read the conversation
@ -23,7 +23,7 @@ ollie/
p/ prompt templates (r/w) ls, cat, edit
pl/ plans (r/w) ls, cat, edit
s/ sessions ls
new create session (w) echo "workdir=/path" >
new create session (w) echo "cwd=/path" >
<id>/ session directory rm -r to kill; mv to rename
agent active agent (r/w)
backend active backend (r/w)
@ -39,7 +39,7 @@ ollie/
reply last reply (ro)
state agent state (ro) idle | thinking | calling: <tool>
usage token counts (ro)
workdir working directory (r/w)
cwd working directory (r/w)
sk/ skills (r/w) ls, cat, edit
t/ tool scripts (r/w) ls, cat, edit, chmod
```
@ -47,7 +47,7 @@ ollie/
## Session management
```sh
echo "workdir=/path backend=ollama model=qwen3:8b" > ~/mnt/ollie/s/new
echo "cwd=/path backend=ollama model=qwen3:8b" > ~/mnt/ollie/s/new
mv ~/mnt/ollie/s/<id> ~/mnt/ollie/s/my-name # rename
rm -r ~/mnt/ollie/s/<id> # kill
echo stop > ~/mnt/ollie/s/<id>/ctl # interrupt current turn

View File

@ -16,7 +16,7 @@ drain() {
# Parse flags
new=0; resume=0; id_flag=
backend=; model=; agent=; workdir=
backend=; model=; agent=; cwd=
while [ $# -gt 0 ]; do
case $1 in
-new) new=1 ;;
@ -25,7 +25,7 @@ while [ $# -gt 0 ]; do
-backend) backend=$2; shift ;;
-model) model=$2; shift ;;
-agent) agent=$2; shift ;;
-workdir) workdir=$2; shift ;;
-cwd) cwd=$2; shift ;;
*) die "unknown flag: $1" ;;
esac
shift
@ -37,7 +37,7 @@ new_cmd() {
[ -n "$backend" ] && cmd="$cmd backend=$backend"
[ -n "$model" ] && cmd="$cmd model=$model"
[ -n "$agent" ] && cmd="$cmd agent=$agent"
cmd="$cmd workdir=${workdir:-$(pwd)}"
cmd="$cmd cwd=${cwd:-$(pwd)}"
printf '%s\n' "$cmd"
}

2
tui

@ -1 +1 @@
Subproject commit 7d19d4238079a90ac3323079a8fbde2d65fc6a54
Subproject commit e4d9abbadb0907e6bb63d71ac4d85fd315289709