omnigraph-claude-mod

omnigraph-viz is a Claude Code mod that shows, live in your terminal, what an agent does to an Omnigraph graph. Every omnigraph command Claude runs lands in a pane beside the conversation: a browser that follows the agent through the graph, and a feed of every operation.
What you get
- Graph tab (default): a graph browser.
- Breadcrumb: reads as a sentence, e.g.
Epic › Offline editing & sync › contains › ….
- Picture: the selected node in the middle, its neighbours around it as
● label, links as thin dotted lines.
- Finder-style columns: node types → a type's nodes → a node's links grouped by relation → the next hop.
- Following: it follows the agent as it works.
- A read lights its results around the query itself (
◆ query ready · 5).
- A new node flashes in, marked
NEW.
- A new link draws in from its source.
- Feed tab: one line per operation, with counts and timings;
enter shows the command and its output.
- Status line:
◉ og · main · 14 ops · +3n.
- Replay:
/og replay <ledger> plays a recorded session offline, with no Omnigraph needed: a demo that can't fail on stage.
The mod only watches. It never changes the agent's command or what the agent reads back, and a bug in the viz never turns into a tool error.
Requirements
- Claude Code with mods (plugins of function hooks). Built and tested against Claude Code 2.1.291.
- The
omnigraph CLI on your PATH, or its path in the omnigraphBin option. The mod follows both 0.14's --target and the older --store/--server flags.
- A truecolor terminal and a font with braille glyphs (Menlo, SF Mono, JetBrains Mono).
- A wide window (144+ columns) so the pane sits beside the conversation.
Install
In Claude Code:
/plugin marketplace add pronskiy/omnigraph-claude-mod
/plugin install omnigraph-viz@omnigraph-claude-mod
Or run it from a clone:
git clone https://github.com/pronskiy/omnigraph-claude-mod
cd omnigraph-claude-mod
claude --plugin-dir ./omnigraph-viz
Use
Open the pane with /og, then work with Omnigraph as usual: ask Claude to query or change a graph. The mod records operations from the first omnigraph command whether or not the pane is open.
| |
|---|
/og | toggle the pane (it opens with the keyboard) |
/og replay <ledger.jsonl> [speed] | replay a recorded session; 0.5 is half speed, 2 double |
/og stop | end a replay, back to the live session |
/og clear | reset the Feed (the graph stays) |
g / f | Graph / Feed tab |
| click the graph | hand it the keys (once; until then the arrows move between the pane's buttons) |
| ↑ / ↓ | select in the rightmost column |
| → or ⏎ or ⌥↓ | open the selection as a new column |
| ← or ⌫ or ⌥↑ | back one column |
l | follow the agent again |
enter (Feed) | show an operation's command and output; select it to see it in the browser |
esc | keys back to the prompt |
For Finder's ⌘↓ / ⌘↑ in iTerm2, map them to send ⌥↓ / ⌥↑ (Profile → Keys → Key Mappings → Send Escape Sequence [1;3B / [1;3A).
Try it in a minute
From a clone, start Claude Code with the plugin and replay the recorded demo, an agent triaging a bug bash on the dev-graph cookbook:
/og replay demos/dev-graph-triage.jsonl
To run it live with a real agent, see the runbook in docs/demo.md: scripts/setup-demo-graph.sh builds the store, and demos/dev-graph-triage.prompt.txt is the prompt.
Options
| Option | Default | What it does |
|---|
omnigraphBin | omnigraph | Name or absolute path of the CLI. When the bare name isn't on Claude Code's PATH, the mod also asks your login shell and tries the usual install folders. |
maxGhostNodes | 2000 | Largest graph loaded whole; a bigger one keeps its best-connected nodes |
ledgerDir | .omnigraph-viz | Where session ledgers go, relative to the session directory |
enrich | true | Run omnigraph … --json in the background for graph detail (export once, commit changes after writes) |
debug | false | Log viz errors as dim lines in the transcript |
With --plugin-dir, pass options as settings:
claude --plugin-dir ./omnigraph-viz \
--settings '{"pluginConfigs":{"omnigraph-viz":{"options":{"omnigraphBin":"/Users/you/.local/bin/omnigraph"}}}}'
How it works