agentic-development-framework 0.4.0__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/.gitignore +25 -26
  2. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/CHANGELOG.md +23 -9
  3. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/PKG-INFO +1 -1
  4. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/scripts/release_acceptance.py +12 -2
  5. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/__init__.py +1 -1
  6. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/adapters/generator.py +83 -33
  7. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/cli.py +33 -3
  8. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/core/config.py +12 -0
  9. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/core/initialization.py +176 -10
  10. agentic_development_framework-0.5.0/src/agentic_framework/core/project.py +222 -0
  11. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/core/stages.py +257 -62
  12. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/core/workflow.py +17 -3
  13. agentic_development_framework-0.5.0/src/agentic_framework/templates/skills/agentic-commands/SKILL.md +196 -0
  14. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/acceptance/test_init_cli.py +23 -0
  15. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/integration/test_stage_execution.py +19 -18
  16. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_adapters.py +8 -8
  17. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_config.py +15 -1
  18. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_initialization.py +25 -0
  19. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_project.py +33 -1
  20. agentic_development_framework-0.4.0/src/agentic_framework/core/project.py +0 -93
  21. agentic_development_framework-0.4.0/src/agentic_framework/templates/skills/agentic-commands/SKILL.md +0 -127
  22. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/LICENSE +0 -0
  23. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/README.md +0 -0
  24. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/ACCEPTANCE_REPORT.md +0 -0
  25. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/ANTIGRAVITY_SETUP.md +0 -0
  26. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/APPROVALS_AND_REVISIONS.md +0 -0
  27. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/COMMAND_REFERENCE.md +0 -0
  28. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/IMPLEMENTATION_PLAN.md +0 -0
  29. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/IMPLEMENTATION_PROGRESS.md +0 -0
  30. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/PYPI_RELEASE.md +0 -0
  31. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/REQUIREMENTS_MANAGEMENT.md +0 -0
  32. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/STAGE_EXECUTION.md +0 -0
  33. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/UI_UX_WORKFLOW.md +0 -0
  34. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/docs/WORKFLOW_ARCHITECTURE.md +0 -0
  35. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/pyproject.toml +0 -0
  36. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/scripts/installed_distribution_tests.py +0 -0
  37. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/__main__.py +0 -0
  38. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/adapters/__init__.py +0 -0
  39. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/core/__init__.py +0 -0
  40. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/core/command_registry.py +0 -0
  41. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/core/custom_commands.py +0 -0
  42. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/exceptions.py +0 -0
  43. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/logging.py +0 -0
  44. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/requirements_manager/__init__.py +0 -0
  45. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/requirements_manager/comparison.py +0 -0
  46. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/requirements_manager/extraction.py +0 -0
  47. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/requirements_manager/ingestion.py +0 -0
  48. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/requirements_manager/screenshots.py +0 -0
  49. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/requirements_manager/traceability.py +0 -0
  50. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/state/__init__.py +0 -0
  51. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/state/database.py +0 -0
  52. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/src/agentic_framework/templates/__init__.py +0 -0
  53. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/acceptance/test_commands_cli.py +0 -0
  54. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/acceptance/test_requirements_cli.py +0 -0
  55. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/integration/test_requirements_ingestion.py +0 -0
  56. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/integration/test_workflow_recovery.py +0 -0
  57. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_cli.py +0 -0
  58. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_comparison.py +0 -0
  59. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_custom_commands.py +0 -0
  60. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_extraction.py +0 -0
  61. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_logging.py +0 -0
  62. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_package_resources.py +0 -0
  63. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_screenshots.py +0 -0
  64. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_state.py +0 -0
  65. {agentic_development_framework-0.4.0 → agentic_development_framework-0.5.0}/tests/unit/test_traceability.py +0 -0
