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

First-Run MonkeyCode: Free Server, Free Tokens, One 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