diff --git a/.cursor/rules/project-specification.mdc b/CONTEXT.md similarity index 60% rename from .cursor/rules/project-specification.mdc rename to CONTEXT.md index 0f50fcd..fe5e27e 100644 --- a/.cursor/rules/project-specification.mdc +++ b/CONTEXT.md @@ -1,11 +1,8 @@ ---- -description: go-ollama wrapper — ergonomic client for github.com/ollama/ollama/api -alwaysApply: true ---- +# go-ollama -# go-ollama — Project Rules +Ergonomic Go client for `github.com/ollama/ollama/api`. -Follow `docs/project-specification.md` for design and implementation. +**Canonical spec:** [docs/project-specification.md](./docs/project-specification.md) — follow it for design and implementation. ## Stack @@ -13,15 +10,19 @@ Follow `docs/project-specification.md` for design and implementation. - **Module:** `gitea.neitzel.de/konrad/go-ollama`, package `gollama` - **Wraps:** `github.com/ollama/ollama/api` — do not reimplement HTTP -## Design +## Design (summary) - Default to non-streaming (`stream: false`); aggregate into `Result` - `CallOption` for per-request overrides; `OptionSet` fluent builder for generation options - `Session` for multi-turn chat with automatic history -- Project `.cursor` overrides workspace rules for this module +- Project docs override workspace defaults for this module ## Integration tests - Default Ollama host: `http://debian:11434` in `testconfig/defaults.toml` - Override via `testconfig/local.toml` (gitignored) or `OLLAMA_HOST` - Run: `go test -tags=integration ./...` + +## Work tracking + +Local markdown issues: [../.scratch/](../.scratch/) — see [docs/agents/issue-tracker.md](../docs/agents/issue-tracker.md).