This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/pkg/agent
Levi Neely 2d81cc2aa1 pruneStaleReads: keep last read per path as base state
Previously, all reads of a path were pruned when a write occurred. This
caused the model to lose the base state of files it edited, leaving its
reasoning ungrounded and edit diffs without context.

Now only earlier reads are pruned; the most recent read before a write is
kept. Combined with the edit diff in the tool result, the model retains
full knowledge: base contents + deltas = current state.
2026-04-29 18:03:49 +02:00
..
commands.go core: allow /model switch while running; detach turnError hook context 2026-04-28 17:41:43 +02:00
core.go add s/{sid}/context 9P endpoint 2026-04-29 18:03:43 +02:00
core_test.go core: allow /model switch while running; detach turnError hook context 2026-04-28 17:41:43 +02:00
cost.go core: Anthropic prompt caching and cache-aware cost accounting 2026-04-28 12:01:14 +02:00
cost_test.go core: caching risk-reduction tests 2026-04-28 14:33:29 +02:00
fifo_test.go agent: add PromptFIFO unit tests 2026-04-11 10:03:47 +02:00
hooks.go core: fix turnError hook wiring — Handled field, correct exit-code semantics 2026-04-28 17:27:13 +02:00
loop.go core: detect text-form tool calls as ToolUnsupportedError 2026-04-28 19:06:49 +02:00
loop_cache_test.go core: caching risk-reduction tests 2026-04-28 14:33:29 +02:00
loop_parallel_test.go core: tests and emission fixes for parallel tool execution and caching 2026-04-28 13:13:32 +02:00
loop_prune.go pruneStaleReads: keep last read per path as base state 2026-04-29 18:03:49 +02:00
loop_prune_test.go pruneStaleReads: keep last read per path as base state 2026-04-29 18:03:49 +02:00
loop_texttool_test.go core: detect text-form tool calls as ToolUnsupportedError 2026-04-28 19:06:49 +02:00
loop_truncate_test.go core: tool result truncation and stale read pruning 2026-04-28 14:12:00 +02:00
loop_turnerror_test.go core: fix turnError hook wiring — Handled field, correct exit-code semantics 2026-04-28 17:27:13 +02:00
prompt_resolver.go config: make prompt executable (string or []string of commands) 2026-04-26 15:00:33 +02:00
session.go core: Anthropic prompt caching and cache-aware cost accounting 2026-04-28 12:01:14 +02:00
state.go agent: drop error return from Session.update 2026-04-26 18:56:58 +02:00
types.go add s/{sid}/context 9P endpoint 2026-04-29 18:03:43 +02:00
waitchange_test.go agent: refactor prompt architecture and session lifecycle 2026-04-25 19:38:18 +02:00