Your agent handles most debugging
When a workflow fails, your agent receives detailed information about what went wrong:- What failed - Which node, what error category
- What’s available - The fields that DO exist (not just what’s missing)
- Suggestions - “Did you mean?” recommendations
- Execution state - Which nodes succeeded before the failure
What your agent sees
When a workflow fails, errors include the data needed for self-correction:msg doesn’t exist, but result.messages does. It fixes the template and retries. No human intervention needed.
Trace files
pflow automatically saves detailed execution traces:- Location:
~/.pflow/debug/workflow-trace-*.json - When: Every workflow run (success or failure)
- Content: Per-node timing, inputs, outputs, errors
Trace file inspection requires local filesystem access. This works with Claude Code, Cursor, and similar tools that can read files on your machine. Desktop apps like Claude Desktop or ChatGPT Desktop don’t have filesystem access by default - you’d need to configure an MCP server that provides file reading capabilities.
What only you can fix
Some things require human action. Your agent will tell you when these come up:API key not configured
If pflow’s discovery features aren’t working:MCP server issues
If your agent reports MCP tools aren’t available:Disk cleanup
Trace files accumulate over time. pflow doesn’t auto-delete them. If disk space becomes an issue:pflow also has experimental features like a built-in planner and auto-repair. See Experimental features for details.
Summary
| Situation | Who handles it |
|---|---|
| Workflow fails with fixable error | Your agent (self-corrects) |
| Agent needs more context | Your agent (reads trace files) |
| API key missing | You (agent tells you the command) |
| MCP server not connected | You (agent guides you) |
| Disk space from traces | You (manual cleanup) |