@@ -1,26 +1,25 @@
1
- __pycache__/
2
- *.py[cod]
3
- *.egg-info/
4
- .eggs/
5
- .coverage
6
- .coverage.*
7
- coverage.xml
8
- htmlcov/
9
- .pytest_cache/
10
- .ruff_cache/
11
- .mypy_cache/
12
- .venv/
13
- venv/
14
- build/
15
- dist/
16
-
17
- # Local framework runtime data
18
- .agentic/
19
-
20
- # Local secrets and editor metadata
21
- .env
22
- .env.*
23
- !.env.example
24
- .idea/
25
- .vscode/
26
-
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .eggs/
5
+ .coverage
6
+ .coverage.*
7
+ coverage.xml
8
+ htmlcov/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .mypy_cache/
12
+ .venv/
13
+ venv/
14
+ build/
15
+ dist/
16
+
17
+ # Local framework runtime data
18
+ .agentic/
19
+
20
+ # Local secrets and editor metadata
21
+ !.env.example
22
+ .idea/
23
+
24
+ config.bat
25
+ node_modules
@@ -2,21 +2,35 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## Unreleased
5
+ ## 0.5.0 - 2026-11-08
6
+
7
+ ### Added
8
+
9
+ - Interactive `adt init` workflow supporting both new and existing projects with terminal prompts.
10
+ - Existing-project domain detection scanning frontend, backend, database, auth, and CI completion.
11
+ - Session task selection for existing projects: `security_audit`, `bug_hunt`, `specific_issue`, `ui_redesign`, `add_feature`, or `full_workflow`.
12
+ - Automatic existing-project analysis reports generated during initialization: `.agentic/reports/existing-project-analysis.md`, `docs/discovery/existing-project-analysis.md`, and `docs/discovery/work-completion-status.md`.
13
+ - New stages: `existing_project_analysis`, `database_validation`, and `security_testing`.
14
+ - Expanded technology detection covering React, Vue, FastAPI, Flask, Laravel, NestJS, Go, Rust, PHP, Ruby, and Prisma.
15
+
16
+ ### Changed
17
+
18
+ - Completely removed all UI/UX prototype concepts: the workflow directly builds the production frontend using chosen tech stack (React, Vue, etc.).
19
+ - Renamed stages to `frontend_implementation` and `frontend_review` with high-priority design standards: mandatory research into conventional sites similar to the project idea, comprehensive design system (colors, typography, spacing, motion), and zero generic placeholder styling.
20
+ - Richer agent context: expanded responsibilities, step-by-step instructions, and thorough cross-stage input traceability so agents have complete context.
21
+ - Workflow execution order: documentation → frontend implementation & review → backend planning & implementation → integration → database validation → QA & testing → security testing → code review → CI/CD → final documentation → release review.
22
+
23
+ ## 0.4.0 - 2026-11-03
6
24
 
7
25
  ### Changed
8
26
 
9
- - Removed the disposable design-prototype step: the existing UI/UX stage now verifies the frontend
10
- toolchain and builds the complete production frontend before backend work begins.
11
- - Figma links from requirements, recursively discovered screenshots, and generated frontend design
12
- remain supported, with exact-reference, accessibility, interaction, responsive, and state checks.
13
- - Workflow order is now frontend implementation and approval, backend planning and implementation,
14
- then explicit frontend/backend API integration.
27
+ - Removed disposable design-prototype step: the frontend stage verifies the toolchain and builds the complete production frontend before backend work begins.
28
+ - Figma links from requirements, recursively discovered screenshots, and generated frontend design remain supported with exact-reference, accessibility, interaction, responsive, and state checks.
29
+ - Workflow order updated to frontend implementation and approval, backend planning and implementation, then explicit frontend/backend API integration.
15
30
 
16
31
  ### Added
17
32
 
18
- - Structured frontend implementation-manifest validation for environment, production build, actual
19
- registered source files, browser evidence, console errors, accessibility, and reference deviations.
33
+ - Structured frontend implementation-manifest validation for environment, production build, actual registered source files, browser evidence, console errors, accessibility, and reference deviations.
20
34
 
21
35
  ## 0.3.0 - 2026-11-03
22
36
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-development-framework
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: A local-first framework for agentic software development workflows.
5
5
  Project-URL: Homepage, https://github.com/Badsha-ugv/ide-agentic-development-framework
6
6
  Project-URL: Repository, https://github.com/Badsha-ugv/ide-agentic-development-framework
@@ -92,8 +92,8 @@ def _verify_files(root: Path) -> None:
92
92
  registry = yaml.safe_load(
93
93
  (root / ".agentic/agent-registry.yaml").read_text(encoding="utf-8")
94
94
  )
95
- assert len(workflow["stages"]) == 19
96
- assert len(registry["agents"]) == 11
95
+ assert len(workflow["stages"]) == 22
96
+ assert len(registry["agents"]) == 10
97
97
 
98
98
 
99
99
  def _verify_database(root: Path) -> None:
@@ -208,6 +208,16 @@ def run_acceptance(artifact: Path) -> dict[str, object]:
208
208
  assert (root / "requirements/reports/version-001-to-version-002-impact.md").is_file()
209
209
 
210
210
  assert "Status: active" in _run([str(adt), "start"], cwd=root)
