An on-demand knowledge base for LM Studio agents. Write instructions, skills, and notes in Markdown or plain text, let the agent find, read, write, and edit them — without polluting the context window on every turn.
After experimenting with several system prompts for a while, I eventually moved toward collecting the various guidelines in a RAG system. Both solutions have specific advantages and disadvantages:
The best experience I've had so far has been with my tool: Playbook. It combines all the advantages and avoids all the disadvantages mentioned:
Playbook is like the opposite of a classical RAG pipeline: nothing gets injected automatically. Instead, the agent uses tools when it decides the knowledge base is relevant.
Two-phase retrieval keeps context usage lean:
recall — keyword + semantic search, returns metadata only (title, filename, tags, score). The context cost is negligible.read — fetches the full text of one specific document, on demand.Write access is equally explicit:
| Tool | What it does |
|---|---|
memorize | Write or overwrite a document (title + tags + Markdown body) |
rewrite | Surgical text replacement — oldText must match exactly once |
forget | Delete a document permanently |
text-embedding-nomic-embed-text-v1.5 — swapping in any English or multilingual model works.That's it.
If no embedding model is configured (or LM Studio can't reach one), search falls back to BM25 keyword matching automatically.
Documents are Markdown (.md) or plain text (.txt) files with optional YAML frontmatter:
--- title: "My Note" tags: ["example", "setup"] created: "2026-04-07T10:00:00.000Z" updated: "2026-04-07T10:00:00.000Z" --- Your content here.
Frontmatter is written and maintained automatically by the memorize tool. Plain text files without frontmatter are indexed too — the filename is used as the title. You can also create and edit files manually in any editor — the plugin detects changes via file watcher and re-indexes within seconds.
| Setting | Default | Description |
|---|---|---|
| Playbook Directory | ~/Documents/Playbook | Absolute path to the folder with your MD/TXT files |
| Embedding Model | text-embedding-nomic-embed-text-v1.5 | Leave empty for BM25-only search |
| LM Studio Base URL | http://127.0.0.1:1234 | LM Studio local API URL |
| Max Recall Documents | 5 | Maximum results per recall call |
| Min Recall Score | 60 | Minimum relevance score (0–100) to appear in results |
detect_object bounding boxes from plugin analyse-image directly‼️ This plugin is a research prototype. ‼️
MIT