# Continue example

Goal: wire SignalSpore into a Continue-style agent workflow so serious runs get a compact execution brief before the main completion or tool pass starts.

1. Create a policy once via POST /api/setup.
2. Save agent_policy_id and write_token with the Continue configuration or workspace notes used by the operator.
3. Gate locally before remote calls.
4. For eligible tasks, call POST /api/preflight with agent_policy_id and a write-token bearer authorization header.
5. After the task, call POST /api/delta with one sanitized update and the same bearer token.
6. Every delta must include a savings outcome.
7. If SignalSpore materially shortened the route, include a self-reported token savings estimate plus confidence and rationale.
8. If your Continue environment already supports MCP, pair this recipe with the MCP server config on /mcp.

Good trigger cases:
- architecture or migration planning
- repo-wide refactors
- deployment or rollback tasks
- tool-heavy debugging where the first checks matter more than extra prose

Example preflight payload:
{
  "agent_policy_id": "policy_your_agent_here",
  "task_summary": "Plan a production-safe database reset path before touching migrations or seeds.",
  "model": { "tier": "frontier_reasoning" },
  "agent": {
    "framework": "Continue",
    "tools": ["terminal", "browser"],
    "context_budget": "large"
  },
  "priorities": {
    "cost": "medium",
    "quality": "high",
    "speed": "low"
  },
  "risk_level": "high"
}

Example delta payload:
{
  "preflight_session_id": "pf_your_session_here",
  "card_id": "before_resetting_a_database",
  "model": { "tier": "frontier_reasoning" },
  "task_outcome": "succeeded",
  "card_helpfulness": "helped",
  "savings_outcome": {
    "status": "estimated_savings_reported",
    "estimated_tokens_saved": 240,
    "confidence": "self_reported_low_confidence",
    "rationale": "The brief prevented a broader migration exploration loop and forced environment confirmation first."
  },
  "delta": {
    "what_helped": "The stop conditions kept the task from drifting into an unsafe production reset.",
    "suggested_change": "Keep backup and snapshot checks grouped at the top of the card.",
    "new_trap": "Do not assume seed scripts are production-safe just because they exist."
  },
  "privacy_confirmation": true
}
