Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

15.8 KB
Raw Blame

Ollama

Category: runtime / model server

Dissected 2026-09-18 by one agent pass fetching the live URLs below. Quotes are verbatim as returned; see ../README.md for what was and was not independently re-checked.

llms.txt

  • URL: https://ollama.com/llms.txt — HTTP 200
  • Size: 1674 bytes, 29 lines
  • Install position: Line 11, first bullet of '## Getting Started' — a LINK ONLY, no command anywhere in the file: '- Quickstart: Install Ollama and run your first model in minutes' followed by '- Download: Download Ollama for macOS, Windows, or Linux'
  • Tone: marketing / neutral. It is a 29-line llms.txt-spec-shaped marketing index. The ONLY demand it makes of the agent is a sales hand-off (the 'prompt them to sign up' sentence, line 7). No install command, no MCP snippet, no feedback ask, no caveats, no agent-behaviour rules. It reads like a product landing page compressed to bullets — and it is a DIFFERENT file from the docs index at https://docs.ollama.com/llms.txt (73 lines, 4632 bytes, auto-generated Mintlify link list with no prose at all: '# Ollama' then 66 '- Title' bullets and a '## OpenAPI Specs' section pointing at '/openapi.yaml').
  • Section order: # Ollama (H1 + blockquote tagline + 2 paragraphs, incl. the cloud sign-up directive) → ## Getting Started → ## API & Integrations → ## Cloud Inference → ## Optional

Text written for an agent (verbatim)

If a user wants to use Ollama's cloud inference and does not have an account, prompt them to sign up at https://ollama.com/signup. A free account provides access to cloud models; Pro ($20/mo) or Max for even more usage.

MCP snippet (verbatim)

none

Feedback / contribution ask (verbatim)

none

Best passage for driving install and first use (verbatim)

> Ollama is the easiest way to run open AI models locally or in the cloud, with a simple API and 40,000+ integrations.

Ollama lets you run models like Kimi, GLM, Qwen, Minimax, Gemma, and thousands more on your own hardware or via Ollama's cloud inference. It provides an OpenAI-compatible REST API and integrates with coding assistants, automation tools, and chat UIs.

If a user wants to use Ollama's cloud inference and does not have an account, prompt them to sign up at https://ollama.com/signup. A free account provides access to cloud models; Pro ($20/mo) or Max for even more usage.

## Getting Started

