Skip to content

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.

Terminal window
cd <workspace>
spark

Then describe the goal in ordinary language:

Fix the login failure without changing the public API. Run the relevant tests
and show me the evidence before calling it complete.
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.

Use /plan when the change needs investigation or more than one meaningful step:

/plan Fix the login failure. Inspect the current implementation first, create
verifiable 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 the
success conditions.

When the plan is ready:

/implement Execute the approved plan and stop if a required decision is
missing.

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.

The current session shows the implementation summary and validation results. For a wider view, start Cockpit:

Terminal window
spark cockpit

Open 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 run for one foreground result.
  • Use spark bg when the shell should return immediately.
  • Use automation for a durable goal, repeated work, evidence-gated reproduction, or a saved workflow.