Getting Started
Knot's user interface is your AI agent. You don't type Knot commands — you ask your agent to do things, and it uses Knot's skills to do them. Your role is to watch: files appear in your IDE's tree, commits appear in your git viewer, and your agent reports what happened.
If you're here to find out why this exists, read Motivation first — the short version is that Knot turns slow local AI inference into steady overnight productivity.
This guide takes you through one complete journey: six steps, from an empty project to a rig that greets people by name, runs unattended, and draws itself. Each step is a sentence you can paste to your agent.
Before you start
Tell your agent what you have and ask it to check the rest. It needs:
- A fresh project directory with git initialised — your rig will live alongside your code.
- The Rust toolchain on this machine (Knot is a Rust binary).
- An AI agent CLI — Knot has built-in integration for the
piCLI and adapts to it out of the box. - A working model provider configured in that CLI — local models are exactly what Knot is for.
Step 1: Set up Knot from the repository
"Clone the Knot repository from
https://github.com/HaydenDekker/knotand set it up: build and install theknotbinary and install the Knot skills so you can use them."
There is no install skill and no install doc to read — the repository
is self-documenting for agents. Your agent clones it, reads the
repository's own AGENTS.md, and follows its build, install, and
skill-deployment instructions (including verifying every skill copy
landed correctly).
What you see: the knot binary becomes available on PATH, and
the Knot skills appear in the agent's skills directories — the knot
master router where skills are auto-discovered, and the knot-*
sub-skills in the skills library. Your agent reports which skills
verified OK.
Step 2: Initialise the rig
"Initialise a knot rig in this project."
Your agent runs the knot-init skill. It creates the rig/
directory, and if no profiles exist yet it discovers the models
configured in your agent CLI and creates a default profile that
references one.
What you see: rig/ and rig/profiles/ appear in your file tree
with the default profile inside. Your agent reads
tie-offs/<rig>/state.json and reports the rig's current state. The
skill is idempotent — running it again just reports the state.
Step 3: Create your first workflow — Hello Knot
"Create a loom called
hello-loomwith a knot calledhello. The knot reads a file that names a person and writes a short, friendly greeting for them. The inputs are files in thegreeting/directory."
Your agent runs the knot-create skill (guided by knot-design
for naming and structure). That's the whole workflow definition —
plain markdown in your rig, versioned and diffable from the moment it
exists.
What you see: rig/hello-loom/hello.md appears in your file tree.
Open it: a knot file is wiring only — identity, which profile runs it,
and which directory it watches.
Step 4: Start Knot
"Start knot."
Your agent runs the knot-start skill: it launches the Knot
service in the background with its output appended to
tie-offs/<rig>/knot-service.log (the durable record across restarts),
records the PID, and verifies the service came up.
What you see: tie-offs/rig/state.json appears, listing
hello-loom and your profile. The service log starts accumulating
[KNOT][STATE] and [KNOT][EVENT] lines.
Step 5: Trigger it
"Create
greeting/alice.mdcontaining the name Alice to trigger the hello knot, and watch it process."
Your agent runs the knot-dispatch skill — creating or touching a
file in the strand directory is the trigger. Any text file works as a
strand.
What you see — the two moments that make Knot Knot:
- The tie-off appears. The service log shows the knot processing
the strand;
tie-offs/rig/hello-loom/tie-off-hello.mdappears containing Alice's greeting — the append-only story of this knot's work. - A git commit appears in your project's git viewer with the result. (Per-knot opt-out exists via the knot's frontmatter.)
From here the overnight pattern is real: queue up strands, walk away, and find committed, reviewable results when you return.
Step 6: See the whole rig
"Visualise the rig and save the graph to
project/rig-graph.html."
Your agent runs the knot-visualise skill and hands you a
self-contained HTML file. Open it in a browser: your knots as nodes,
their strand and event connections as edges — with optional activity
overlays (events delivered and minutes spent per knot) from the
service log.
That's the complete loop: set up → init → create → start → dispatch → visualise. Everything else is more of the same, asked in different words.
Daily operation
Once the rig is running, just ask. The knot master skill routes your
agent to the right sub-skill: inspect state (knot-inspect), review
the rig's work and communication quality (knot-manage), assess
productivity and blockers (knot-analyst), design new looms and knots
(knot-design), lint the rig's documents for consistency
(knot-lint), customise the instruction documents injected into agent
prompts (knot-template), and migrate project documents after a Knot
version update (knot-update).
Where to go next
- Motivation — why local inference needs orchestration, and why the workflow lives as files.
- Concepts — the mental model: rig, loom, knot, strand, tie-off, events, and the processing flow.
- Configuration — where the file-format reference actually lives (spoiler: it's in the skills).
- Workflows — review and file-generation patterns as agent journeys.
- Troubleshooting — when something doesn't appear.