Commit f8d6442
Add DeepWork Reviews — automated code review system (#229)
* Add DeepWork Reviews — automated code review via .deepreview config files
Implements a complete review system that lets users define `.deepreview` YAML
config files throughout their project tree. When `deepwork review` runs, it
discovers these configs, diffs the branch, matches changed files against rules,
and generates parallel review task instructions for Claude Code.
Key features:
- Three review strategies: individual, matches_together, all_changed_files
- Hierarchical config placement (like .gitignore)
- Inline or file-referenced review instructions
- Agent personas per platform
- Policy traceability (each review links back to its source rule)
- Explicit file list via --files or stdin pipe (skips git diff)
- Two new plugin skills: `review` (run reviews) and `configure_reviews`
Includes 7 REQ spec files, full implementation in src/deepwork/review/,
CLI command, 122 unit tests, and README_REVIEWS.md usage documentation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Align review output with Task tool params and add python code review rule
- Rename formatter output fields to match Claude Code Task tool parameters
(Name→name, Agent→subagent_type, add description field)
- Default subagent_type to "general-purpose" instead of "Default"
- Add python_code_review rule referencing doc/code_review_standards.md
- Update REQ-006, SKILL.md, and tests to match new format
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Improve requirements traceability, review skills, and test coverage
- Add .deepreview config with requirements_traceability rule using requirements-reviewer agent
- Move deepreview schema to src/deepwork/schemas/ to match REQ-001.7.1
- Fix REQ-004.9.1 function signature to match implementation
- Add 13 tests for REQ-003 sub-requirements (changed file detection)
- Add test for REQ-006.5.3 (write error exits with code 1)
- Add full traceability comment blocks to ~90 tests
- Update module docstrings with "validates REQ-NNN" in all review test files
- Update requirements-reviewer agent: clarify directionality, make project-agnostic
- Update review skill: per-finding questions with multiple fix approach options
- Update configure_reviews skill: offer to run /review after configuration
- Add review MCP tool and related server/doc changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* cleanup docs
* Add .mcp.json cleanup to repair workflow errata step
The repair workflow's errata step now removes legacy `deepwork serve`
entries from the repo's .mcp.json file, since this is handled by the
plugin system.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add repair hint to get_workflows job parse errors
When a job fails to parse, the error message now suggests running
`/deepwork:repair` so the agent knows how to resolve the issue.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add required description field to .deepreview rule schema
Add a `description` field (string, max 256 chars) as a required property
on each review rule. Update the JSON schema, config parser, dataclass,
all .deepreview files, README_REVIEWS.md examples, and test fixtures.
Also fix integration test skip condition for nested Claude sessions and
simplify CLAUDE.md dev environment instructions to use uv directly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* rename tool
* Add get_configured_reviews MCP tool and python_lint review rule
Introduces a new `get_configured_reviews` tool that lists configured
.deepreview rules with optional file-based filtering. Also adds a
python_lint review rule, post-commit reminder hook, and updates specs
and docs to reflect the description field requirement and new tool.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update post-commit hook to more strongly offer review skill
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Apply review findings: fix egg-info bug, promote APIs, surface errors, add traceability
- Fix *.egg-info glob pattern bug in discovery._SKIP_DIRS (set membership
doesn't support globs; now uses endswith check)
- Promote _match_rule and _format_source_location to public API in matcher.py
- Surface discovery errors in mcp.py instead of silently discarding them
- Remove duplicate tests in test_mcp.py that didn't test platform behavior
- Add formal two-line traceability comments to all REQ-007/REQ-008 tests
- Update review infrastructure: python_lint instructions, review skill,
requirements_traceability rule, and post-commit hook wording
- Apply ruff format and mypy type annotations across test files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix import sorting and line formatting from ruff
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Replace nix with uv in CI and split validate into separate jobs
Removes nix dependency from the validate workflow, using uv + setup-python
directly (matching other workflows). Splits the single job into three
parallel jobs (lint, typecheck, tests) so each shows as a separate check
line on PRs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Move claude wrapper into nix flake, remove shell script
The nix dev shell now wraps the claude binary with --plugin-dir flags
automatically, using the real binary's store path to avoid circular
PATH lookup. The standalone ./claude script is no longer needed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* readme cleanup
* Combine ruff and mypy into single Lint job and enable uv caching
Merges the separate lint and typecheck CI jobs into one. Adds
enable-cache: true to all setup-uv steps across all workflows and
removes the redundant manual cache step in copilot-setup-steps.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1457367 commit f8d6442
58 files changed
Lines changed: 4898 additions & 67 deletions
File tree
- .claude/agents
- .deepwork/review
- .github/workflows
- doc
- plugins/claude
- hooks
- skills
- configure_reviews
- review
- specs/deepwork/review
- src/deepwork
- cli
- jobs/mcp
- review
- schemas
- standard_jobs/deepwork_jobs
- steps
- tests
- integration
- unit/review
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | | - | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | | - | |
25 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | | - | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
34 | 63 | | |
35 | 64 | | |
36 | | - | |
| 65 | + | |
This file was deleted.
0 commit comments