Skip to content
Skill

Haiku rag

Lets your agent search, read and compute over your haiku.rag document knowledge base

Haiku rag is an open-source agent skill for knowledge and memory. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
670
Last commit
License
MIT
Listing updated

Similar skills

About Haiku rag

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Haiku rag 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.

More from ggozad/haiku.rag

  1. Guides an agent through debugging haiku.rag eval runs in Logfire

    • Open source
    • 670 GitHub stars
    • Developer tools
  2. Traces haiku.rag ingestion failures and slow stages in Logfire via the Logfire MCP

    • Open source
    • 670 GitHub stars
    • Developer tools