ollie/cmd/olliesrv/internal
Ollie Agent aa270525a5 agent: background process interrupts — auto-inject output at safe points
When a tool call includes "background": true, it executes via
proc/new.bg and returns immediately with a PID in a
<system-proc-background> tag. The agent tracks active background
processes and injects their output as <system-proc-interrupt> blocks
alongside subsequent tool results.

The model sees background updates without polling. It can react to
build failures, log events, etc. naturally. Kill via PID when done.

Implementation:
- toolsrv client: CallToolBackground (uses proc/new.bg as rdwr)
- toolsrv: proc/new.bg upgraded from write-only to request-response
- agent: bgTracker collects last 20 lines of output per proc
- agent loop: injects interrupts after execToolCalls, before h.update
- system prompt: documents the background mechanism and rules
2026-08-11 08:23:00 +02:00
..
agent agent: background process interrupts — auto-inject output at safe points 2026-08-11 08:23:00 +02:00
backend refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
bypass refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
fs feat: add tools file to agent namespace 2026-08-10 20:29:04 +02:00
prompts agent: background process interrupts — auto-inject output at safe points 2026-08-11 08:23:00 +02:00
session refactor: move toolsrv spawn/process management to toolclient 2026-08-10 20:49:22 +02:00
toolclient toolsrv: restructure into internal packages, fix process lifecycle 2026-08-11 07:21:14 +02:00