ollie/agent
Levi Neely 7e68c18303 agent: mtime-based cache validation for read-safe tool results
Replace the blanket cache invalidation (cleared on any file_write/edit)
with per-entry staleness detection based on file mtime and size. On cache
hit, stat the file and compare against the metadata stored at cache time.
If the file changed (user edited externally, git checkout, etc), the
stale entry is discarded and the tool re-executes.

This fixes the case where a user is coding alongside the agent — external
file changes are now detected instead of serving stale cached reads.
2026-08-06 14:04:49 +02:00
..
agent.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
agent_config.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
build_runtime.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
commands.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
compaction.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
complete.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
config_paths.go Remove OLLIE_*_PATH env vars: paths follow ~/.config/ollie/ convention 2026-08-05 19:37:13 +02:00
cost.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
fifo.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
fifo_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
history.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
loop.go agent: mtime-based cache validation for read-safe tool results 2026-08-06 14:04:49 +02:00
new.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
prompt_resolver.go Remove OLLIE_*_PATH env vars: paths follow ~/.config/ollie/ convention 2026-08-05 19:37:13 +02:00
runtime.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
state.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
turn.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
usage_log.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00