v4.2.1
What's Changed
Features
--no-parallelCLI flag —af code --no-parallelforces serial execution (parallel=1) for a single run without editingconfig.toml(#716)- Task-group-scoped context rendering —
assemble_context()now filters requirements, test specs, and tasks to only content relevant to the active task group, reducing prompt size by an estimated 50-65% for complex specs (#717, #720) - Preflight gate results in coder prompt — The orchestrator's preflight check results are now passed to the coder's task prompt as a
## Preflight Statesection, allowing the coder to skip redundant Quick Triage checks and save 2-5 tool calls per session (#718) - Subtask completion counts in scoped summaries — Non-target task groups in scoped rendering now show
(N/M subtasks done)for quick orientation (#720)
Refactors
- Profile deduplication — Removed duplicated rules (conventional commits, Co-Authored-By, stale references, never-push) from
maintainer.md,coder_fix.md, andmaintainer_fix-triage.mdthat were already covered byagent.md(#719) - agent.md rewrite — Replaced the "Understand Before You Code" section with a concise "Pre-Injected Context" acknowledgment and lightweight "Orient Yourself" guidance, eliminating redundant file-reading instructions (#717)
- coder.md cleanup — Removed duplicated stale-reference warning and scope priority already present in
agent.md(#717)
Infrastructure
PreflightResultdataclass —run_preflight()now returns a structured result with gate states (checkboxes_done,has_findings,tests_passed) instead of a bare enum (#718)- Scoped render functions —
render_requirements_scoped(),render_test_spec_scoped(),render_tasks_scoped(), andrender_individual_scoped()added to afspec (#717)
Bug Fixes
- Resolved 3 post-refactoring test failures from afissues migration
- Fixed stale
agentfox.platformreferences in test docstrings
Full Changelog: v4.2.0...v4.2.1