diff --git a/docs/agent-architecture.html b/docs/agent-architecture.html deleted file mode 100644 index 89021bde0..000000000 --- a/docs/agent-architecture.html +++ /dev/null @@ -1,1532 +0,0 @@ - - - - - - Ollama Agent Architecture - - - -
-
-
-
-

Ollama agent architecture

-

Interactive map for the agent loop on this branch. Click any box or step to inspect ownership, behavior, and the exact files/functions to review.

-
-
- canonical path: agent/ - entry: ollama run - store: SQLite WAL -
-
-
- -
-
-
- -
- - - - -
-
- -
-
-
-
-
Entrypoints
- -
maps options
- - -
- -
-
Core loop
- -
calls
- -
detects
- -
- -
-
Tools and policy
- - - -
- -
-
State
- - - -
-
-
- Click boxes for file/function references - TUI and headless share Session.Run - Compaction summary is a user message for cache friendliness -
-
- -
-
-
- - - - - - -
-
-
-
-

CLI

Normalizes run flags, model, prompt, images, resume, verbose, thinking, and approval mode.

-

TUI

Owns rendering, input queueing, slash commands, model picker, approval UI, and live context estimates.

-

Session

The harness state machine. It is the shared loop for interactive and headless runs.

-

Model API

Receives api.ChatRequest with messages, tools, options, format, think, and keep-alive.

-

Store

Persists chat rows and compaction archives in the application SQLite database.

-
-
-
-
- -
-
- - - - - - - - - -
-
- -
-
-
-
cmd/ entry
- - -
cmd/cmd.go maps stable run behavior into AgentTUIOptions, then cmd/agent_tui.go chooses TUI or headless.
-
- -
-
cmd/tui/ shell
- - - - -
- -
-
agent/ core
- - - - -
- -
-
agent/ state
- - - -
Session owns in-memory message flow; store owns durable rows; compactor bridges them by archiving rows and returning compacted messages.
-
- -
-
agent/tools/ IO
- - - - -
-
-
- Left to right: command setup, TUI boundary, core loop, durable state, concrete tools - Click any file to see why it exists and what calls it - The center column is the package boundary to protect -
-
-
-
- - -
-
- - - - diff --git a/docs/markdown-color-options.html b/docs/markdown-color-options.html deleted file mode 100644 index 6a6d0da5a..000000000 --- a/docs/markdown-color-options.html +++ /dev/null @@ -1,748 +0,0 @@ - - - - - - Ollama Agent Markdown Color Options - - - -
-
-
-

Markdown color options

-

Review palettes for the Ollama agent TUI markdown renderer. Presets show how headings, emphasis, links, inline code, table labels, and muted metadata separate from body text.

-
-
- -

Current implementation can map these to Glamour ANSI colors plus the existing bespoke wide-table fallback.

-
-
- -
- -
-
-
-
-
Custom palette
-
Pick colors for the active terminal mode, then hand me the values you like.
-
-
-
-
- -
-
-
- - - - - -