ollie/agent
Ollie Agent 61dbf760ac refactor: extract sub-functions from agent/loop.go run()
run() was ~370 lines doing streaming, tool execution, error tracking,
and budget management. Now ~70 lines delegating to:

- streamResponse(): retry loop, event processing, usage tracking
- execToolCalls()/execBatch()/execOne(): dispatch, caching, fan-out, dedup
- trackErrors(): consecutive/repeated error tracking, nudge injection

Added errorState struct for clean state threading.
2026-08-09 11:37:18 +02:00
..
agent.go unify commands: / == o ctl, all operations are ctl commands 2026-08-09 02:40:48 +02:00
agent_config.go agent: embed GenerationParams in AgentConfig, remove GenParams() 2026-08-09 01:05:32 +02:00
agent_test.go simplify preamble: section-based model, no string surgery 2026-08-09 00:32:49 +02:00
commands.go unify commands: / == o ctl, all operations are ctl commands 2026-08-09 02:40:48 +02:00
config_paths.go agent: simplify prompt resolver to file-path-only 2026-08-09 00:51: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 refactor: reduce redundancy, remove dead code, improve structure 2026-08-09 11:23:25 +02:00
loop.go refactor: extract sub-functions from agent/loop.go run() 2026-08-09 11:37:18 +02:00
prompt_resolver.go agent: simplify prompt resolver to file-path-only 2026-08-09 00:51:13 +02:00
runtime.go refactor: reduce redundancy, remove dead code, improve structure 2026-08-09 11:23:25 +02:00
runtime_test.go simplify preamble: section-based model, no string surgery 2026-08-09 00:32:49 +02:00
text_parse.go all: kill loadEnvFile dupe, extract text parser, tidy tests 2026-08-08 17:06:51 +02:00
turn.go remove usage_log.go (write-only telemetry), clean AGENT_FILES 2026-08-09 02:03:51 +02:00