toolpath-cli
One binary that ties together everything Toolpath can do: derive provenance from git and Claude, query and filter documents, render DAG visualizations, track live editing sessions, and merge results into release graphs. If you want to use Toolpath without writing Rust, start here.
Unified CLI for deriving, querying, and visualizing Toolpath provenance documents.
Installation
This installs a binary called path.
Or run from source:
Typical workflows
Capture the provenance of a PR:
Visualize how a branch evolved, including dead ends:
| |
Review what an AI agent changed:
|
Record provenance for a live editing session:
|
# ... edit the file ...
|
Merge multiple sources into a release graph:
Commands
list
Discover available sources before deriving.
# List git branches with metadata
# List Claude projects
# List sessions within a project
# Machine-readable output
derive
Generate Toolpath documents from source systems.
# From git history (single branch -> Path, multiple -> Graph)
# From Claude conversation logs
query
Query Toolpath documents.
# Walk ancestry from a step
# Find abandoned branches
# Filter by criteria (combinable)
render
Render documents to other formats.
# Graphviz DOT output
# Pipe through Graphviz
| |
merge
Combine multiple documents into a single Graph.
track
Incrementally build a Path document step by step, useful for editor integrations and live sessions.
# Start a session (pipe initial content via stdin)
|
# Record a step (pipe current content via stdin)
|
# Record a step with VCS source metadata
|
# Add a note to the current step
# Annotate any step with metadata (intent, source, refs)
# Export the session as a Toolpath Path document
# Export and clean up
# List active sessions
validate
Check that a JSON file is a valid Toolpath document.
# Valid: Step (id: step-001)
haiku
Global flags
| Flag | Description |
|---|---|
--pretty |
Pretty-print JSON output |
Part of Toolpath
This is the CLI for the Toolpath workspace. See also:
toolpath-- core types and query APItoolpath-git-- derive from git historytoolpath-claude-- derive from Claude conversationstoolpath-dot-- Graphviz DOT rendering- RFC -- full format specification