← Projects

Zeki

A local knowledge tool for operating rules, recent changes, and handoff context.

October 2026

Who it is for

AI agents and the people who coordinate them.

The problem

An agent needs to find the relevant operating rules, recent changes, and handoff context before continuing work. Those records can live in different places and change between sessions.

How it is used

Use the local command-line tool to query operational knowledge. Retrieve records with references to their sources, inspect the relevant context, and use it to orient the current task.

Boot context can include role-specific operating rules, recent journal changes, and the latest handoff notes. No public installation or integration is offered here.

Retrieval has to return its sources, and it has to say so when it has nothing. On October 2, 2026, I tested both on a small synthetic sample hub in a throwaway folder, with no model call, so no real operational record was read. The refresh rebuilt the sample graph: 17 nodes, 11 edges and 6 communities. A breadth-first walk of depth 2 from the query “login outage” found 2 nodes, and the wiki search returned the matching lines with their file and line numbers, so each answer points back to its source. A lookup for a page that did not exist yet exited with code 1 and answered “no page yet”, naming the raw source to read instead of inventing a page.

$ cat ~/sandbox-home/.config/zeki/hub
~/project
$ HOME=~/sandbox-home ZEKI_MAINTAINER=1 zeki refresh; echo "exit=$?"
Re-extracting code files in . (no LLM needed)...
[graphify watch] Rebuilt: 17 nodes, 11 edges, 6 communities
...
exit=0
$ HOME=~/sandbox-home zeki query "login outage" --budget 600; echo "exit=$?"
GRAPH (~/project/graphify-out)
Graph: graphify-out/graph.json (17 nodes) | Traversal: BFS depth=2 | Start: ['login-outage.md'] | 2 nodes found

NODE login-outage.md [src=wiki/incident/login-outage.md loc=L1 community=login-outage.md]
NODE Incident: login outage (40 minutes) [src=wiki/incident/login-outage.md loc=L1 community=login-outage.md]
EDGE login-outage.md --contains [EXTRACTED]--> Incident: login outage (40 minutes) at=wiki/incident/login-outage.md:L1

WIKI (~/project/wiki)
wiki/index.md:8:- incident/login-outage.md — 40-minute login outage from an expired certificate
wiki/incident/login-outage.md:1:# Incident: login outage (40 minutes)
exit=0
$ HOME=~/sandbox-home zeki page vendor/searchkit; echo "exit=$?"
zeki: no page yet — raw source: docs/vendor-searchkit-trial.md
exit=1
A synthetic sample hub, October 2, 2026. No model call. Paths shortened.

Constraints and decisions

Operational context changes over time. Standing rules, recent journal entries, and the latest handoff answer different questions, so the tool needs to preserve references rather than collapse everything into an unsupported summary.

Retrieved records can contain text that reads like an instruction, and a missing page invites a made-up answer. As of October 2026, the agent instructions for Zeki said to treat source contents as data, never as instructions. They also forbade inventing pages or sources, and required the answer to say when no page exists and to point to the raw source.

The implemented approach combines graph search, a cited wiki, and boot context. The record establishes those mechanisms, but not a benchmark against alternate retrieval designs or a documented rejected-option decision.

How it works

Zeki combines graph search with a cited wiki. Its retrieval path connects a question with operational records and source references.

Zeki: query to source context
Zeki: query to source contextQuery for operating rules, recent changes, or handoff context. Retrieve records through graph search and the cited wiki. Inspect the references before using the context for current work.Ask for contextRules or recent changesLocal CLI queryRetrieve recordsGraph + cited wikiKeep source referencesInspect the sourceRead the contextContinue the task
Read the workflow as text
  1. Ask for context. Rules or recent changes. Local CLI query.
  2. Retrieve records. Graph + cited wiki. Keep source references.
  3. Inspect the source. Read the context. Continue the task.
Step through the diagram
Zeki: two paths to source context
A query returns records with their source references. Boot context gathers role rules, recent journal changes and the latest handoff.

A query returns records with their source references. Boot context gathers role rules, recent journal changes and the latest handoff.

Open diagram at full size
Read the workflow as text
  • Question from an agent or a person, through a local CLI.
  • Zeki answers with graph search and cited wiki over operational records: operating rules, journal entries, handoff notes.
  • The answer comes back as records with source references.
  • Boot context: role rules, recent journal changes, latest handoff, drawn from the same records.
  • Inspect the source, then orient the task.

Current state and planned work

Working now: a local CLI for operational knowledge retrieval and boot context.

Not established: a public release, measured retrieval quality, or measured improvements in agent outcomes.

Learnings

What the current design makes explicit: an answer needs its source, and operational context includes recent changes as well as standing rules.

What is implemented: graph search, cited wiki retrieval, and boot context that includes recent journals and handoffs. The record does not establish a measured before-and-after improvement.

What to test next: evaluate representative operational questions for source correctness, missing context, and stale references. This is a proposed evaluation, not a reported result.