Plan and implement a change
Start with the outcome you want. You do not need to choose an execution mechanism before Spark understands the work.
cd <workspace>sparkThen describe the goal in ordinary language:
Fix the login failure without changing the public API. Run the relevant testsand show me the evidence before calling it complete.Five names you will see
Section titled “Five names you will see”| Name | Meaning |
|---|---|
| Workspace | The repository or directory where Spark is working |
| Session | The continuing conversation and its context |
| Task | One verifiable piece of the requested work |
| Run | One execution attempt |
| Artifact | A durable result such as a preview, issue, or pull request |
These five names are enough for the main workflow. Operator details remain available in the CLI reference when you need them.
Create a plan
Section titled “Create a plan”Use /plan when the change needs investigation or more than one meaningful
step:
/plan Fix the login failure. Inspect the current implementation first, createverifiable tasks, and do not implement them yet.Spark investigates the workspace and creates or refines durable tasks. Review the proposed scope, success conditions, dependencies, and validation commands. Adjust them with ordinary language:
Keep the database migration out of scope. Add a browser regression test to thesuccess conditions.Implement the approved plan
Section titled “Implement the approved plan”When the plan is ready:
/implement Execute the approved plan and stop if a required decision ismissing.Spark works through ready tasks until the plan completes, validation fails, or
it needs your input. When a material choice cannot be made safely, answer the
question in the current session or open /inbox.
Inspect the result
Section titled “Inspect the result”The current session shows the implementation summary and validation results. For a wider view, start Cockpit:
spark cockpitOpen the same Workspace and Session, then inspect:
- Summary for the current outcome and remaining work,
- Tasks for plan progress and blockers,
- Changes for structured changes supplied by the runtime,
- Artifacts for previews, issues, or pull requests actually produced by the run.
An empty Changes or Artifacts section means that the runtime did not publish that result; Cockpit does not infer it from chat text.
Choose another execution style only when needed
Section titled “Choose another execution style only when needed”- Use
spark runfor one foreground result. - Use
spark bgwhen the shell should return immediately. - Use automation for a durable goal, repeated work, evidence-gated reproduction, or a saved workflow.