README
¶
tapper Documentation
Tapper helps teams build a shared organizational brain: durable project memory for people and AI agents. Use these docs to set up Tapper, decide how to structure KEGs, connect agents, and operate the system safely over time.
Start Here
- New to Tapper: read the project README first.
- Setting up your machine: Configuration Overview.
- Connecting Claude Code, Codex, or another MCP host: Using Tapper From AI Agents.
- Designing a maintainable knowledge base: KEG Structure Patterns.
Choose Your Path
| You need to... | Read |
|---|---|
| Set up hosted Tapper defaults | Configuration Overview |
| Make a repo resolve to the right team keg | Project Config |
Understand @namespace/keg resolution |
Resolution Order |
| Connect AI agents to shared memory | AI Coding Agents |
| Capture consistent notes, tags, and links | KEG Structure Patterns |
| Preserve or restore important node states | Node Snapshots |
| Back up, migrate, or archive a keg | Backups And Archives |
| Debug setup or resolution failures | Troubleshooting |
| Understand internals before contributing | Architecture Overview |
| Change Tapper itself: build, test, lint, contribute | Development |
Core Workflows
Bootstrap A Machine
tap bootstrap --kind cloud
tap auth login
tap keg create @alice/personal
tap use personal --user
For an enterprise deployment, use
tap bootstrap --kind enterprise --endpoint <url> instead.
Work In A Team Keg
tap namespace create acme
tap keg create @acme/engineering
tap use @acme/engineering
tap node create
tap node search "release plan"
Use tap use @namespace/keg in a repository to set that repo's default keg in
.tapper/config.yaml. Use tap use @namespace/keg --user to set your personal
fallback keg.
Share Access
tap namespace add-member @teammate editor --namespace acme
tap keg grant @teammate editor --keg @acme/engineering
tap keg visibility private --keg @acme/engineering
tap keg rename @acme/engineering docs
Namespace membership handles organization-level access. Keg grants handle per-keg access when a domain needs a tighter boundary. Adding a member or a grantee sends an invitation: access starts only when they accept it.
tap invitation list # invitations addressed to you
tap invitation accept 42 # or: tap invitation decline 42
tap invitation revoke 42 # withdraw one you sent
Connect An Agent
tap integrate codex
tap integrate claude
tap integrate opencode
Every integration exposes the Tapper MCP server plus host-specific prompts or
skills embedded in tap. tap integrate HOST is the official supported
installation and upgrade surface. Repeat --plugin, for example --plugin tapper-dev, to add optional plugins. --scope defaults to user; Claude also
supports project and local, opencode supports project, and Codex is
user-only. Agents should use the mcp__tapper__* tools rather than reading or
writing KEG files directly.
Command Quick Reference
Targeting
--keg @namespace/name- select a keg explicitly.--namespace NAME- resolve a bare keg name inside a namespace.--hub NAME- force the hub used for namespace resolution.--flight @namespace/+slug- apply flight context for orient/MCP.--config PATH- bypass the user/project config cascade.
Common Node Operations
tap node create- create a node.tap node read NODE_ID- display node content and metadata.tap node edit NODE_ID- edit a node.tap node list- list indexed nodes.tap node search QUERY...- find the nodes most relevant to a query, ranked by the hub across every keg you can read, one keg (--keg), or listed kegs (--kegs @ns/a,@ns/b, at most 50). The query takes plain terms,"quoted phrases", and-exclusions. Each hit prints reference, score, title, and a highlighted snippet;--limitcaps a page (the hub chooses by default), the next page's cursor is printed to stderr for--cursor,--id-onlyprints references, and--jsonprints the hub's response. MCP'snode_searchtakes the same parameters; under a flight it never searches outside the cover.tap node grep PATTERN- match node content lines in one keg against a regex (MCPnode_grep), for exact identifiers and audits.tap tag list [EXPR]- list tags or query tagged nodes.tap node backlinks NODE_ID- show nodes that link to a node.tap node links NODE_ID- show outgoing links from a node.
Keg And Organization Operations
tap bootstrap- create or refresh user-level setup.tap use [@namespace/keg]- set or inspect project/user keg selection.tap keg create @namespace/name- create a keg.--kegv 2026-09creates a KEGv2 preview keg where the hub enables it; the default,2025-07, is a Markdown KEGv1. A hub with the preview off refuses--kegv 2026-09withKEG_VERSION_UNSUPPORTED; a hub that predates versioned kegs creates a KEGv1 keg, andtapreports that the keg exists as KEGv1 rather than succeeding. A keg's version never changes after creation. Keg listings,tap keg info, and orientation label KEGv2 kegs, and an operation a keg's version does not offer fails withKEG_VERSION_UNSUPPORTED.tap info- show the hub and signed-in user, the default keg, the active flight, and the kegs that flight covers.tap url [REF]- print the hub web link for the current keg, a node (42,@namespace/keg/42,keg:~alias/42), a keg, a flight (+slug), or a namespace (@namespace).--openalso opens it in the browser and--jsonadds the kind and canonical reference. MCP'surltool returns the same link.tap keg list- list your kegs on a hub. The list is complete; search is only for the public directory.tap explore kegs|flights|people QUERY- search the hub's public directory. A match grants no access.tap keg grant|grants|revoke- manage per-keg access.tap keg visibility public|private- set keg visibility.tap keg rename @namespace/old new- rename a keg alias in its namespace.tap namespace create|list|members|add-member|set-role|remove-member- manage namespaces and membership. Member management requires the owner role.tap invitation list|accept|decline|revoke- review invitations to namespaces and kegs; access starts only when accepted.tap hub list|status|add|remove|set-default- manage hub connections.
Safety And Operations
tap snapshot create NODE_ID -m "message"- capture a node revision.tap snapshot list NODE_ID- list node revisions.tap snapshot restore NODE_ID REV --yes- restore a revision.tap archive export -o out.keg.tar.gz- export a keg archive.tap archive import out.keg.tar.gz- import a keg archive.tap keg check- check keg health.tap index rebuild- rebuild indexes.