211
+ if "existing_project_analysis" in _run([str(adt), "status"], cwd=root):
212
+ for rel in (
213
+ "docs/discovery/existing-project-analysis.md",
214
+ "docs/discovery/work-completion-status.md",
215
+ ):
216
+ out = root / rel
217
+ out.parent.mkdir(parents=True, exist_ok=True)
218
+ out.write_text(f"# {out.stem}\n\nExisting analysis.\n", encoding="utf-8")
219
+ _run([str(adt), "artifact", "register", rel], cwd=root)
220
+ _run([str(adt), "stage", "complete"], cwd=root)
211
221
  assert "project_discovery" in _run([str(adt), "continue"], cwd=root)
212
222
  discovery_outputs = (
213
223
  "docs/discovery/project-overview.md",
@@ -1,6 +1,6 @@
1
1
  """Agentic Development Framework public package metadata."""
2
2
 
3
- __version__ = "0.4.0"
3
+ __version__ = "0.5.0"
4
4
 
5
5
  __all__ = ["__version__"]
6
6
 
@@ -12,7 +12,6 @@ _AGENTS = (
12
12
  ("main_orchestrator", "Main Orchestrator"),
13
13
  ("requirements_analyst", "Requirements Analyst"),
14
14
  ("software_architect", "Software Architect"),
15
- ("ui_ux_designer", "UI/UX Designer"),
16
15
  ("frontend_developer", "Frontend Developer"),
17
16
  ("backend_developer", "Backend Developer"),
18
17
  ("integration_engineer", "Integration Engineer"),
@@ -31,15 +30,26 @@ read the shared command skill and
31
30
  `.agentic/execution-contracts.yaml`; do not merely run a lifecycle command and report its output.
32
31
  The IDE agent performs reasoning and artifact creation while `adt` persists execution, artifacts,
33
32
  validation, approvals, and recovery. Never bypass approval gates or overwrite unrelated changes.
34
- In an existing application, detect and follow its actual architecture, tools, conventions, Git
35
- state, and active ADF artifacts; report discovered defects and conflicts instead of silently
36
- ignoring them. For the frontend stage, inspect actual Figma/screenshot references, verify the
37
- environment, and build the complete production frontend with accessible, responsive, meaningful
38
- interactions. Supplied
39
- references govern presentation and must have no unapproved visual deviation. Do not create a
40
- disposable prototype. Require explicit frontend approval before backend planning or implementation.
41
- Build the backend separately, then connect it through the frontend adapter boundary during the API
42
- integration stage. A custom `/adf` request may refine current-stage work but cannot skip this order.
33
+
34
+ **Existing projects**: Read `docs/discovery/existing-project-analysis.md` and
35
+ `.agentic/reports/existing-project-analysis.md` before proposing any work. Adapt the contract
36
+ to the actual architecture; never impose a guessed folder layout. Detect and follow the real
37
+ tech stack, conventions, Git state, and active ADF artifacts; report discovered defects and
38
+ conflicts instead of silently ignoring them.
39
+
40
+ **Frontend design quality is mandatory**: Before writing any page code, define a complete design
41
+ system (color palette, typography, spacing, motion, breakpoints). Research conventional websites
42
+ and applications similar to the project idea to understand industry design patterns. Build the
43
+ complete production frontend with no disposable prototypes. Supplied references govern presentation
44
+ and must have no unapproved visual deviation. Require explicit frontend approval before backend
45
+ planning or implementation.
46
+
47
+ **Workflow order**: documents → frontend implementation → frontend approval → backend
48
+ implementation → frontend/backend integration → database validation → security testing →
49
+ code review → Docker/CI/CD → final docs → release. Build the backend separately, then connect it
50
+ through the frontend adapter boundary during the API integration stage.
51
+
52
+ A custom `/adf` request may refine current-stage work but cannot skip this order.
43
53
  """
44
54
 
45
55
  _CODEX_NOTE = """# Codex adapter
@@ -87,7 +97,7 @@ def _workflow() -> str:
87
97
  "checkpoint_policy": "on_completion",
88
98
  }
89
99
  )
90
- return _yaml({"schema_version": 4, "name": "default", "stages": stages})
100
+ return _yaml({"schema_version": 5, "name": "default", "stages": stages})
91
101
 
92
102
 
93
103
  def _registry() -> str:
@@ -97,44 +107,40 @@ def _registry() -> str:
97
107
  required_inputs: list[str] = []
98
108
  expected_outputs = ["standardized agent result"]
99
109
  verification = ["run relevant checks"]
