Ollama Agent Rules

Run language models locally.

On this page

Overview

Ollama's root file offers two build paths. One builds the native payload with CMake; the quicker one reuses that payload and runs the Go code. Testing, contribution rules, and fuller setup instructions live in the linked development guide.

Documents

├── 
├── 
└── docs
    └── 

Patterns in this file

01 / Verification by change type

State the prerequisite for a faster loop

The Go-only commands are explicitly conditional on an existing native payload. That condition stops the shorter command from looking like a replacement for a complete first build.

Source excerpt starting at line 13.
For quick Go-only iteration against an existing native payload:

02 / Router files

Route setup details to one guide

The root names what the development guide covers, so a reader knows when to leave the short command list for platform and GPU setup.

Source excerpt starting at line 20.
See `docs/development.md` for prerequisites, platform notes, GPU backends, andthe full development workflow.

Ideas for your repo

  1. Label fast commands with the state they assume already exists.
  2. Separate first-build instructions from the everyday edit loop.
  3. Keep platform-specific setup in a linked development guide.
Sponsored byModem

Give your agents the whole story.

These instructions explain how to work in Ollama. Modem shows your agents what customers said, who is affected, and what changed.

See how Modem works