Commit Graph

531 Commits

Author SHA1 Message Date
Levi Neely 415d75c97f freeloader: exhaust full model pool before giving up; fix resubmission and stream newlines
- scripts/x/freeloader: track tried models per-session in freeloader-tried-$SID;
  walk the full sorted :free pool in order before exiting 1; write recovery
  prompt to fifo.in (not prompt) to avoid goroutine race
- core submodule: 404 tool_unsupported detection + FIFO drain on error
- tui submodule: fix mid-stream newlines from backgroundTail chatOff race

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 18:47:57 +02:00
Levi Neely c37a4db480 freeloader: fix hook wiring; remove || true from agent turnError hooks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 17:27:34 +02:00
Levi Neely 15df9eeb1a freeloader: turnError-driven free model cycling with blacklist
- scripts/x/freeloader: hook-driven script; intercepts rate_limit and
  tool_unsupported on :free models; auto-blacklists on tool_unsupported;
  cycles to next non-blacklisted free model; exits 1 for unhandled errors
- agents: add turnError hook to all agent configs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 17:17:56 +02:00
Levi Neely 9b6f40d106 core: sort /models output alphabetically via ListModels
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 16:00:44 +02:00
Levi Neely 524cbde6d3 doc: MULTI_AGENT.md — coordination patterns enabled by agent-as-filesystem
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 15:07:13 +02:00
Levi Neely b0514ea34f core: sort /models output alphabetically
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 14:39:32 +02:00
Levi Neely d267ec1609 core: caching risk-reduction tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 14:33:36 +02:00
Levi Neely 9c5620dcae core: tool result truncation and stale read pruning
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 14:28:40 +02:00
Levi Neely 4b1b2409b4 core: tool result deduplication for read-safe tools
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 13:20:23 +02:00
Levi Neely 3d4c41f7c8 core: tests and emission fixes for parallel tool execution and caching
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 13:13:47 +02:00
Levi Neely 4176e80477 ollie: update core submodule (loop-level parallel tool execution)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 13:05:28 +02:00
Levi Neely 34536d71bb ollie: update core submodule (tool schema + tool result caching)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 12:54:56 +02:00
Levi Neely 4657018142 ollie: update core submodule (OpenRouter+Claude prompt caching)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 12:15:00 +02:00
Levi Neely f3657bd142 ollie: update core submodule (prompt caching, cache-aware cost)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 12:01:37 +02:00
Levi Neely 49b501c98f core: only report cost when backend provides it
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 09:13:24 +02:00
Levi Neely fd0f2c6e46 core: /cost command
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 18:46:49 +02:00
Levi Neely a49204b717 core: newline before non-assistant events in chat log
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 18:44:15 +02:00
Levi Neely d31fa38466 core: context overflow recovery and session spending cap
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 18:42:12 +02:00
Levi Neely b141ed0158 core: audit user input, reply, interrupted turns
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 18:24:00 +02:00
Levi Neely 893c08465e core: audit logging via OLLIE_AUDIT_LOG=debug
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 18:21:20 +02:00
Levi Neely 1f7ae43f98 core/9p: per-turn and session cost tracking
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 18:14:42 +02:00
Levi Neely feb801a866 core: context usage warning at 60%
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 17:57:43 +02:00
Levi Neely e9be5a9e28 core: transient retry and mid-stream drop recovery
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 17:54:36 +02:00
Levi Neely 4a331096aa 9p: update submodule (read timeout) 2026-04-27 13:25:02 +02:00
Levi Neely 993097ef6f subagent: fire-and-forget spawn, auto-inject parent/session IDs, env file
subagent_spawn rewritten: creates session, submits prompt, returns
immediately. Auto-prefixes session name with parent ID for uniqueness.
Injects [parent_session_id] and [session_id] headers into every prompt.