100
- if agent_id == "ui_ux_designer":
110
+ if agent_id == "frontend_developer":
101
111
  responsibilities = [
102
- "Analyze visual references and define a production-ready design system",
103
- "Analyze Figma, screenshots, and approved requirements without inventing evidence",
104
- "Support exact visual comparison and intentional revision decisions",
112
+ "Research comparable production websites and apps to inform design decisions",
113
+ "Define a complete design system (colors, typography, spacing, motion) first",
114
+ "Verify the frontend stack and environment before implementation",
115
+ "Build the complete production frontend before any backend implementation",
116
+ "Match approved references exactly; create a modern, distinctive interface "
117
+ "when no external reference exists",
118
+ "Deliver accessible, responsive, meaningful interactions with no generic "
119
+ "placeholder styling",
105
120
  ]
106
121
  required_inputs = [
107
- "approved requirements and architecture",
108
- "screenshot manifest and actual images",
109
- "optional authenticated Figma design context",
122
+ "approved requirements, architecture, and visual references",
123
+ "docs/discovery/existing-project-analysis.md if mode=existing",
110
124
  ]
111
125
  expected_outputs = [
112
- "design system and page inventory",
113
- "visual reference analysis",
126
+ "docs/frontend/design-research.md",
127
+ "docs/frontend/design-system.md with concrete token values",
128
+ "production frontend source with design system applied",
129
+ "browser verification evidence at desktop, tablet, and mobile",
114
130
  ]
115
- verification = [
116
- "inspect desktop, tablet, and mobile rendering",
117
- "test meaningful behavior for every visible control",
118
- "preserve revision and visual-reference traceability",
119
- ]
120
- elif agent_id == "frontend_developer":
121
- responsibilities = [
122
- "Verify the frontend stack and environment before implementation",
123
- "Build the complete production frontend before backend implementation",
124
- "Match approved references exactly and deliver modern, accessible interactions",
125
- ]
126
- required_inputs = ["approved requirements, architecture, and visual references"]
127
- expected_outputs = ["production frontend and browser verification evidence"]
128
131
  verification = [
129
132
  "prove environment setup and production build before completion",
133
+ "confirm design system tokens are applied consistently across all pages",
130
134
  "compare actual frontend rendering with every approved reference",
131
135
  "test pages, states, controls, accessibility, console, and responsive layouts",
136
+ "confirm no hardcoded one-off color, font, or spacing values exist",
132
137
  ]
133
138
  elif agent_id == "backend_developer":
134
139
  responsibilities = [
135
140
  "Implement backend services from approved API and architecture contracts",
136
141
  "Preserve the approved frontend and its adapter boundary",
137
142
  "Implement persistence, validation, security, migrations, and failure behavior",
143
+ "Write tests covering all API endpoints, business rules, and error paths",
138
144
  ]
139
145
  required_inputs = ["approved backend plan, architecture, and frontend adapter needs"]
140
146
  expected_outputs = ["tested backend implementation and traceability manifest"]
@@ -144,10 +150,54 @@ def _registry() -> str:
144
150
  "Replace frontend mocks through the documented adapter boundary",
145
151
  "Verify API, authentication, validation, and failure-state behavior end to end",
146
152
  "Prevent silent visual drift during frontend/backend integration",
153
+ "Confirm all loading, empty, error, and success states render with real data",
147
154
  ]
148
155
  required_inputs = ["approved frontend, verified backend, and API integration plan"]
149
156
  expected_outputs = ["API integration report with reproducible evidence"]
150
157
  verification = ["run backend, frontend, API, and browser integration checks"]
