Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/lemonade-sdk/lemonade/agents-mdgit clone --depth 1 https://github.com/lemonade-sdk/lemonadeWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.04973 | $0.04973 |
| Opus 5 | $0.02486 | $0.02486 |
| Sonnet 5 | $0.00995 | $0.00995 |
| Haiku 4.5 | $0.00497 | $0.00497 |
Grade A, and why
lemonade AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to agent driven code reviews when working with this repository.
Project Overview
Lemonade is a local LLM server providing GPU and NPU acceleration for running large language models on consumer hardware. It exposes OpenAI-compatible, Ollama-compatible, and Anthropic-compatible REST APIs, plus a WebSocket Realtime API. It supports multiple backends: llama.cpp, FastFlowLM, RyzenAI, whisper.cpp, stable-diffusion.cpp, Kokoro TTS, and Moonshine.
Architecture
Executables
- lemond — Pure HTTP server. Handles REST API, routes requests to backends, manages model loading/unloading. Configured via
config.jsonin the lemonade cache directory. CLI args:[cache_dir] [--port PORT] [--host HOST]. - lemonade — CLI client (
src/cpp/cli/). Commands:list,pull,delete,run,status,logs,launch,backends,scan, etc. Communicates with router via HTTP. Discovers running server via UDP beacon. - LemonadeServer.exe (Windows) — SUBSYSTEM:WINDOWS GUI app that embeds
lemondand shows a system tray icon. Auto-starts via Windows startup folder. - lemonade-tray (macOS/Linux) — Lightweight tray client that connects to a running
lemond. Platform code insrc/cpp/tray/platform/.
Backend Abstraction
WrappedServer (src/cpp/include/lemon/wrapped_server.h) is the abstract base class. Each backend inherits it and implements load(), unload(), chat_completion(), completion(), responses(), and optionally install() / download_model(). Backends run as subprocesses — Lemonade forwards HTTP requests to them.
| Backend | Class | Capabilities | Device | Purpose |
|---|---|---|---|---|
| llama.cpp | LlamaCppServer |
Completion, Embeddings, Reranking | GPU | LLM inference — CPU/GPU (Vulkan, ROCm, Metal) |
| FastFlowLM | FastFlowLMServer |
Completion, Embeddings, Audio | NPU | NPU inference (multi-modal: LLM, ASR, embeddings) |
| RyzenAI | RyzenAIServer |
Completion | NPU | Hybrid NPU inference |
| vLLM | VLLMServer |
Completion | GPU | LLM inference — ROCm on AMD iGPU/dGPU (Linux). Experimental, validated only on gfx1151 (Strix Halo). |
| whisper.cpp | WhisperServer |
Audio | CPU | Audio transcription |
| stable-diffusion.cpp | SdServer |
Image | CPU | Image generation, editing, variations |
| Kokoro | KokoroServer |
TTS | CPU | Text-to-speech |
| Moonshine | MoonshineServer |
Audio | CPU | Streaming speech-to-text (ONNX-based) |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 248 lines · 4,973 tokens per session scan A 45d4ca56f333
lemonade AGENTS.md is an instructions file published in the GitHub repository lemonade-sdk/lemonade (5,570 stars, last pushed yesterday), licensed Apache-2.0. It adds 4,973 tokens to every session, about $0.0249 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
ollama AGENTS.md
AGENTS.md instructions for ollama/ollama, covering agents.md and building.
LocalAI AGENTS.md
AGENTS.md instructions for mudler/LocalAI, covering localai agent instructions, policy for ai-assisted contributions, topics and quick reference.
ollama CLAUDE.md
Claude Code instructions for ollama/ollama: See AGENTS.md for the shared agent instructions for this repository.
ODS CLAUDE.md
Claude Code instructions for Osmantic/ODS, covering claude.md, project overview, repository structure, build & development commands and linting and validation.
plano CLAUDE.md
Instructions for katanemo/plano, covering claude.md, build & test commands, rust — wasm plugins (must target wasm32-wasip1), rust — brightstaff binary (native target) and rust — tests, format, lint.
oumi AGENTS.md
AGENTS.md instructions for oumi-ai/oumi, covering agent instructions, publication policy and working with contributions.