New read-only env file in session namespace exposes OLLIE_ vars.
TUI background-tails chat file for async output.
Updated SYSTEM_PROMPT.md and tools-subagent.md.
2026-04-26 22:19:06 +02:00
Levi Neely b33a411427 subagent: add -name flag, document roster convention
subagent_spawn now passes -name through to b, letting the parent assign
predictable session IDs. Updated coordination docs: parent passes full
peer roster in seeding prompts, names prefixed with parent session ID
for global uniqueness. Noted silent failure on duplicate names.
2026-04-26 20:34:27 +02:00
Levi Neely 6d635b9180 update core and tui submodules
core: serialize Submit to prevent command/turn races, fix test race
tui: fix slow ! commands, fix racy /compact and /clear output
2026-04-26 19:40:31 +02:00
Levi Neely f4c7eab590 update core submodule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 19:26:02 +02:00
Levi Neely 829e070854 update core submodule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 19:24:34 +02:00
Levi Neely 6c2860e19e prompts: restore original tools-reasoning content
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 19:09:05 +02:00
Levi Neely 2f9e392320 restore reasoning_think tool and prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 19:07:13 +02:00
Levi Neely e4c76603ba remove reasoning_think tool and prompt
Backend now streams native thinking tokens via StreamEvent.Reasoning.
The no-op scratchpad tool is redundant.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 19:04:03 +02:00
Levi Neely 30c90a62b0 update core submodule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 19:01:32 +02:00
Levi Neely 71ff7d7da2 update core submodule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 18:57:05 +02:00
Levi Neely 39c925bd7f update core submodule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 18:55:37 +02:00
Levi Neely 6e91471937 update core submodule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 18:50:40 +02:00
Levi Neely d9e9ca1b52 file tools: simplify to read/edit/write without sentinel machinery
system prompt: require task list for multi-step work
agents: remove preTurn hook; rely on agentSpawn prime + system prompt
backend: require OLLIE_BACKEND/OLLIE_MODEL env vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 18:29:18 +02:00
Levi Neely 5942ba78a9 core: update submodule (social token refresh) 2026-04-26 18:11:30 +02:00
Levi Neely 49ad3236b9 update SYSTEM_PROMPT.md 2026-04-26 15:57:29 +02:00
Levi Neely 1746b853a5 update httpgw and webui submodules 2026-04-26 15:54:38 +02:00
Levi Neely 8a25cc5384 update webui submodule 2026-04-26 15:24:57 +02:00
Levi Neely b950ffd99f update httpgw and webui submodules 2026-04-26 15:23:15 +02:00
Levi Neely 18a7840b3c agents: add SYSTEM_PROMPT to prompt array, move all prime calls from hooks 2026-04-26 15:10:22 +02:00
Levi Neely d333bf290a agents: extract prompts to markdown, assemble via executable prompt
Move inline JSON prompt strings to prompts/agent-*.md files, referenced
via $OLLIE/x/prime in the new executable prompt array. Move all
prime calls (tools-*, beads) from hooks.agentSpawn into prompt.

Rename greybeard to sysarchitect.
2026-04-26 15:00:46 +02:00
Levi Neely e844bc0964 update core submodule: preserve session on clean interrupt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 13:36:52 +02:00
Levi Neely b5a0765fc1 tools/agents: skip blank task_add args; remind task_check when plan has open tasks
preTurn now has two branches: no plan → remind task_add; open tasks → remind
task_check. Blank/whitespace-only arguments to task_add are silently skipped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 13:26:03 +02:00
Levi Neely f6f56a570f update core submodule: recover DeepSeek DSML tool calls
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 13:17:36 +02:00
Levi Neely 70f9aed14e agents: restore preTurn task_add reminder
Removing it caused the model to fall back to reasoning_think for planning.
The preTurn reminder is necessary to override that behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 13:13:48 +02:00
Levi Neely f4b6cfa4f9 agents: revert preTurn reminder; tools-task prime is sufficient
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 13:12:23 +02:00
Levi Neely dcf7d4010f tools/prompts: fix task_add printf bug; point agents at t/idx for tool discovery
printf format string starting with '-' was treated as a flag; use '--' to
terminate option parsing. Agents reading individual tool scripts to understand
them should use $OLLIE/t/idx instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 13:10:36 +02:00