Skip to content

Use casesEnd-to-end agent

Start it with an event. Let it finish the job.

A webhook or a schedule starts the agent. It works in a sandbox, waits for a person only where you said it must, and reports where your team already talks.

Work that runs without someone driving each step.

The build

From a failed job to a fixed one, with no one driving

  1. Scaffold the agent

    One command makes a project folder: the agent's file, its instructions and a place for your own code.

    Terminal
    $ evs init import-doctor
    Created agent project import-doctor/
    
      import-doctor/agent.yaml        agent config (model, tools, triggers)
      import-doctor/instructions.md   system prompt
      import-doctor/src/              project code executed in the agent sandbox
      import-doctor/skills/           markdown playbooks, loaded on demand
      import-doctor/subagents/        optional nested agent projects
    
    Next: cd import-doctor && evs deploy
  2. Say what it may do, and what starts it

    The rerun is a function from your own code. The triggers sit in the same file: a webhook for a failure, and a nightly check.

    import-doctor/agent.yaml
    name: "import-doctor"
    description: Finds why the nightly import failed and reruns it
    model: claude-sonnet-5
    instructions: ./instructions.md
    
    tools:
      - sandbox_shell
    
    functions:
      rerun_import:
        file: ./src/rerun.py
        export: rerun_import
        description: Rerun the nightly import, skipping the rows given
        parameters:
          type: object
          properties:
            skip:
              type: array
    
    triggers:
      - name: import-failed
        type: webhook
      - name: nightly-check
        type: cron
        schedule: 0 2 * * *
        timezone: Europe/London
  3. Deploy, and get the webhook's address

    Deploying creates the triggers and prints the address to call, with a secret that is shown once.

    Terminal
    $ evs deploy
      trigger import-failed         -> created (webhook)
        webhook URL:    https://<your-instance>/v1/triggers/webhook/...
        webhook secret: ... (shown once)
      trigger nightly-check         -> created (cron)
    
    Deployed import-doctor. Try it:
      evs agents run import-doctor "hello"
  4. The failure starts it

    Your scheduler calls the webhook when the import fails. No one opens a ticket or a terminal.

  5. It investigates in a sandbox

    The agent runs the failing job in isolation and finds the row that broke it. The network stays shut except for the hosts you allow.

  6. It asks before it acts, then reports

    The rerun needs approval, so the request arrives in your team's channel with buttons to approve or deny. The result is posted there too.

Good to know

Before you start

A trigger is a webhook, a cron schedule or another agent finishing its run.

Which tools wait for approval is set on the agent. The project file does not carry it yet.

A channel is bound to the agent in the console. The CLI does not sync channels yet.

Put Everstack in front of your next request

Run it yourself in a few minutes, or start on Everstack Cloud with your own provider keys.

Star on GitHubOpen source under Apache 2.0. A star helps others find it.