Skip to main content
Glama
README.md
<p align="center">
  <img src="assets/logo.svg" width="160" alt="Quipu logo: knotted strings forming a knowledge graph"/>
</p>

<h1 align="center">Quipu</h1>
<p align="center"><em>Governed knowledge your agents can read, reuse and share</em></p>
<!-- badges:start (scripts/check-readme-badges.py fails CI if this row or the DOI/arXiv links go missing) -->
<p align="center">
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache-2.0"/></a>
  <a href="https://github.com/intigraph/quipu/actions/workflows/ci.yml"><img src="https://github.com/intigraph/quipu/actions/workflows/ci.yml/badge.svg" alt="CI"/></a>
  <a href="https://crates.io/crates/quipu-ai"><img src="https://img.shields.io/crates/v/quipu-ai.svg" alt="crates.io: quipu-ai"/></a>
  <a href="https://intigraph.github.io/quipu/"><img src="https://img.shields.io/badge/docs-the_book-8B5E3C.svg" alt="Docs: the Quipu book"/></a>
  <a href="https://doi.org/10.5281/zenodo.21878428"><img src="https://img.shields.io/badge/DOI-10.5281%2Fzenodo.21878428-blue.svg" alt="DOI: 10.5281/zenodo.21878428"/></a>
  <a href="https://arxiv.org/abs/2608.16813"><img src="https://img.shields.io/badge/arXiv-2608.16813-b31b1b.svg" alt="arXiv: 2608.16813"/></a>
  <a href="https://github.com/intigraph/tambo"><img src="https://img.shields.io/badge/stack-tambo-8B5E3C.svg" alt="Part of the Tambo stack"/></a>
</p>
<!-- badges:end -->
<p align="center"><strong><a href="https://intigraph.github.io/quipu/">Read the book โ†’</a></strong></p>

**Quipu is a governed, bitemporal knowledge store for AI agents and the
people who run them.** It keeps facts, decisions and work history in one graph,
checks what is written against your rules, and can answer what was true at any
earlier point. Use it from the command line, REST, MCP, Python or a Rust application.

