diff --git a/9p b/9p index fdcf048..818ccf2 160000 --- a/9p +++ b/9p @@ -1 +1 @@ -Subproject commit fdcf048a705e6c7ad5b71b0799903502e5470177 +Subproject commit 818ccf2632ca9d71c4ffd5cc31ac477c0187d5ab diff --git a/core b/core index aa32d17..bebe301 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit aa32d17e818f89361c8fd6bf61ced66dee09b42f +Subproject commit bebe3014fc3fbb99ee34e22f711b82b7bd1edb54 diff --git a/doc/IDEAS.md b/doc/IDEAS.md index 48fa78d..e89cbf9 100644 --- a/doc/IDEAS.md +++ b/doc/IDEAS.md @@ -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: diff --git a/doc/help.md b/doc/help.md index f37542c..6aec180 100644 --- a/doc/help.md +++ b/doc/help.md @@ -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//prompt # send a prompt cat ~/mnt/ollie/s//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" > / 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: 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/ ~/mnt/ollie/s/my-name # rename rm -r ~/mnt/ollie/s/ # kill echo stop > ~/mnt/ollie/s//ctl # interrupt current turn diff --git a/toys/ollie.sh b/toys/ollie.sh index d51a4cb..dbe38a6 100755 --- a/toys/ollie.sh +++ b/toys/ollie.sh @@ -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" } diff --git a/tui b/tui index 7d19d42..e4d9abb 160000 --- a/tui +++ b/tui @@ -1 +1 @@ -Subproject commit 7d19d4238079a90ac3323079a8fbde2d65fc6a54 +Subproject commit e4d9abbadb0907e6bb63d71ac4d85fd315289709