# Haiku rag

> Haiku rag is an open-source agent skill for knowledge and memory. Lets your agent search, read and compute over your haiku.rag document knowledge base. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ggozad/haiku.rag/tree/main/plugins/haiku-rag/skills/haiku-rag
- **Repository:** https://github.com/ggozad/haiku.rag
- **GitHub stars:** 670
- **License:** MIT
- **Skill name:** haiku-rag
- **Collection:** https://github.com/ggozad/haiku.rag
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-01

## About

This skill tells the agent to check your ingested documents before answering from general knowledge when a question could relate to your own material. It walks the agent through a search-first workflow: run a semantic search, retry once with a rephrased query or a metadata filter, then open full documents, outlines or single sections by their IDs. Images in results are passed back for figure questions, and an image-based search is available when the server offers it.

For questions that need counting, aggregation or comparisons across many documents, the skill directs the agent to a server-side Python tool that runs over the same stored documents. Filters are SQL WHERE clauses over document fields such as title, URI and metadata, and results are cited by title, section heading, page and chunk locators.

The skill requires the haiku-rag MCP server to be registered in the client and a knowledge base with documents already ingested. It is part of the haiku-rag Claude Code plugin and is MIT licensed.

## When your agent uses it

> Search, read and compute over the user's haiku.rag knowledge base

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ggozad/haiku.rag/tree/HEAD/plugins/haiku-rag/skills/haiku-rag)
- [Asks for: mcp__plugin_haiku-rag_haiku-rag__search_documents, mcp__plugin_haiku-rag_haiku-rag__search_documents_by_image, mcp__plugin_haiku-rag_haiku-rag__get_document, mcp__plugin_haiku-rag_haiku-rag__get_document_outline, mcp__plugin_haiku-rag_haiku-rag__get_document_section, mcp__plugin_haiku-rag_haiku-rag__list_documents, mcp__plugin_haiku-rag_haiku-rag__execute_code](https://github.com/ggozad/haiku.rag/blob/HEAD/plugins/haiku-rag/skills/haiku-rag/SKILL.md)
- [License: MIT](https://github.com/ggozad/haiku.rag/tree/HEAD/plugins/haiku-rag/skills/haiku-rag)

## Features

- **Semantic document search:** Finds ranked passages across ingested documents, with optional filters and result limits.
- **Full document reading:** Retrieves whole documents, heading outlines with page numbers, or individual sections.
- **Image-aware answers:** Returns pictures from results for figure questions and supports image-based search when available.
- **Server-side computation:** Runs Python over stored documents to count, aggregate and compare across many files.
- **Metadata filtering:** Narrows searches with SQL-style conditions on titles, URIs, dates and metadata.
- **Cited answers:** Guides the agent to cite titles, sections, pages and chunk locators in its answers.

## Good for

- Find what my documents say about a specific contract clause
- Count how many reports in my knowledge base mention a given topic
- Summarize the section headings and key points of a long PDF
- Compare figures across several documents in my collection
- Answer a question about a chart or picture in my ingested files

## Install

### Claude Code

This skill ships in the `haiku-rag` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ggozad/haiku.rag
/plugin install haiku-rag@haiku-rag
```

Or copy only this skill to `~/.claude/skills/haiku-rag`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ggozad/haiku.rag.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/haiku-rag &&
cp -R "$tmp/plugins/haiku-rag/skills/haiku-rag" ~/.claude/skills/haiku-rag &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/haiku-rag` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/haiku-rag` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ggozad/haiku.rag.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/haiku-rag &&
cp -R "$tmp/plugins/haiku-rag/skills/haiku-rag" ~/.agents/skills/haiku-rag &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/haiku-rag` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/haiku-rag` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ggozad/haiku.rag.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/haiku-rag &&
cp -R "$tmp/plugins/haiku-rag/skills/haiku-rag" ~/.cursor/skills/haiku-rag &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/haiku-rag` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ggozad/haiku.rag.git --path plugins/haiku-rag/skills/haiku-rag
```

Or copy the folder to `~/.gemini/skills/haiku-rag` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/haiku-rag`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ggozad/haiku.rag.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/haiku-rag &&
cp -R "$tmp/plugins/haiku-rag/skills/haiku-rag" ~/.copilot/skills/haiku-rag &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/haiku-rag` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ggozad/haiku.rag.git
```

Then copy `haiku.rag/plugins/haiku-rag/skills/haiku-rag` into your agent's skills folder as `haiku-rag`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Haiku rag need to work?

The haiku-rag MCP server must be registered in your client, and it reads documents already ingested into your haiku.rag knowledge base.

### Does Haiku rag trigger on every question?

It is meant for requests that could be answered from your own documents, such as finding, checking or citing something in them, rather than general knowledge questions.

### How are results cited?

Answers cite the document title or URI, the section heading and page numbers when present, and metadata locators such as paragraph or footnote numbers.

### Can Haiku rag search several collections?

When the server covers multiple collections, results name their source and the search can be limited to a subset of sources.

### How do I install Haiku rag in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/haiku-rag to use it in all your projects, or to .claude/skills/haiku-rag in one project. Or install the haiku-rag plugin, which includes it: /plugin marketplace add ggozad/haiku.rag, then /plugin install haiku-rag@haiku-rag.

### Does Haiku rag run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Haiku rag?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Haiku rag?

The closest alternatives to Haiku rag are Pinecone rag, Nemo retriever MCP, Rag eval, Agent platform rag engine management and Mini context graph.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Pinecone rag](https://ai-powered.com/skills/pinecone-rag): Pinecone rag is an open-source agent skill for knowledge and memory.
- [Nemo retriever MCP](https://ai-powered.com/skills/nemo-retriever-mcp): Nemo retriever MCP is an open-source agent skill for knowledge and memory.
- [Rag eval](https://ai-powered.com/skills/rag-eval): Rag eval is an open-source agent skill for knowledge and memory.
- [Agent platform rag engine management](https://ai-powered.com/skills/agent-platform-rag-engine-management): Agent platform rag engine management is an open-source agent skill for knowledge and memory.
- [Mini context graph](https://ai-powered.com/skills/mini-context-graph): Mini context graph is an open-source agent skill for knowledge and memory.
- [Research](https://ai-powered.com/skills/research-hec-ovi-2): Research is an open-source agent skill for web search and scraping.
- [Literature search](https://ai-powered.com/skills/literature-search): Literature search is an open-source agent skill for knowledge and memory.
- [Qdrant hybrid search](https://ai-powered.com/skills/qdrant-hybrid-search): Qdrant hybrid search is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/haiku-rag-ggozad
