Skip to content
Mock demo · simulated data

Review a plan

Pick a task. The agent has already written its plan. Decide every step, then run only what you approved.

Request · sample-api

“Add a per-key rate limit to the public endpoints, with a 429 response and a header that says when to retry.”

  1. 01ReadLow risk6 files

    Read the current middleware chain

    List how requests pass through auth, logging and routing so the limiter sits in the right place.

  2. 02EditLow risk2 files

    Add a token-bucket limiter module

    New module with a small in-memory bucket and a pluggable store interface. No new dependencies.

  3. 03EditMedium risk3 files

    Wire the limiter after authentication

    Register the middleware once, keyed by API key, with a default of 60 requests per minute.

  4. 04EditLow risk2 files

    Return 429 with a Retry-After header

    Shape the error response and add the header. Update the API reference page.

    Depends on step 03

  5. 05CommandLow risk

    Run the unit test suite

    Run only the tests for the middleware and the new limiter, then print the summary.

    $ bun test src/middleware

    Depends on step 03

  6. 06DeployHigh risk

    Deploy the change to the shared staging environment

    Roll the new build to staging so the limit can be tried with real traffic patterns.

    $ deploy --env staging --service sample-api

    Depends on step 04

    High-risk steps need a short reason before they can be approved.