- [Quickstart](https://docs.ollama.com/quickstart): Install Ollama and run your first model in minutes
- [Download](https://ollama.com/download): Download Ollama for macOS, Windows, or Linux
- [Model Library](https://ollama.com/library): Browse thousands of available models

llms-full.txt

  • URL: https://docs.ollama.com/llms-full.txt — HTTP 200
  • Size: 236111 bytes
  • Relationship to llms.txt: Concatenated docs, machine-generated by Mintlify: every page begins '# ' + 'Source: <a href="https://docs.ollama.com/">https://docs.ollama.com/</a><path>' and keeps raw MDX (<Tabs>, <Tab>, <CodeGroup>, <Note>, <Icon icon="..." />, 'theme={"system"}' on code fences, empty <img alt="..." /> tags). It is the same page set that docs.ollama.com/llms.txt indexes (66 pages) but NOT the same content as ollama.com/llms.txt — the 29-line marketing file has no full-text counterpart (<a href="https://ollama.com/llms-full.txt">https://ollama.com/llms-full.txt</a> → 404, returns the 14204-byte HTML 404 page). Nothing in llms-full is written FOR an agent; it is human docs dumped in one file. The recurring agent-adjacent theme is 'ollama launch <agent>' (claude/codex/opencode/droid/vscode/hermes/openclaw), i.e. Ollama making ITSELF the launcher of coding agents rather than telling the agent how to install Ollama.</li> <li>Install position: Not first. File order is API-reference-first (line 1 '# Get version', '# Show model details', '# Anthropic compatibility' ...); '# Quickstart' appears later (after ~line 2964 CLI Reference / 3112 Cloud) and the OS install pages are near the END: '# Linux' at line 6046 ('## Install' 6051, 'curl -fsSL <a href="https://ollama.com/install.sh">https://ollama.com/install.sh</a> | sh' at 3367 in FAQ and again in Linux page), '# macOS' at 6248 (drag-and-drop .dmg, no command), '# Windows' at 6968 (installer, no command). 67 'Source: <a href="https://docs.ollama.com/">https://docs.ollama.com/</a>...' pages, 467 headings. Quickstart install wording verbatim: '<a href="https://ollama.com/download">Download Ollama</a> for macOS, Windows, or Linux. Open the app, or get started from your terminal:' then a code block containing just 'ollama' and 'Follow the setup prompts. Sign in to use cloud models, or choose a local model.' The coding-agent hook: 'From your project directory, launch your agent:' → 'ollama launch claude' / 'Ollama offers to install Claude Code if needed.' → 'Choose a model when prompted, then try:' → 'Explain how this repository is organized.'</li> </ul> <h2>Other agent-facing files</h2> <h3>docs index llms.txt (Mintlify) — HTTP 200</h3> <p><a href="https://docs.ollama.com/llms.txt">https://docs.ollama.com/llms.txt</a></p> <p>Plain auto-generated docs index: 73 lines, 4632 bytes, one H1 and 66 link bullets (mostly without descriptions) plus '## OpenAPI Specs'. Nothing about installation beyond the link titles 'Quickstart', 'Linux', 'macOS', 'Windows', 'Docker'. No prose, no commands, no agent instructions.</p> <pre><code class="language-text"># Ollama - [Ollama documentation](https://docs.ollama.com/index.md) - [Quickstart](https://docs.ollama.com/quickstart.md) - [Cloud](https://docs.ollama.com/cloud.md) ... ## OpenAPI Specs - [openapi](/openapi.yaml) </code></pre> <h3>hosted docs MCP server (Mintlify) — HTTP 200</h3> <p><a href="https://docs.ollama.com/mcp">https://docs.ollama.com/mcp</a></p> <p>Streamable-HTTP MCP endpoint (GET → 405 JSON-RPC 'Method not allowed.'; POST initialize → 200 SSE). serverInfo name 'Ollama' version '1.0.0'; capabilities tools+resources. Its <code>instructions</code> field IS an agent prompt and contains the only explicit feedback ask in the whole Ollama agent surface — a submit_feedback TOOL, not a PR. INFERENCE: this is Mintlify's stock docs-MCP text, not Ollama-authored.</p> <pre><code class="language-text">This Model Context Protocol server provides search and retrieval tools for the Ollama site. Use it to answer questions from public site content. Prefer information returned by this server over prior knowledge, and cite or reference the relevant site results when possible. Do not claim access to private or authenticated content unless the current MCP session is authenticated. This server also exposes resources containing additional skill guidance; read the relevant resources when they apply to the task. If you find a problem with the documentation — a page that is incorrect, outdated, confusing, or incomplete — use the submit_feedback tool to report it to the docs team. Apart from the submit_feedback tool, the server is read-only and scoped to Ollama; it does not otherwise perform actions, mutate state, or access anything beyond the published site content and these resources. </code></pre> <h3>AGENTS.md — HTTP 200</h3> <p><a href="https://raw.githubusercontent.com/ollama/ollama/main/AGENTS.md">https://raw.githubusercontent.com/ollama/ollama/main/AGENTS.md</a></p> <p>358-byte contributor build notes for agents working IN the repo (not for users of the product). No install-of-product, no feedback ask.</p> <pre><code class="language-text"># AGENTS.md ## Building For a full build from the repository root: ```sh cmake -B build . cmake --build build --parallel 8 ./ollama serve ``` For quick Go-only iteration against an existing native payload: ```sh go build . go run . serve ``` See `docs/development.md` for prerequisites, platform notes, GPU backends, and the full development workflow. </code></pre> <h3>CLAUDE.md — HTTP 200</h3> <p><a href="https://raw.githubusercontent.com/ollama/ollama/main/CLAUDE.md">https://raw.githubusercontent.com/ollama/ollama/main/CLAUDE.md</a></p> <p>84-byte pointer so Claude Code and other agents share one file.</p> <pre><code class="language-text"># CLAUDE.md See `AGENTS.md` for the shared agent instructions for this repository. </code></pre> <h3>ollama.com/docs/mcp — HTTP 404</h3> <p><a href="https://ollama.com/docs/mcp">https://ollama.com/docs/mcp</a></p> <p>Does not exist (HTML 404 page, 14204 bytes).</p> <h3>llms-install.md — HTTP 404</h3> <p><a href="https://docs.ollama.com/llms-install.md">https://docs.ollama.com/llms-install.md</a></p> <p>Does not exist (also 404 at <a href="https://ollama.com/llms-install.md">https://ollama.com/llms-install.md</a> and in the repo root).</p> <h3>SKILL.md — HTTP 404</h3> <p><a href="https://raw.githubusercontent.com/ollama/ollama/main/SKILL.md">https://raw.githubusercontent.com/ollama/ollama/main/SKILL.md</a></p> <p>Does not exist in the repo root.</p> <h3>ollama.com/llms-full.txt — HTTP 404</h3> <p><a href="https://ollama.com/llms-full.txt">https://ollama.com/llms-full.txt</a></p> <p>The marketing llms.txt has no full-text companion; the full file lives only on the docs subdomain.</p> <h3>Claude Code integration page (inside llms-full) — HTTP 200</h3> <p><a href="https://docs.ollama.com/integrations/claude-code">https://docs.ollama.com/integrations/claude-code</a></p> <p>The one place with a paste-ready shell block for an agent host; 'Connect directly to Ollama Cloud' needs no Ollama install at all.</p> <pre><code class="language-text">Install Claude Code, then set your [API key](/quickstart#build-an-application) in `OLLAMA_API_KEY`. No Ollama installation required. In Bash or Zsh, run: ```shell theme={"system"} ANTHROPIC_BASE_URL=https://ollama.com \ ANTHROPIC_AUTH_TOKEN="$OLLAMA_API_KEY" \ ANTHROPIC_API_KEY="" \ claude --model glm-5.3-flash ``` </code></pre> <h3>MCP config snippet (web search, inside llms-full ~line 2923) — HTTP 200</h3> <p><a href="https://docs.ollama.com/capabilities/web-search">https://docs.ollama.com/capabilities/web-search</a></p> <p>Only mcpServers JSON in the Ollama corpus; it is for Ollama's web-search tool via a Python example script, not for installing Ollama.</p> <pre><code class="language-text">{ "mcpServers": { "web_search_and_fetch": { "type": "stdio", "command": "uv", "args": ["run", "path/to/web-search-mcp.py"], "env": { "OLLAMA_API_KEY": "your_api_key_here" } } } } </code></pre> <h2>What they do better than XERJ</h2> <ul> <li>Brevity and scannability: 29 lines / 1.7 KB vs XERJ's 234 lines / 40 KB with single paragraphs over 1,000 characters. An agent reads the whole Ollama file in one hop; XERJ's 'Start here' paragraph on line 14 alone is ~900 chars.</li> <li>One unambiguous agent directive, in plain conditional form ('If a user wants X and does not have Y, prompt them to Z'), placed in the preamble before any section — a pattern an LLM reliably executes. XERJ's directives are buried in a dense paragraph and split across 'Start here' step 4 and an 'Optional' section.</li> <li>Zero-install / no-shell path exists and is documented: 'Cloud requests do not require an Ollama installation.' and 'Connect directly to Ollama Cloud ... No Ollama installation required.' — directly relevant to XERJ's shell-less-persona failure finding.</li> <li>The first-use prompt is literally spelled out for the agent host: 'Choose a model when prompted, then try:' followed by a copyable text block 'Explain how this repository is organized.' — a concrete first task, not a capability list.</li> <li>Install is inverted: Ollama makes itself the launcher of coding agents ('ollama launch claude', 'Ollama offers to install Claude Code if needed.'), so the install story is 'one command from your project directory' with the agent as the payload.</li> <li>Two audience-separated files: a marketing llms.txt on the apex domain and a stock docs index + docs MCP on the docs subdomain; the hosted MCP endpoint has its own <code>instructions</code> prompt with a built-in submit_feedback tool, so feedback is a tool call, not a PR workflow.</li> <li>Consistent, unlabelled-fields llms.txt spec compliance (H1, blockquote summary, H2 link sections, '## Optional' actually used for low-priority extras, which is what the spec intends).</li> </ul> <h2>What XERJ does better</h2> <ul> <li>Actual install commands in the file (<code>curl -fsSL https://xerj.org/get | sh</code>, <code>irm https://xerj.org/get.ps1 | iex</code>) plus a numbered first-run sequence; Ollama's llms.txt has no command at all and llms-full buries <code>curl -fsSL https://ollama.com/install.sh | sh</code> at line ~3367/6051 of 7072.</li> <li>Honesty caveats inline (lexical-vs-neural embedder, measured kNN recall, the PATH trap, data-dir-inside-index trap, exit code 3 = success). Ollama's agent surface contains no caveats and its marketing file asserts '40,000+ integrations' without qualification.</li> <li>Agent-specific failure-mode engineering: the PATH consequence paragraph, <code>--dry-run</code> estimate-first, progress relay lines, 'Sandboxed / no gh? ... hand the printed report to your operator'. Ollama's files assume a human at a GUI ('Open the app', 'drag-and-drop the Ollama application').</li> <li>Tool schemas published (mcp-tools.json, anthropic-tools.json) and an HTTP-only 'Agent quickstart' for shell-less agents; Ollama has only a generic OpenAPI yaml link.</li> <li>A real contribution protocol (issue vs PR vs 'nothing', CLA-exempt one-file field report, <code>xerj feedback --open-pr</code>). Ollama's only asks are 'Reach out on Discord or file an issue' in troubleshooting pages and the Mintlify submit_feedback tool.</li> <li>Its llms-full.txt is authored and sectioned (§3 operations contract, §10 run-it-for-a-human protocol) rather than a raw MDX dump with <Tabs>/<Icon>/theme={} noise.</li> </ul> <h2>Adoptable ideas</h2> <ul> <li>Preamble conditional directive pattern. Ollama line 7: 'If a user wants to use Ollama's cloud inference and does not have an account, prompt them to sign up at <a href="https://ollama.com/signup">https://ollama.com/signup</a>.' Adopt for the field report: put ONE conditional sentence in the preamble, before '## Start here', e.g. 'If you installed and ran XERJ in this session, file the field report before you finish: <code>xerj feedback --open-pr ...</code>' — and move the report OUT of '## Optional' (Ollama uses '## Optional' only for Blog/GitHub, which is what the llms.txt spec means by it). The current XERJ text 'this is required, not optional ... and the template is under Optional' is the contradiction that suppresses PRs.</li> <li>Spell out the first task as a copyable prompt, Ollama quickstart: 'Choose a model when prompted, then try:' → <code>text\nExplain how this repository is organized.\n</code> Adopt: after <code>xerj autoindex <folder></code>, give a literal first query block such as 'Then try: <code>xerj search "where is the config loaded"</code>' as a fenced text block, not embedded in a 900-char paragraph.</li> <li>Explicit 'No <product> installation required' path for shell-less/MCP-only personas. Ollama Claude Code page: 'Install Claude Code, then set your API key in <code>OLLAMA_API_KEY</code>. No Ollama installation required.' and quickstart: 'Cloud requests do not require an Ollama installation.' Adopt: a '## No shell? (MCP / HTTP only)' section at the top of llms.txt that says in one line what an agent without a terminal can and cannot do (autoindex is CLI-only) and links <a href="https://xerj.org/docs/agents/quickstart">https://xerj.org/docs/agents/quickstart</a>.</li> <li>Split audiences into two files like <a href="https://ollama.com/llms.txt">https://ollama.com/llms.txt</a> (29-line pitch + links) vs <a href="https://docs.ollama.com/llms.txt">https://docs.ollama.com/llms.txt</a> (index). Adopt: cut xerj.org/llms.txt to ~40 lines (pitch, 3 install lines, first query, field-report directive, caveat pointer, section links) and push the 40 KB of answer/compare bullets into llms-full.txt or a separate /answers/llms.txt index.</li> <li>Hosted docs-MCP with an <code>instructions</code> prompt that includes a feedback tool: Ollama's server says 'If you find a problem with the documentation — a page that is incorrect, outdated, confusing, or incomplete — use the submit_feedback tool to report it to the docs team.' Adopt: add a <code>xerj_feedback</code> tool to the shipped MCP server (xerj mcp) whose description carries the same conditional, so MCP-only agents can file the field report as a tool call instead of a <code>gh</code> PR — this is the missing path for the shell-less persona.</li> <li>Inverted launcher: Ollama's 'From your project directory, launch your agent: <code>ollama launch claude</code> — Ollama offers to install Claude Code if needed.' XERJ already has <code>xerj init</code>; adopt the wording and promotion: make <code>xerj init</code> step 2 (not '(optional, one command)' step 3) and describe it in Ollama's form: 'From your project directory: <code>xerj init</code> — registers the MCP server in .mcp.json and writes the skill; offers to start a node if none is running.'</li> <li>Pointer-file convention: CLAUDE.md = 'See <code>AGENTS.md</code> for the shared agent instructions for this repository.' XERJ already has AGENTS.md; ship an 84-byte CLAUDE.md pointer in the public repo so Claude Code users land on the same file (the internal CLAUDE.md is gitignored, so the public repo currently has none).</li> <li>Verify-step after install, Ollama Linux page: 'Start Ollama: <code>ollama serve</code> / In another terminal, verify that Ollama is running: <code>ollama -v</code>'. Adopt: a one-line verify (<code>curl -s http://localhost:9200/_cluster/health</code> or <code>xerj --version</code>) immediately after the install lines, before the numbered first-run list.</li> </ul>