feat: add --claude, --codex, --auto flags for AI agent automation#115
Merged
skulidropek merged 2 commits intoProverCoderAI:mainfrom Mar 7, 2026
Merged
Conversation
- --force → SSH в контейнер (shell) - --force --claude → SSH в контейнер с запуском claude интерактивно - --force --claude --auto → claude работает автономно, контейнер удаляется после завершения Пример pnpm run docker-git clone https://github.com/agiens/crm/issues/123 --force --claude --auto Результат - автовыпонение задачи issues/123 - описание результата выполнения в карточке issues/123 + перенос карточки в столбец In review - создание PR - контейнер удаляется после завершения
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Добавлена поддержка AI-агентов (Claude, Codex) с тремя режимами работы через CLI-флаги.
Новые флаги
--claude--codex--auto--claudeили--codex)Режимы работы
Пример использования
Результат:
Что изменено
parser-options.ts): добавлены--claude,--codex,--autoфлагиdomain.ts): новый типAgentMode = "claude" | "codex", расширенTemplateConfigcommand-builders.ts): резолвингagentModeиз raw optionsdocker-compose.ts): пробросAGENT_MODE/AGENT_AUTOenv vars в контейнерtasks.ts): логика запуска агента внутри контейнера:claude --dangerously-skip-permissions -pилиcodex --approval-mode full-autodocker-up.ts): pollingagent.done/agent.failedмаркеров, cleanup контейнера после--autoerrors.ts,program.ts): новыйAgentFailedErrorс pattern matchingАрхитектура
Следует принципу Functional Core, Imperative Shell: вся логика резолвинга опций — чистые функции, эффекты (docker, SSH, polling) изолированы в shell-слое через Effect-TS.
Test plan
pnpm run docker-git clone <repo> --force— SSH в контейнер (без агента)pnpm run docker-git clone <repo> --force --claude— SSH + интерактивный Claudepnpm run docker-git clone <repo>/issues/123 --force --claude --auto— полный автономный циклpnpm run docker-git clone <repo> --force --codex --auto— то же для Codex--autoбез--claude/--codexне запускает агента--autoзавершения🤖 Generated with Claude Code