158
+ elif agent_id == "security_reviewer":
159
+ responsibilities = [
160
+ "Test authentication flows, authorization rules, and session management",
161
+ "Test all inputs for injection, XSS, CSRF, and mass assignment vulnerabilities",
162
+ "Audit secrets management, dependency versions, and HTTP security headers",
163
+ "Document every finding with severity, reproduction steps, and remediation",
164
+ "Re-test critical and high findings after remediation",
165
+ ]
166
+ required_inputs = [
167
+ "docs/architecture/security-architecture.md",
168
+ "integrated application source and running environment",
169
+ ]
170
+ expected_outputs = [
171
+ "docs/reports/security-testing.md",
172
+ "docs/reports/security-remediation.md",
173
+ ]
174
+ verification = [
175
+ "every authentication endpoint is tested",
176
+ "injection testing covers SQL, XSS, and CSRF at minimum",
177
+ "dependency audit is complete with CVE status",
178
+ "no unresolved critical or high findings remain",
179
+ ]
180
+ elif agent_id == "qa_engineer":
181
+ responsibilities = [
182
+ "Execute the approved test plan against the integrated application",
183
+ "Map test results to requirement IDs",
184
+ "Validate the database schema, migrations, indexes, and data integrity",
185
+ "Document failures with reproduction steps",
186
+ ]
187
+ required_inputs = [
188
+ "docs/planning/backend-testing-plan.md",
189
+ "docs/requirements/acceptance-criteria.md",
190
+ "integrated application and database",
191
+ ]
192
+ expected_outputs = [
193
+ "docs/reports/qa-and-testing.md",
194
+ "docs/reports/database-validation.md",
195
+ ]
196
+ verification = [
197
+ "all acceptance criteria are tested and mapped to requirements",
198
+ "migration forward and rollback tests pass",
199
+ "no SQL injection vulnerabilities present",
200
+ ]
151
201
  agents.append(
152
202
  {
153
203
  "id": agent_id,
@@ -9,7 +9,7 @@ import typer
9
9
 
10
10
  from agentic_framework import __version__
11
11
  from agentic_framework.core.command_registry import COMMANDS
12
- from agentic_framework.core.config import dump_config, load_config
12
+ from agentic_framework.core.config import ProjectMode, ProjectTask, dump_config, load_config
13
13
  from agentic_framework.core.custom_commands import create_custom_command, custom_commands
14
14
  from agentic_framework.core.initialization import FileStatus, initialize_project
15
15
  from agentic_framework.core.workflow import WorkflowService
@@ -66,11 +66,39 @@ def init_project(
66
66
  bool,
67
67
  typer.Option("--git/--no-git", help="Initialize Git when no repository is detected."),
68
68
  ] = True,
69
+ mode: Annotated[
70
+ ProjectMode | None,
71
+ typer.Option(
72
+ "--mode",
73
+ help="Project mode: new or existing. Skips the interactive prompt.",
74
+ ),
75
+ ] = None,
76
+ task: Annotated[
77
+ ProjectTask | None,
78
+ typer.Option(
79
+ "--task",
80
+ help=(
81
+ "Session task for existing projects: "
82
+ "full_workflow, security_audit, bug_hunt, ui_redesign, "
83
+ "specific_issue, or add_feature."
84
+ ),
85
+ ),
86
+ ] = None,
69
87
  ) -> None:
70
- """Safely initialize ADF in a new or existing project."""
88
+ """Safely initialize ADF in a new or existing project.
89
+
90
+ For existing projects, ADF detects completed domains (frontend, backend,
91
+ database, auth, CI) and writes an analysis scaffold that the IDE agent
92
+ fills in during the existing_project_analysis stage.
93
+ """
71
94
 
72
95
  try:
73
- result = initialize_project(path, initialize_git=initialize_git)
96
+ result = initialize_project(
97
+ path,
98
+ initialize_git=initialize_git,
99
+ mode_override=mode,
100
+ task_override=task,
101
+ )
74
102
  except InitializationError as exc:
75
103
  typer.echo(f"Error: {exc}", err=True)
76
104
  raise typer.Exit(code=2) from exc
@@ -78,6 +106,8 @@ def init_project(
78
106
  created = sum(item.status is FileStatus.CREATED for item in result.files)
79
107
  typer.echo(f"Initialized {result.inspection.root}")
80
108
  typer.echo(f"Project mode: {result.mode.value}")
109
+ typer.echo(f"Session task: {result.task.value}")
110
+ typer.echo(f"Completed domains: {result.inspection.domain_status.summary}")
81
111
  typer.echo(f"Created files: {created}")
82
112
  typer.echo(f"Conflicts: {len(result.conflicts)}")
83
113
  typer.echo("Report: .agentic/reports/initialization.md")
@@ -26,6 +26,17 @@ class ProjectMode(StrEnum):
26
26
  EXISTING = "existing"
27
27
 
28
28
 
29
+ class ProjectTask(StrEnum):
30
+ """The primary task the user wants to perform in this session."""
31
+
32
+ FULL_WORKFLOW = "full_workflow"
33
+ SECURITY_AUDIT = "security_audit"
34
+ BUG_HUNT = "bug_hunt"
35
+ UI_REDESIGN = "ui_redesign"
36
+ SPECIFIC_ISSUE = "specific_issue"
37
+ ADD_FEATURE = "add_feature"
38
+
39
+
29
40
  class IdeKind(StrEnum):
30
41
  """IDE harnesses known to the initial product specification."""
31
42
 
@@ -49,6 +60,7 @@ class ProjectConfig(StrictModel):
49
60
 
50
61
  name: str | None = Field(default=None, min_length=1, max_length=100)
51
62
  mode: ProjectMode = ProjectMode.AUTO
63
+ task: ProjectTask = ProjectTask.FULL_WORKFLOW
52
64
 
53
65
  @field_validator("name")
54
66
  @classmethod