All workflows

Software Engineering Agent Work Plan

Code task and software engineering agent hour of work: a deterministic six-phase execution plan with risk flags, acceptance criteria and stop conditions.

1 credit per call · $0.003 USDC with x402

Sample input

{
  "task": "Add pagination to an API endpoint",
  "acceptance_criteria": [
    "Existing clients remain compatible"
  ]
}

Worked sample output

{
  "ok": true,
  "mode": "agent_work_plan",
  "task_sha256": "2c1741966c3787ebf2da9c71230ea8c48a94aa243b5764ff66afe32363136b70",
  "risk_flags": [],
  "acceptance_criteria": [
    "Existing clients remain compatible"
  ],
  "constraints": [],
  "phases": [
    {
      "id": "understand",
      "goal": "Confirm task boundaries, inputs, expected output and acceptance criteria."
    },
    {
      "id": "inspect",
      "goal": "Locate the smallest relevant code/data surface and existing tests or contracts."
    },
    {
      "id": "change",
      "goal": "Implement the minimum scoped change without unrelated modifications."
    },
    {
      "id": "test",
      "goal": "Run focused validation for the changed behavior and likely regressions."
    },
    {
      "id": "verify",
      "goal": "Compare the result against every acceptance criterion and constraint."
    },
    {
      "id": "deliver",
      "goal": "Return evidence, changed artifacts and any unresolved blocker."
    }
  ],
  "stop_conditions": [
    "missing_required_access",
    "acceptance_criteria_conflict",
    "unsafe_or_irreversible_action_without_authorization"
  ]
}

Worked example using published sample data only. Own-data execution is paid.

Connect in curl

Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.

curl 'https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/agent-work-plan' \
  -H "Authorization: Bearer $BOUNTY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: workflow-request-001' \
  -H 'X-Max-Credits: 1' \
  --data '{"task":"Add pagination to an API endpoint","acceptance_criteria":["Existing clients remain compatible"]}'

Connect in n8n

Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.

Use an HTTP POST to https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/agent-work-plan. Send JSON and these headers; store the Bearer token as a private credential.

{
  "method": "POST",
  "headers": {
    "Authorization": "Bearer YOUR_PRIVATE_API_KEY",
    "Content-Type": "application/json",
    "Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
    "X-Max-Credits": "1"
  },
  "body": {
    "task": "Add pagination to an API endpoint",
    "acceptance_criteria": [
      "Existing clients remain compatible"
    ]
  }
}

Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe