CI integration

Run agents in continuous integration pipelines.

Run Optamus in CI to triage failures, propose fixes, or open pull requests. The CLI’s --yes flag skips interactive permission prompts.

GitHub Actions

name: agent-triage
on: [workflow_dispatch]
jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: curl -fsSL https://optamus.cloud/install.sh | sh
      - run: optamus run --yes --json "Triage the open failing checks"
        env:
          OPTAMUS_API_KEY: ${{ secrets.OPTAMUS_API_KEY }}

Safety

  • Grant the CI key the narrowest scope that works.
  • Prefer read-only workspaces in CI; open a PR from a human-reviewed run.
  • Store the --json output as an artifact for audit.

Cost control

Set a per-run budget to cap tokens:

optamus run --max-tokens 200000 --yes "..."