Skip to content

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Jan 20, 2026

Add changelog entry for created rule mode support which allows rules to match only newly created files, not modifications to existing files.

Add changelog entry for `created` rule mode support which allows rules
to match only newly created files, not modifications to existing files.
The get_changed_files_prompt() function only looked at staged changes,
which meant files committed during an agent response were not detected.

Changes:
- capture_prompt_work_tree.sh now saves HEAD ref to .last_head_ref
- get_changed_files_prompt() compares HEAD against captured ref to
  detect committed changes in addition to staged/untracked files

This fixes rules like uv-lock-sync that use compare_to:prompt not
firing when pyproject.toml is committed before the Stop hook runs.
@nhorton nhorton merged commit 5e18bf4 into main Jan 20, 2026
4 checks passed
@nhorton nhorton deleted the claude/bump-version-0.3.1-Jxvs7 branch January 20, 2026 22:10
nhorton pushed a commit that referenced this pull request Jan 21, 2026
The .deepwork version was updated in PR #85 with HEAD ref capture
functionality, but the standard_jobs source was not updated. This syncs
the newer version which includes:
- Capture HEAD commit ref at prompt time
- Used by get_changed_files_prompt() to detect committed changes
nhorton added a commit that referenced this pull request Jan 21, 2026
The .deepwork version was updated in PR #85 with HEAD ref capture
functionality, but the standard_jobs source was not updated. This syncs
the newer version which includes:
- Capture HEAD commit ref at prompt time
- Used by get_changed_files_prompt() to detect committed changes

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants