1010
1111コーディングエージェントがGitHub/GitLabのIssueやPull Request/Merge Requestを処理する際、以下のようなコマンド実行が必要になるケースがあります:
1212
13- - ビルドコマンドの実行(npm build、make、go build等 )
14- - テストコマンドの実行(npm test、pytest、go test等 )
15- - リンターやフォーマッターの実行(eslint、black、gofmt等 )
13+ - ビルドコマンドの実行(npm build、make等 )
14+ - テストコマンドの実行(npm test、pytest等 )
15+ - リンターやフォーマッターの実行(eslint、black等 )
1616- ファイル検索・確認(grep、find、cat等)
1717- その他のプロジェクト固有のスクリプト実行
1818
@@ -63,8 +63,6 @@ flowchart TD
6363 ImgPython[Python イメージ]
6464 ImgMiniforge[Miniforge イメージ]
6565 ImgNode[Node.js イメージ]
66- ImgJava[Java イメージ]
67- ImgGo[Go イメージ]
6866 end
6967 subgraph ExecutionContainer[実行環境コンテナ]
7068 ProjectFiles[プロジェクトファイル]
@@ -201,8 +199,6 @@ coding-agent-exec-{task_uuid}
201199| python | coding-agent-executor-python: latest | Python 3.11 + pip + pytest/black/flake8/mypy | 純粋Pythonプロジェクト、Webフレームワーク |
202200| miniforge | coding-agent-executor-miniforge: latest | conda/mamba + Python + データサイエンスツール | 科学計算、ML/AI、condaenv.yaml使用プロジェクト |
203201| node | coding-agent-executor-node: latest | Node.js 20 + npm/yarn/pnpm + TypeScript/ESLint | フロントエンド、Node.jsバックエンド |
204- | java | coding-agent-executor-java: latest | Java 21 + Maven + Gradle | Spring Boot、Java/Kotlinプロジェクト |
205- | go | coding-agent-executor-go: latest | Go 1.22 + golangci-lint | Goプロジェクト、CLIツール |
206202
207203** 環境選択の判断基準:**
208204- プロジェクトルートの依存関係ファイル(package.json, requirements.txt等)
@@ -367,8 +363,6 @@ flowchart TD
367363- package.json: ` npm install ` または ` yarn install `
368364- requirements.txt: ` pip install -r requirements.txt `
369365- condaenv.yaml / environment.yml: ` mamba env create -f <環境ファイル> ` (miniforge/mambaforge使用)
370- - go.mod: ` go mod download `
371- - pom.xml: ` mvn dependency:resolve `
372366- Gemfile: ` bundle install `
373367
374368** Conda環境について:**
@@ -467,10 +461,7 @@ sequenceDiagram
467461| mamba | 高速Condaパッケージマネージャー | ` mamba install ` , ` mamba env create -f environment.yml ` |
468462| python | Pythonインタープリター | ` python setup.py ` , ` python -m pytest ` |
469463| python3 | Python3インタープリター | ` python3 -m venv ` , ` python3 script.py ` |
470- | go | Go言語ツールチェーン | ` go build ` , ` go test ` , ` go mod download ` |
471464| cargo | Rustパッケージマネージャー | ` cargo build ` , ` cargo test ` |
472- | maven / mvn | Javaビルドツール | ` mvn install ` , ` mvn test ` |
473- | gradle | Javaビルドツール | ` gradle build ` , ` gradle test ` |
474465| make | ビルド自動化ツール | ` make ` , ` make install ` , ` make test ` |
475466| cmake | ビルドシステムジェネレーター | ` cmake . ` , ` cmake --build . ` |
476467| bundle | Rubyパッケージマネージャー | ` bundle install ` , ` bundle exec ` |
@@ -487,7 +478,6 @@ sequenceDiagram
487478| mocha | JavaScriptテストフレームワーク | ` mocha ` , ` mocha tests/ ` |
488479| rspec | Rubyテストフレームワーク | ` rspec ` , ` rspec spec/ ` |
489480| phpunit | PHPテストフレームワーク | ` phpunit ` , ` phpunit tests/ ` |
490- | go test | Goテストコマンド | ` go test ./... ` , ` go test -v ` |
491481| cargo test | Rustテストコマンド | ` cargo test ` , ` cargo test --all ` |
492482| dotnet test | .NETテストコマンド | ` dotnet test ` |
493483
@@ -502,8 +492,6 @@ sequenceDiagram
502492| pylint | Pythonリンター | ` pylint src/ ` |
503493| mypy | Python型チェッカー | ` mypy src/ ` |
504494| rubocop | Rubyリンター | ` rubocop ` , ` rubocop -a ` |
505- | gofmt | Goフォーマッター | ` gofmt -w . ` |
506- | golint | Goリンター | ` golint ./... ` |
507495| rustfmt | Rustフォーマッター | ` rustfmt --check . ` |
508496| clippy | Rustリンター | ` cargo clippy ` |
509497| tsc | TypeScriptコンパイラ | ` tsc --noEmit ` , ` tsc ` |
@@ -657,7 +645,7 @@ The following commands are available for execution:
657645
658646**Test Execution:**
659647- Run the project's test suite to verify code changes work correctly
660- - Examples : ` npm test` , `pytest`, `go test ./...`, ` cargo test`
648+ - Examples : ` npm test` , `pytest`, `cargo test`
661649
662650**Code Search:**
663651- Use `grep` command to recursively search for code patterns across the entire project
@@ -666,7 +654,7 @@ The following commands are available for execution:
666654
667655**Build/Compile:**
668656- Execute project build commands to check for compilation errors
669- - Examples : ` npm run build` , `make`, `go build`, ` cargo build`
657+ - Examples : ` npm run build` , `make`, `cargo build`
670658
671659**Linter/Formatter:**
672660- Perform code quality checks and format verification
@@ -696,18 +684,18 @@ The following commands are available for execution:
696684システムプロンプト内の ` {allowed_commands_list}` プレースホルダーは、セクション6.3で定義された許可コマンドリストの内容で動的に置き換えられます。
697685
698686**置き換え内容:**
699- - ビルド・パッケージ管理コマンド(npm, yarn, pip, conda, mamba, go, cargo等)
700- - テスト実行コマンド(pytest, jest, go test等 )
687+ - ビルド・パッケージ管理コマンド(npm, yarn, pip, conda, mamba, cargo等)
688+ - テスト実行コマンド(pytest, jest等 )
701689- リンター・フォーマッターコマンド(eslint, black, flake8等)
702690- ファイル操作・検索コマンド(grep, find, ls, cat等)
703691- バージョン管理コマンド(git status, git diff等)
704692- その他ユーティリティコマンド
705693
706694**生成形式例:**
707695```
708- Build/Package Management: npm, yarn, pnpm, pip, pip3, conda, mamba, python, python3, go, cargo, maven, gradle , make, cmake, bundle, gem, composer, dotnet
709- Test Execution: pytest, jest, mocha, rspec, phpunit, go test, cargo test, dotnet test
710- Linter/Formatter: eslint, prettier, black, flake8, pylint, mypy, rubocop, gofmt, golint, rustfmt, clippy, tsc
696+ Build/Package Management: npm, yarn, pnpm, pip, pip3, conda, mamba, python, python3, cargo, make, cmake, bundle, gem, composer, dotnet
697+ Test Execution: pytest, jest, mocha, rspec, phpunit, cargo test, dotnet test
698+ Linter/Formatter: eslint, prettier, black, flake8, pylint, mypy, rubocop, rustfmt, clippy, tsc
711699File Operations: ls, cat, head, tail, grep, find, wc, diff, tree, file, stat
712700Version Control: git status, git diff, git log, git branch, git show, git blame
713701Utilities: echo, pwd, cd, mkdir, rm, cp, mv, touch, chmod, env, which, curl, wget, tar, unzip, jq, sed, awk, sort, uniq, xargs
0 commit comments