It is also the **central graph and base for many tools**: see [the stack](#-the-stack).
The full case is in [Why Quipu](https://intigraph.github.io/quipu/why-quipu.html).

## What it does today

| Capability | What you get |
|---|---|
| **A history of every fact** | Facts are appended, never overwritten. Each one carries when it was true and when it was recorded, so you can query the graph as it stood at any transaction. [The temporal model](https://intigraph.github.io/quipu/concepts/temporal-model.html) |
| **Standard graph data and queries** | RDF data, SPARQL 1.1 queries, stored queries and typed query builders. [SPARQL from zero](https://intigraph.github.io/quipu/tutorials/sparql.html), [conformance results](https://intigraph.github.io/quipu/benchmarks/conformance.html) |
| **Governed writes** | SHACL shapes and policies are checked at the write gate. A write that breaks your vocabulary is refused with a reason. [Governance](https://intigraph.github.io/quipu/concepts/governance.html) |
| **Provenance on ingestion** | Episodes record a batch of entities and relationships together with their source, and entity resolution matches new mentions to the nodes you already have. [Episode ingestion](https://intigraph.github.io/quipu/architecture/episodes.html) |
| **Named graphs with trust labels** | Separate bodies of knowledge, composed into overlays and datasets, labelled by trust and frozen when they must not change. [Named graphs](https://intigraph.github.io/quipu/concepts/named-graphs.html) |
| **Reasoning** | An OWL layer and a rule engine that says when an answer is unknown instead of guessing. [The reasoner](https://intigraph.github.io/quipu/concepts/reasoning.html) |
| **Search** | Keyword search with no model to download, semantic search once an embedding model is installed, and hybrid ranking over both. [Embeddings and search](https://intigraph.github.io/quipu/concepts/embeddings.html) |
| **Verified sharing** | Export a signed share, verify it in quarantine, then promote what you admit. Conflicts come back as decisions, not silent merges. [Sharing and federation](https://intigraph.github.io/quipu/sharing/index.html) |
| **A change stream** | Committed changes are published in order, so other tools react to the graph without polling. [Committed feed streams](https://intigraph.github.io/quipu/architecture/event-stream.html) |
| **Files from the graph** | Render graph data into files such as agent instructions and configuration. [Render](https://intigraph.github.io/quipu/reference/render.html) |
| **Runs where you are** | One store behind a CLI, an HTTP server with a graph explorer, an MCP server, a Rust library, a Python client and WebAssembly. It works offline. |

## What is planned

Month-level targets, in order. The stack-wide plan is the
[Intigraph roadmap](https://github.com/intigraph/.github/blob/main/ROADMAP.md).

| When | Planned |
|---|---|
| **Now** (December 2026) | **Faster reads:** the slow tail of board-shaped queries, anti-joins and aggregates under one second. |
| | **A store per graph:** each named graph gets its own store file and writer, composed into one read view. [Design](docs/design/per-graph-writable-stores.md) |
| | **Fluents:** frequently changing values kept as append-only observations with a derived current value, so they merge without conflict. [Contract](docs/design/fluents-v1-contract.md) |
| **Next** (January and February 2027) | **Read standby:** a follower of the change stream that takes reads if the primary stops. |
| | **Subscription filters:** by class, predicate and subject, so a consumer hears only what it asked for. |
| | **Local sync:** a scoped copy that stays fresh from the stream, works offline and reports how stale it is. [Design](docs/design/local-sync-mode.md) |
| | **Search v2:** keyword and semantic ranking with a configurable balance. |
| | **Pendants that write files:** a pendant, the cut of the graph handed to one job, declares the files an agent needs, and the client writes them with a receipt. |
| **Later** (March to May 2027) | **Merge-back:** a signed changeset from a local copy, merged three-way, with a conflict returned as a decision for a person. |
| | **A data map:** Quipu as the catalog of where data lives, with a read-only tool that joins those locations and keeps provenance. |

<p align="center">
  <img src="assets/run-anywhere.svg" width="900" alt="Animated: one Quipu store connects the CLI, MCP clients, HTTP server, Rust library, offline use and WebAssembly"/>
</p>

## Install

```sh
curl -fsSL https://raw.githubusercontent.com/intigraph/quipu/main/install.sh | sh
```

Linux and macOS, x86_64 and arm64; requires Python 3.9+ and curl.
The installer verifies the published archive checksum and executable version.
Then run `quipu --version`. [Install, upgrade or remove Quipu](https://intigraph.github.io/quipu/getting-started/installation.html).
For the whole stack, use [Tambo's guided onboarding](https://github.com/intigraph/tambo).

## First success: insert a fact, watch the graph change

Write one fact in plain Turtle, knot it into a local store, and ask for it back:

```sh
printf '@prefix : <urn:demo:> .\n:Ada :studies :Engine .\n' > ada.ttl
quipu knot ada.ttl --db demo.db
quipu read 'SELECT ?who ?what WHERE { ?who <urn:demo:studies> ?what }' --db demo.db
```

Add a second fact and the graph grows. The first version is still there to query:

```sh
printf '@prefix : <urn:demo:> .\n:Babbage :designed :Engine .\n' > babbage.ttl
quipu knot babbage.ttl --db demo.db
quipu read 'SELECT ?s ?p ?o WHERE { ?s ?p ?o }' --db demo.db
quipu read 'SELECT ?s ?p ?o WHERE { ?s ?p ?o }' --tx 1 --db demo.db
```

![Animated terminal: two plain facts are inserted and queried, then the earlier version is read back](docs/demos/terminal/demo.svg)

<table>
<tr><th>After the first fact</th><th>After the second fact</th></tr>
<tr>
<td><img src="docs/demos/terminal/graph-before.svg" alt="Graph before: Ada studies Engine" width="440"/></td>
<td><img src="docs/demos/terminal/graph-after.svg" alt="Graph after: Ada studies Engine, and Babbage designed Engine" width="440"/></td>
</tr>
</table>

[Transcript, tool version and reproducible capture](docs/demos/terminal.md).

## On your own code

Keep project facts, decisions and relationships together instead of pasting the same context into each agent.

| You want to | Start here |
|---|---|
| Load facts and apply your vocabulary | [Quick Start](https://intigraph.github.io/quipu/getting-started/quick-start.html) |
| Ask about current or historical knowledge | [SPARQL and time](https://intigraph.github.io/quipu/concepts/temporal-model.html) |
| Share a governed knowledge bundle | [Verified sharing](https://intigraph.github.io/quipu/sharing/index.html) |
| Prepare domain knowledge and shapes | [Camayoc](https://github.com/intigraph/camayoc) |

<p align="center">
  <img src="assets/sharing-flow.svg" width="900" alt="Animated: export a share, verify it in quarantine, then explicitly promote admitted knowledge; conflicts are not silently merged"/>
</p>

The [latest release](https://github.com/intigraph/quipu/releases/latest) includes a repository pendant,
checksum and provenance. Verify them together, then use `quipu import SHARE_DIR --db repository.db`;
import stages knowledge and leaves ROOT unchanged. Follow the [verified import workflow](https://intigraph.github.io/quipu/sharing/index.html).

## Wire it into your agent

For Claude Code, connect the local MCP server to your database:

```sh
claude mcp add quipu -- quipu mcp --db /path/to/knowledge.db
```

The MCP Registry identifier is `mcp-name: io.github.intigraph/quipu`.
Other clients, HTTP MCP and credential configuration: [Agent Setup](https://intigraph.github.io/quipu/getting-started/agent-setup.html).
Use [Tambo](https://github.com/intigraph/tambo) to configure and verify the tools together.

## Before you start

- The CLI runs locally; `quipu-server` supplies the network API and explorer.
- Fresh stores support keyword search without downloading a model. `quipu search "your terms"` uses keyword search until an embedding provider is configured; explicit `--mode semantic` still requires a model and vectors. Install the pinned default model with `quipu model install --db graph.db` in a full build. This also prepares up to 1,024 existing ROOT subjects in bounded batches; larger stores receive a resume cursor. Check readiness with `quipu doctor search --db graph.db`.
- [Configuration](https://intigraph.github.io/quipu/getting-started/configuration.html) covers storage and server settings.

## What's next

- [The Quipu book](https://intigraph.github.io/quipu/): tutorials, concepts and references.
- [Quick Start](https://intigraph.github.io/quipu/getting-started/quick-start.html): governed local examples.
- [Domain shapes](https://intigraph.github.io/quipu/concepts/domain-shapes.html): producer-owned vocabulary.
- [Intigraph roadmap](https://github.com/intigraph/.github/blob/main/ROADMAP.md): what is planned across the stack.
- [Stack README format](https://github.com/intigraph/tambo/blob/main/docs/stack/README-TEMPLATE.md).

## ๐Ÿงบ The stack

Tambo installs these together and proves each one works; every tool also stands alone.
Use each tool's README for its own installation and first success.

<!-- stack-table:start -->

The Quipu stack is built around a governed, bitemporal knowledge store: shared
facts, decisions and work history your agents can query. Quipu can check writes
against your rules, records where each fact came from, and answers what was true
when.

| tool | what it gives your agents |
|---|---|
| [tambo](https://github.com/intigraph/tambo) | ๐Ÿงฐ Agent Platform Toolkit - installs and configures the quipu stack |
| [quipu](https://github.com/intigraph/quipu) | stores shared facts with provenance and history; can check writes against your rules |
| [camayoc](https://github.com/intigraph/camayoc) | prepares knowledge and vocabulary for Quipu, with checks before it is admitted |
| [quechua](https://github.com/intigraph/quechua) | shared vocabulary and shapes for interoperable knowledge |
| [chaski](https://github.com/intigraph/chaski) | reacts to graph changes and delivers governed notifications |
| [bobbin](https://github.com/intigraph/bobbin) | indexes your codebase and injects context from that index and Quipu knowledge |
| [yupana](https://github.com/intigraph/yupana) | shows code impact and can read policies from Quipu to govern agent actions |
| [desire-path](https://github.com/intigraph/desire-path) | turns agent mistakes into feature requests; works on its own without Quipu |
| [seeds](https://github.com/intigraph/seeds) | a work item tracker backed by the Quipu knowledge base |
| [shantytown](https://github.com/intigraph/shantytown) | runs crews of AI agents on work items, triggered by hand, on a schedule or by events; can share work and memory through Quipu |
| [rikuy](https://github.com/intigraph/rikuy) | live brief: status, graphs, watches and signed decisions over Quipu |
| [shuttle](https://github.com/intigraph/shuttle) | runs signed agent workflows and keeps their records in Quipu |

<!-- stack-table:end -->

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md). The repository's checks are:

```sh
just check
just docs check
```

## ๐Ÿ“œ License

[Apache-2.0](LICENSE).

TDQS

B3/5.0

Scored across 84 tools

Disambiguation2/5

There are many overlapping search/retrieval tools whose boundaries are hard to infer from names alone: quipu_search, quipu_search_nodes, quipu_search_facts, quipu_hybrid_search, quipu_unified_search, quipu_search_query, quipu_context, quipu_ask, and quipu_spotlight all sound like ways to find knowledge. Similar confusion exists between event tools (quipu_events vs quipu_graph_events, quipu_changes, quipu_transactions) and between ingestion paths (quipu_knot, quipu_set, quipu_update, quipu_episode, quipu_episodes_complete). Descriptions are detailed, but the set as a whole has multiple unclear boundaries.

Naming Consistency3/5

The quipu_ prefix and snake_case style are consistent throughout. However, naming conventions are mixed: many tools are verb_noun (quipu_graph_create, quipu_merge_apply), while others are noun-only or domain metaphors (quipu_entity, quipu_graph, quipu_context, quipu_cord, quipu_knot, quipu_unravel, quipu_ask). The pattern is readable but not predictable enough for a strong score.

Tool Count1/5

Eighty-four tools is far beyond a manageable surface for an agent, even for a feature-rich knowledge graph server. The set includes many niche governance, overlay, import/export, and event-cursor tools that will be hard to discover and select correctly. This is an extreme mismatch between count and practical usability.

Completeness5/5

The tool surface covers an unusually broad lifecycle: entity minting, fact assertion/retraction, SPARQL query/update, semantic and keyword search, SHACL validation, schema proposals, reasoning, events, imports/exports, overlays, graph freezing, and governance verdicts. No obvious core operation appears missing from the stated knowledge-graph and provenance domain.

Maintenance

ActivityActive
ResponsivenessLimited data