Prerequisites
Complete the Quick Start so you have a workingfabro binary and at least one LLM API key configured.
1. One-shot prompt
The simplest possible workflow has one node that sends a prompt to an LLM and exits.hello.fabro
What’s happening
shape=tabmakes this a prompt node — a single LLM call with no tool access. Good for generation, summarization, and classification.reasoning_effort="low"tells the model to think less. This is a simple task that doesn’t need deep reasoning.graph [goal="..."]describes the workflow’s purpose. Fabro uses it in preambles and retrospectives.
start node (shape=Mdiamond) and one exit node (shape=Msquare).
2. Agent with tools
An agent node (the defaultbox shape) runs an LLM in a loop with access to tools — bash, file reading, file editing, grep, and glob. The agent calls tools autonomously until it decides the task is complete.
tool-use.fabro
What’s happening
- No
shapeattribute means the defaultbox— an agent node. - The agent has access to built-in tools:
shell,read_file,write_file,edit_file,grep,glob,web_search, andweb_fetch. - The agent decides which tools to call and when to stop. Fabro handles the tool loop automatically.
Prompt vs. agent nodes
Prompt node (tab) | Agent node (box) | |
|---|---|---|
| LLM calls | Single call | Multi-turn loop |
| Tool access | None | Full toolset |
| Use case | Analysis, generation | Tasks requiring file I/O and commands |
3. Sub-agents
An agent can spawn sub-agents to delegate work. Sub-agents run in their own session and return results to the parent.sub-agent.fabro
What’s happening
- The parent agent uses
spawn_agentto create a child session, thenwaitto collect the result. - Sub-agents have their own tool access and conversation history — they don’t see the parent’s context.
- This pattern is useful for parallelizing research, isolating risky operations, or keeping the parent’s context window lean.
What you’ve learned
- Prompt nodes (
shape=tab) make a single LLM call — no tools - Agent nodes (default
box) run a multi-turn tool loop - Sub-agents let an agent delegate to independent child sessions
- Every workflow needs a
startnode, anexitnode, and agoal
Next
Plan & Implement
Add human gates and revision loops to a multi-step workflow.