Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

First-Run MonkeyCode: Free Server, Free Tokens, One Merge Gate

Описание и применение

Автоматизированный «merge gate» для MonkeyCode, использующий бесплатный сервер и токены, проверяет AI‑генерированные патчи через тестовый набор, прежде чем позволить их слияние.

Задача

Teams need a low-cost way to test AI-generated patches before merging, ensuring they pass tests and do not break the build.

Результат

An automated merge gate that ensures AI-generated patches are tested against the full suite before any merge, keeping the main branch safe while leveraging free AI tokens and server resources.

Рабочий процесс

  • Provision the free server with monkeycode server start --free-tier and wait for health ok status.
  • Set MONKEYCODE_SERVER env variable to the server URL.
  • Create monkeycode.json with provider, model, and timeout settings.
  • Write ai-gate.sh script: create worktree, run agent to generate patch, check patch validity, apply patch, run tests, output verdict.
  • Execute ./ai-gate.sh "task description" to get accept or reject verdict.
  • If rejected, capture gate log, extract failure, re-run agent with failure context to generate a new patch, and repeat the gate.
  • Track tokens and time per task to evaluate free tier limits.

Доказательства

The agent never commits. Never pushes. Never merges. The agent only writes a diff.

Источник

The script never commits. It never pushes. It prints one word: accept or reject.

Источник

  • Дата записи: 2026-09-05T17:23:50.544Z