How-to Guides¶
Task-oriented recipes for building, integrating, and operating Stargraph.
Each guide assumes you already have Stargraph installed (pip install
stargraph) and have read the Plugin Model and
IR Concepts.
Authoring¶
Build the things that run inside Stargraph.
- Build a skill — instantiate
Skill(...), declarestate_schema, and register via theregister_skillshook. - Write a tool plugin — package a
@tool-decorated callable as a discoverable distribution. - Build an agent — compose a Skill, tools, and a graph into the canonical ReAct-style loop with HITL and memory hooks.
- Author a stargraph.yaml graph — write an IR document end-to-end and run it.
- Author a Bosun pack — bundle CLIPS rules, sign, and
distribute as a
stargraph.packsplugin. - Add a Fathom / Bosun rule pack — wire a packaged
rule pack into a graph's
governanceblock.
Integrations¶
Wire Stargraph to the outside world.
- Add an MCP server — bind a stdio MCP server's tools and gate them through capability + schema + sanitization.
- Add a Nautilus broker source — wire a
broker request as a
BrokerNodein a graph. - Add a store provider — implement one of the five Store Protocols (Vector, Graph, Doc, Memory, Fact).
- Add a custom trigger — register a Trigger plugin
that emits
TriggerEventrows into the scheduler.
Operations¶
Run, replay, and persist.
- Persist with a checkpointer — implement the
CheckpointerProtocol or pick one of the bundled drivers (SQLiteCheckpointer,PostgresCheckpointer).
See also¶
- CLI Reference — every
stargraphsubcommand. - IR Schema — the wire shape of every field referenced below.
- Plugin Manifest — the
stargraph_plugin()factory contract. - Hookspecs — pluggy hook surface.