ollama-agent
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OLLAMA_AGENT_WARMUP | No | Set to '0' to disable the background preloading of profile models on server startup. | 1 |
| OLLAMA_AGENT_PROFILE | No | The profile to use, fixed per server process. Options: trio (default) or big. See the profiles table in README. | trio |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| delegate_taskA | Run a self-contained subtask on a LOCAL model and return its text. Good for: boilerplate, unit tests for a given file, docstrings, log triage, rewrites,
first drafts, mechanical transformations. Pass the files it needs in NOT for: final correctness decisions, reasoning about the whole repo, tasks needing more than ~32K tokens of context, or anything you must get right without checking. |
| review_diffA | Second-opinion code review of a diff by a LOCAL model; returns structured findings. Give either Use it as a first pass before or alongside your own review, then verify each finding against the code — it is a cheap second opinion, not a verdict. |
| summarizeA | Summarise large files, logs or text with LOCAL models (map-reduce; megabytes are fine). Use instead of Read when a file is long (logs, dumps, generated code, long docs) and
you need the gist or an answer to a specific NOT for short files (<200 lines): just Read them. |
| index_codebaseA | Build or refresh the LOCAL semantic search index for a directory tree. Incremental: only files whose mtime/hash changed are re-embedded. Stored in the
server's data dir (~/.cache/ollama-agent), not in the repo. Run once per repo; |
| search_codeA | Semantic search over a codebase by MEANING using local embeddings. Ask in natural language: "where do we retry failed uploads?", "code that parses the
config file". Returns the best-matching chunks as path:start-end plus a snippet.
Refreshes the index first unless NOT for exact identifiers or strings — use Grep for those. |
| local_models_statusA | Show the active local profile, which model serves each tier, and what Ollama has loaded. Call this when a local tool is slow or fails, or before a batch of local work, to see VRAM placement and whether an unrelated model is loaded and competing for the GPU. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct operation: delegated generation, diff review, summarization, index building, semantic search, and model status. Even where multiple tools invoke local models, the descriptions explicitly separate use cases, so an agent is unlikely to misselect.
Most tool names follow a clear verb_noun pattern (delegate_task, review_diff, index_codebase, search_code). summarize is a lone single-verb name and local_models_status is a noun phrase, but these are minor deviations that do not cause confusion.
Six tools is well-scoped for a local-model assistive agent. Each tool earns its place and covers a distinct utility without redundancy or bloat.
The tool surface covers the main local-model workflows: task delegation, diff review, large-content summarization, semantic code indexing/search, and status checks. Minor gaps exist, such as no exact-match search or model management beyond status, but these are workable and do not block the core purpose.