LocalFlow: a local-first Agent Execution Harness with MCP server support for task planning, execution, rollback, and workspace management
LocalFlow exposes 15 tools with complete JSON Schema input definitions and descriptions. Naming follows verb_noun patterns (inspect_workspace, list_skills, create_plan, execute_plan). However, descriptions are inconsistent in depth and actionability. Most lack guidance on when to use each tool vs. alternatives, prerequisites, or recovery paths. Output schemas are not documented, LLMs cannot predict response structure. Error handling is absent from descriptions. Risk annotations (READ_ONLY, WRITE, IRREVERSIBLE) are present in metadata but not surfaced in tool descriptions where LLMs see them. Parameter descriptions are present but often terse (e.g., 'The task ID to read' for read_run). No pagination guidance for list_* tools. Overall: functional but below production baseline for agent-facing tools.
Create a fresh task + run inspect + rule planner + risk check. Returns the task_id so subsequent dry_run / execute / rollback can reference it. LLM planning is NOT supported via MCP (CLI only).
Run the plan through the executor in dry-run mode (no writes). Returns the dry-run markdown report and mints an approval token for execute_plan.
Execute the plan (write actions). Requires an approval_token from a prior dry_run call. The token is one-shot and expires after 10 minutes.
Scan a directory and return WorkspaceSnapshot fields. No writes.
Return summaries of every run in ~/.localflow/runs/. Implemented in the MCP tool (not in RunStore) so the storage layer stays unchanged for Phase 6.1's §10.7 attestation.
List every registered skill (built-in + external from Phase 4.1).
Output schemas not documented. LLMs cannot predict response structure for any tool. Descriptions state what tools return (e.g., 'Returns the dry-run markdown report') but not the field names, types, or nested structure. This forces LLMs to guess at response parsing and risks extraction errors.
Error handling absent from tool descriptions. No guidance on retryability, user-fixable vs. fatal errors, or recovery steps. E.g., execute_plan requires an approval_token that 'expires after 10 minutes', but no description of what error the LLM sees if it's expired or how to recover (call dry_run again).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 55 | <=2025-11-25 | v2 |
List the Phase 4.2 Tool Registry catalog (the shared helpers skills declare in required_tools). NOT the same as MCP tools — these are LocalFlow-internal.
Add a path to the forbidden_paths list (blocks future actions on that path).
Set the naming style preference (e.g., 'snake_case', 'kebab-case', 'PascalCase').
Remove a path from the forbidden_paths list.
Clear the naming style preference.
Read memory audit log entries.
Return the persisted preferences (defaults if no prefs.json yet).
Load the JSON artifacts for one run. Missing pieces simply omitted.
Rollback a completed run using its rollback manifest. Restores the workspace to its pre-execution state.
Risk annotations (READ_ONLY, WRITE, IRREVERSIBLE) present in metadata but not surfaced in tool descriptions. LLMs see only the description text, not the Risk field. Descriptions should explicitly state 'This tool modifies state' or 'This is a read-only operation' so LLMs understand consequences.
List tools lack pagination guidance. list_skills, list_tools_catalog, list_runs have no limit/offset/page parameters and no indication of result count. If a workspace has 1000 runs, list_runs returns all, blowing context window. Descriptions should state 'Returns up to N results' and offer pagination.
Descriptions lack 'when to use' guidance. E.g., list_skills vs. list_tools_catalog, both list things, but the distinction ('skills are registered behaviors; tools are shared helpers') is buried in the description. LLMs cannot disambiguate without explicit guidance like 'Use this to discover available skills before calling create_plan.'