ollie/agent
Ollie Agent a4e5f7c9c5 unify commands: / == o ctl, all operations are ctl commands
The slash prefix in prompts now routes directly to the agent's ctl
file. No special-cased commands in the agent — the ctl handler is the
single command surface:

  /stop, /compact, /clear, /model X, /inject X, /agent X, /cwd X

New ctl commands:
  inject <text>  — overwrites any pending inject (replaces /i and /irw)
  agent <name>   — switch agent profile (moved from commands.go)

Agent methods added: Compact(), Clear(), SwitchProfile() — called by
the ctl handler, testable independently.

HandleCommand is now a thin trampoline: strip /, run 'o ctl <rest>'.
commands.go reduced from 155 to 50 lines.

REPL: / → o ctl, !q/!quit → exit TUI.
2026-08-09 02:40:48 +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 agent: replace 12 slash commands with ! prefix 2026-08-09 02:33:03 +02:00
loop.go remove dead code: TaskState subsystem, Verbosity, dead session fields 2026-08-09 01:03:19 +02:00
prompt_resolver.go agent: simplify prompt resolver to file-path-only 2026-08-09 00:51:13 +02:00
runtime.go agent: embed GenerationParams in AgentConfig, remove GenParams() 2026-08-09 01:05:32 +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