Skip to content

Commit 4e7c0f1

Browse files
Add agentic workflow layer with composable phases (#4159)
## Summary - Adds the `agentic/` layer with composable workflow phases: plan, build, test, review, document, and ship - Each phase is a standalone script (`uv run agentic/workflows/<phase>.py`) that can run independently or be piped together - Orchestrators chain phases into pipelines (`plan_build.py`, `plan_build_test.py`, ..., `plan_build_test_review_document_ship.py`) - Shared modules (`agent.py`, `state.py`, `template.py`, `orchestrator.py`) handle execution, state persistence, and template rendering - Supports multiple CLI backends (claude, copilot, gemini) with abstracted model tiers (small/medium/large) ## Test plan - [x] All 1012 existing tests pass (`uv run python -m pytest tests/ -x`) - [x] New files compile cleanly (`py_compile`) - [x] No stale references to removed files - [ ] Manual: run `uv run agentic/workflows/ship.py --run-id <id>` to verify commit + PR flow - [ ] Manual: run `uv run agentic/workflows/plan_build_test_review_document_ship.py "<prompt>"` end-to-end 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d3c24c5 commit 4e7c0f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6121
-1251
lines changed

.claude/commands/bug.md

Lines changed: 0 additions & 94 deletions
This file was deleted.

.claude/commands/check.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

.claude/commands/chore.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

.claude/commands/feature.md

Lines changed: 0 additions & 115 deletions
This file was deleted.

.claude/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
"Bash",
77
"WebFetch",
88
"mcp__plugin_serena_serena__*",
9-
"mcp__plugin_context7_context7__*"
9+
"mcp__plugin_context7_context7__*",
10+
"mcp__plugin_playwright_playwright__*"
1011
],
1112
"ask": [
1213
"Bash(git commit *)",
1314
"Bash(git push *)"
1415
],
1516
"deny": []
17+
},
18+
"env": {
19+
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
1620
}
1721
}

.env.example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,24 @@ PORT=8000
4141

4242
# Anthropic API key for Claude
4343
# ANTHROPIC_API_KEY=sk-ant-...
44+
45+
# ============================================================================
46+
# CLI Model Tier Configuration (optional)
47+
# ============================================================================
48+
# Override the default model for each tier per CLI tool.
49+
# Tiers: small (fast/cheap), medium (balanced), large (complex)
50+
51+
# Claude Code models
52+
# CLI_MODEL_CLAUDE_SMALL=haiku
53+
# CLI_MODEL_CLAUDE_MEDIUM=sonnet
54+
# CLI_MODEL_CLAUDE_LARGE=opus
55+
56+
# GitHub Copilot models
57+
# CLI_MODEL_COPILOT_SMALL=gpt-4o-mini
58+
# CLI_MODEL_COPILOT_MEDIUM=gpt-4o
59+
# CLI_MODEL_COPILOT_LARGE=o1
60+
61+
# Gemini CLI models
62+
# CLI_MODEL_GEMINI_SMALL=gemini-2.0-flash
63+
# CLI_MODEL_GEMINI_MEDIUM=gemini-2.0-flash-thinking
64+
# CLI_MODEL_GEMINI_LARGE=gemini-2.5-pro

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
run: |
113113
uv run pytest tests/unit tests/integration tests/e2e \
114114
-v --tb=short \
115-
--cov=core --cov=api --cov=automation \
115+
--cov=core --cov=api --cov=automation --cov=agentic/workflows/modules \
116116
--cov-report=term-missing \
117117
--cov-report=xml
118118
# Tests include:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ nul
227227
# Project-specific
228228
temp/
229229

230+
# Agentic runs output
231+
agentic/runs/
232+
230233
# Additional environment files
231234
.env.local
232235
.env.production

0 commit comments

Comments
 (0)