Using MenteE SWE in CI/CD: Headless Mode for Automated Code Fixes
MenteE SWE supports headless mode for CI/CD pipelines. Run tasks without the terminal UI, get structured output, and integrate autonomous code fixes into your workflow.
MenteE SWE is not just a terminal tool — it supports headless mode for scripted and CI/CD workflows. Here is how to integrate it into your pipeline.
Headless mode
mentee --yes --no-tui "fix the failing tests"
The --yes flag auto-approves restricted operations. --no-tui disables the interactive terminal UI and outputs plain text. This is ideal for GitHub Actions, GitLab CI, or any scripted environment.
Example: GitHub Actions
- name: Auto-fix lint issues
run: |
npx @menteeai/menteeswe --yes --no-tui "fix all ESLint errors in src/"
MenteE SWE will explore the codebase, identify the lint errors, apply fixes, run your linter to verify, and report what changed — all without human intervention.
Safety in automation
Even in headless mode, the safety model applies. Dangerous commands are blocked. Deletion is never automatic. The agent is scoped to your workspace. In CI, this means it can fix code but cannot push — you review and merge.
Provider configuration for CI
Set your API key as a CI secret: MENTEE_ZAI_API_KEY: ${{ secrets.MENTEE_ZAI_API_KEY }}. The agent reads it from the environment — no config file needed in CI.
Learn more
Full CLI reference and provider setup at /products/swe. Package: @menteeai/menteeswe.
Author · MenteE AI — menteeai.org · syab.tech