Install
openclaw plugins install openclaw-goal-command@latestPersistent closed-loop /goal command for OpenClaw: creates run files and forces execution to DONE, BLOCKED, or FAILED.
openclaw plugins install openclaw-goal-command@latestTurn /goal into a persistent execution loop instead of a planning prompt.
Goal Command is an OpenClaw plugin that adds a closed-loop /goal command. It creates a durable run directory, injects execution guidance into the next agent turn, and forces the run toward exactly one terminal state: DONE, BLOCKED, or FAILED.
Normal agent chats often stop at:
That is not enough for objective work. Goal Command makes the run state explicit and persistent so the agent must execute, validate, and close the loop.
When you run:
/goal fix the broken checkout test and validate it passes
The plugin creates:
goals/runs/<timestamp-slug>/
├── goal.md
├── status.md
├── feature_spec.md
├── plan.md
├── validation.md
└── decision_log.md
For concrete goals it sets:
state: EXECUTION_READY
nextAction: execute-now
The injected prompt then tells the agent:
EXECUTION_READY means execute now, not explainDONE, BLOCKED, or FAILEDDONE/goal <objective>
/goal status [runId]
/goal resume [runId]
/goal sync [runId]
/goal cancel is currently reserved for a future version.
The plugin classifies vague goals as NEEDS_SPEC and starts a short spec-coach flow first.
Examples:
/goal improve my app
→ asks blocking spec questions first.
/goal update the landing page headline and verify build passes
→ starts execution mode.
By default, synced notes go under:
<agent-workspace>/OpenClaw
Optional config:
{
"goalCommand": {
"obsidianRoot": "OpenClaw"
}
}
obsidianRoot may be workspace-relative or an absolute path.
/goal sync writes markdown project/goal notes under the configured Obsidian root.DONE requires validation evidence; effort alone is not completion.by brasco05 · built for OpenClaw closed-loop execution