The project is in a healthy, maintained state
pikuri-fileindex gives a pikuri agent two tools, fileindex_search and fileindex_read, over the file index the desktop already keeps: GNOME's localsearch, queried in SPARQL through tinysparql, or recoll. The index has already extracted the text of your PDFs and office documents, so the agent reads them with no parser of its own. Named for what it refuses to become: the owner of an index. It never builds, configures or refreshes one; the desktop keeps it fresh.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

pikuri

CI

Kuri, pikuri's mascot — a pika

"Once men turned their thinking over to machines in the hope that this would set them free. But that only permitted other men with machines to enslave them." — Frank Herbert, Dune (1965)

A small Ruby AI assistant you run on your own machine, shipped as a family of gems in a monorepo; you install the ones you wire. Defaults wire a local llama.cpp server, so a conversation never leaves your computer unless the model itself decides to call a network tool. The smallest demo binary is pikuri-chat from pikuri-core; the rest of the family adds filesystem tools, sub-agents, web search, search over your desktop's file index and your Thunderbird mail à la carte. The power tools (a shell, a coding agent, MCP, skills) live in pikuri-workshop.

That's Kuri on the right — a pika, which is a real animal: a palm-sized relative of the rabbit that lives in alpine rockslides, spends the summer stacking cut grass into a pile under a rock, spends the winter eating it, and never leaves its own mountain. He gathers what he needs, keeps it where he can see it, and shouts at anything that comes close. It seemed about right.

Install

git clone https://github.com/mvysny/pikuri.git
cd pikuri

# Ruby 3.x + Bundler (Ubuntu/Debian — adapt for your distro)
sudo apt install ruby ruby-bundler
bundle install

From the recall chapter onward, the guide searches your files through the index your desktop already keeps: GNOME's localsearch, already running on an Ubuntu desktop, or recoll. Which systems qualify, and the one package Ubuntu needs for office documents: book/prerequisites.md.

Pikuri itself is now installed in dev mode. To actually have a conversation you also need a model running. The shortest route — install llama.cpp and start llama-server with the default model, Ornith-1.5, — is the first thing the guide walks through:

→ book/chat.md — your first conversation, from a fresh checkout to a working assistant.

Where to go next

You only read the code you run: pikuri-core plus the gems you wire is small enough to read end-to-end in an evening. Two ways in:

  • Read the guide at book/. It's a short book — the first-conversation chapter starts a chat agent, the sub-agents chapter introduces delegation (pikuri-minions), and the security chapter says why none of it can leak your data. Reading order matters: each chapter assumes the previous one's vocabulary, and book/README.md is the running order.
  • Or jump straight to whichever gem you want to use. Each per-gem README is a reference card with a wired-up snippet:
    • pikuri-core — Pikuri::Agent, the Tool framework, the pikuri-chat demo.
    • pikuri-pdf — PDF → text extraction, in-process and lazily paged (pure-Ruby pdf-reader); the docker-free alternative to pikuri-workshop's pikuri-extractors.
    • pikuri-html — HTML → Markdown extraction, for web pages and HTML mail attachments alike.
    • pikuri-web — the tools that reach the internet: web_search (DuckDuckGo, Brave, Exa), web_scrape, fetch and web_read_cached.
    • pikuri-workspace — filesystem tools + Workspace / Confirmer seams.
    • pikuri-subagents — the agent tool + Persona record + the pikuri-minions fan-out demo.
    • pikuri-fileindex — search your files through the index the desktop already keeps (GNOME's localsearch, or recoll): fileindex_search / fileindex_read, PDFs and office documents included, with no index of our own. Demo: pikuri-briefing, which briefs you on a customer from your own notes.
    • pikuri-thunderbird — the local Thunderbird profile as read-only mail/calendar tools plus two human-gated hand-offs. No network, no autonomous send.
    • The power tools, which run code you didn't write and so need a cage (pikuri-code, pikuri-os, pikuri-lsp, pikuri-mcp, pikuri-skills, pikuri-tasks, pikuri-memory, pikuri-extractors), live in pikuri-workshop.

There is deliberately no gem install pikuri that brings in everything: every gem you add is a tool the model can call, so add only the ones the job needs.

For browsable API docs, run bundle exec yard inside any gem directory (output is gitignored) — or, once gems are published, see https://rubydoc.info/gems/pikuri-core and its siblings.

Why this exists

The existing self-hosted agent stacks have grown big and hit a steep learning curve — a privacy-conscious user arriving fresh hits a wall of JSON configuration before the first conversation. Pikuri is the counter-move: privacy-first defaults (no cloud account, no API key, no telemetry), sane defaults so the first conversation needs no config file, and a deliberately small codebase that doubles as a tour of how a small agent runtime actually works. See design/decisions.md for the design rationale and the roads not taken; design/research.md places pikuri next to opencode and pi.

Curious how the agentic loop actually works?

Pikuri sits on top of ruby_llm, which owns the Thought → Tool-call → Observation loop. If you want to learn how that loop works internally — minimal code, no extension surface, nothing to wade through — read agentic-loop-demo. Same author, written precisely so the source is the lesson. Pikuri is the production-shaped sibling: same loop, plus tools, listeners, sub-agents, and ergonomics.

Security

The threat model in one page — code-trust baseline (what runs where, and in which sandbox), then three worked prompt-injection attacks broken by capability boundaries, plus explicit non-goals — lives in SECURITY.md. Read it once before pointing pikuri at anything sensitive.

Contributing

See CONTRIBUTING.md for how to run the test suite and how releases work.