Commit Graph

819 Commits

Author SHA1 Message Date
Levi Neely 2c4d8a0782 sh: remove statewait read before poll loop 2026-05-08 14:56:45 +02:00
Levi Neely b07fcec765 sh: read state file directly instead of parsing cfg 2026-05-08 14:55:35 +02:00
Levi Neely 284f1969d8 sh: on Ctrl-C during turn, send stop and re-exec to resume 2026-05-08 14:53:27 +02:00
Levi Neely 7265c8202d sh: redefine sigintr during agent turn to interrupt without exiting 2026-05-08 14:46:41 +02:00
Levi Neely dd4e5a677a sh: Ctrl-C interrupts running turn instead of exiting 2026-05-08 14:45:02 +02:00
Levi Neely 54092a6ea4 remove chatwait: acme tails chat directly 2026-05-08 14:42:52 +02:00
Levi Neely 81ed99f87a update skills 2026-05-08 13:22:07 +02:00
Levi Neely 75da8bdaae update core submodule 2026-05-08 13:02:07 +02:00
Levi Neely fd20b6f3c8 update submodules: add OLLIE_AGENTS_PATH 2026-05-08 13:01:38 +02:00
Levi Neely fb29487a1f revert chatwait changes in sh and acme frontends 2026-05-08 12:45:05 +02:00
Levi Neely 6f83476f25 update 9p submodule 2026-05-08 12:16:40 +02:00
Levi Neely ecbb9e240c use chatwait for responsive streaming in sh and acme frontends 2026-05-08 12:08:54 +02:00
Levi Neely 188fa58557 add OLLIE_PROMPTS_PATH support (colon-separated multi-dir prompts) 2026-05-08 11:59:27 +02:00
Levi Neely 75ba074237 add OLLIE_DEFAULT_AGENT to env.sample, update 9p submodule 2026-05-08 11:33:35 +02:00
Levi Neely d7a6d7b8c3 file_read: remove max size limit, use islice for streaming reads
The 8MB size check caused models to fall back to cat which reads the
entire file without truncation. Now uses itertools.islice to read only
the requested segment without loading the whole file into memory.

Also: sandbox config additions (pcfs, ~/img).
2026-05-08 11:28:43 +02:00
Levi Neely ba8f7948bb s/sh: fix case patterns for argument-taking commands
Quoted '*' in rc switch cases is a literal character, not a wildcard.
Replace '/cmd *' patterns with /cmd?* so rc treats them as globs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 08:18:15 +02:00
Levi Neely 3186bb12f2 s/sh: replace readmulti with inline bash readline; fix /model feedback
Replace the Python raw-mode multiline hack (readmulti) with an inline
bash read -e loop using backslash continuation. Add show_new to display
the server response after /model, /agent, /backend cfg writes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 22:47:20 +02:00
Levi Neely 30c1b1810e update core submodule 2026-05-04 16:54:20 +02:00
Levi Neely 33323b275e subagent_generate: fix JIT agent system prompt
Use $OLLIE/x/prime SYSTEM_PROMPT command instead of bare token.
Wrap custom prompt in echo command since all prompt array entries
are now shell commands.
2026-05-04 11:33:36 +02:00
Levi Neely c19aad78fc core: preserve completed work on interrupt/error 2026-05-04 10:24:16 +02:00
ollie ce17021b58 require landrun for execute_code, update docs
Update core submodule: WrapCommand returns a hard error when landrun
is not detected. Document the requirement in ARCHITECTURE.md.
2026-05-03 22:10:15 +02:00
Levi Neely 45d1b6b77e readme: add "What you get" section; update submodules
- README.md: add feature summary with bulleted list
- acme: add README documenting ollie-acme and Kmpl
- el: refactor completion to shell out to u/complete
- u/complete: improve prompt and strip leaked tags
2026-05-03 22:03:01 +02:00
Levi Neely ed178dfad0 u/complete: prompt to complete logical unit, not just minimal insertion 2026-05-03 21:32:40 +02:00
Levi Neely a9a0a13209 core: update submodule (interrupt rollback, batch dedup) 2026-05-03 21:27:52 +02:00
Levi Neely e62c224e2d reasoning_think: add 200-word length constraint
Prevents the scratchpad from becoming a multi-page stream-of-consciousness
monologue that pollutes the context window.
2026-05-03 21:23:34 +02:00
Levi Neely 410335cb51 u/complete: split into completion engine + acme glue (Kmpl)
u/complete is now acme-free: reads prefix from stdin, takes -suffix,
-file, -model, -backend flags. Prints completion to stdout.

acme/scripts/Kmpl is the thin acme wrapper that extracts prefix/suffix
from the window and pipes to u/complete.

