Skip to content

Runs and sessions

spark run waits for the headless run and prints its result:

Terminal window
spark run "Review the current diff."
spark run --json "Return a machine-readable repository summary."

Resume a known session when continuity matters:

Terminal window
spark run --resume <session-id> "Continue with the next verified step."

spark bg submits a daemon invocation and returns its receipt. Without an explicit session, Spark creates an invocation session identifier:

Terminal window
spark bg --json "Run the repository validation and report failures."

Submit more work to an existing session:

Terminal window
spark bg --session <session-id> "Re-run only the failing check."

Inspect the invocation through daemon commands instead of starting another executor:

Terminal window
spark daemon invocation status <invocation-id> --json
spark daemon invocation stream <invocation-id> --after <cursor> --limit 500 --json
spark daemon invocation cancel <invocation-id> --reason "No longer needed" --json

List daemon sessions and attach from the same workspace:

Terminal window
spark daemon session list --json
spark tui --session-id <session-id>

Session identity preserves conversation and execution continuity. It does not override workspace binding or permission checks.

  • Use spark run for one foreground result.
  • Use spark bg when the shell should return after durable submission.
  • Use spark or spark tui for interactive exploration and steering.
  • Use Cockpit to observe and control existing daemon work from the browser.