Also fixes prefix truncation bug (bash substring returning empty when
string is shorter than offset) and updates core submodule with
interrupt handling improvements.
2026-05-03 21:10:57 +02:00
Levi Neely 2b77ca0a34 el: update submodule (code completion docs) 2026-05-03 15:52:35 +02:00
Levi Neely 344dde9cb5 el: update submodule (ellie-complete ghost-text completion) 2026-05-03 15:50:34 +02:00
Levi Neely 6d2442abce README: rewrite intro to cover copilot-to-agent spectrum 2026-05-03 15:09:06 +02:00
Levi Neely 2f7107d44c u/complete: strip markdown fences, insert at cursor, info to stderr
Also set tools:false on copilot agent and update core submodule
with the new tools config field.
2026-05-03 14:59:05 +02:00
Levi Neely 57e383b02b doc: add u/complete code completion section to USAGE.md 2026-05-03 14:31:44 +02:00
Levi Neely ebea90d5f7 u/complete: fix TOCTOU race spawning duplicate copilot sessions
Use deterministic session ID derived from cwd hash instead of
timestamp. Concurrent invocations for the same directory now
converge on the same session name, and the server rejects the
duplicate atomically.
2026-05-03 14:08:15 +02:00
Levi Neely 3c03faed3a u/complete: persistent copilot session per cwd; add freeloader hook
- Replace per-invocation s/bfg calls with a persistent *-copilot session
  looked up from s/idx; first call in a cwd spawns the session, subsequent
  calls reuse it, skipping s/new overhead
- Clear context after each completion so inference stays fast
- Fix session lookup to read s/idx instead of globbing the 9P mount
- Add x/freeloader turnError hook to copilot.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 13:54:29 +02:00
Levi Neely cddda76a3f u/complete: add model/backend flags and env var support; fix winid=0
- Add -model and -backend flags; read OLLIE_COMPLETE_MODEL /
  OLLIE_COMPLETE_BACKEND as defaults; error if neither is set
- Guard against winid=0 (acme column tag / +Errors window)
- Document OLLIE_COMPLETE_MODEL and OLLIE_COMPLETE_BACKEND in
  README.md and doc/env.sample

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 13:43:30 +02:00
Levi Neely 2c8e59e7f5 acme: add u/complete for AI ghost-text code completion
Adds a u/complete script that reads prefix/suffix from the current acme
window via dot position, submits a fill-in-the-middle prompt to ollie
via s/bfg, and writes the completion to a new ollie/complete window.

Also adds a minimal copilot agent config (no system prompt, no tools)
for use by u/complete, and wires both into the install target in mkfile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 13:30:26 +02:00
Levi Neely b0be365f88
Clarify Identity-Specific Rigor description
Refine the phrasing in the Future Work section to enhance clarity.
2026-05-02 14:30:21 +02:00
Levi Neely 2bd0a45271
Revise TRIAL_2.md for weather.GetWeather updates
Update documentation to reflect changes in weather.GetWeather return type and future work steps.
2026-05-02 14:29:34 +02:00
Levi Neely 491bec350e add Future Work section to TRIAL_2.md 2026-05-02 14:28:09 +02:00
Levi Neely 14a602d948 document failed subagent trial (TRIAL_2) and update coordination protocol guidance 2026-05-02 14:27:30 +02:00
Levi Neely 430008144d update core submodule: simplify compaction 2026-05-02 14:02:30 +02:00
Levi Neely 2bbaecb531 JIT subagent generation via subagent_generate | xargs subagent_spawn
- rename agent_generate to subagent_generate
- subagent_generate reads JSON from stdin, copies default.json as base,
  replaces prompt with SYSTEM_PROMPT + identity text
- update tools-subagent.md to enforce composition pattern
- remove unused agent configs and prompts (devops, qa, reviewer,
  sysarchitect, writer)
- update agents/README.md
- update core submodule (remove stale-read pruning)
2026-05-02 13:50:52 +02:00
Levi Neely af6547eb3a subagent_spawn: use /bin/date to avoid plan9 date 2026-05-02 10:50:14 +02:00
Levi Neely daa135a768 acme: update submodule (unconditional build) 2026-05-02 10:47:22 +02:00
Levi Neely 39daaae1f4 acme: update submodule (raw idx display) 2026-05-02 10:43:42 +02:00
Levi Neely e17a11ad4d acme: update submodule (show cwd in session list) 2026-05-02 10:42:51 +02:00
Levi Neely 6c49d3a30c mkfile: add acme target, install to $HOME/bin/Ollie 2026-05-02 10:40:48 +02:00
Levi Neely f1630bf2d6 core: update submodule (test sandbox + bc fix) 2026-05-02 10:40:08 +02:00
Levi Neely 1ca9a41ed6 acme: update submodule (fix leaf name resolution) 2026-05-02 10:36:17 +02:00
Levi Neely 203a6f9dce acme: update submodule (remove tree collapse) 2026-05-02 10:34:42 +02:00
Levi Neely 1069aed2b5 prompts: JIT agents are the default, not a fallback 2026-05-02 10:31:08 +02:00