Make hook wrappers for multiple platforms#50
Merged
Conversation
8c12662 to
d954a52
Compare
This adds a hook wrapper system that allows writing hooks once in Python and running them on both Claude Code and Gemini CLI platforms. New files: - src/deepwork/hooks/wrapper.py: Cross-platform input/output normalization - src/deepwork/hooks/claude_hook.sh: Shell wrapper for Claude Code - src/deepwork/hooks/gemini_hook.sh: Shell wrapper for Gemini CLI - src/deepwork/hooks/policy_check.py: Cross-platform policy evaluation hook - doc/platform/: Platform-specific hook documentation and learnings The wrapper system normalizes: - Event names (Stop ↔ AfterAgent, PreToolUse ↔ BeforeTool) - Tool names (Write ↔ write_file, Bash ↔ shell) - Decision values (block → deny for Gemini) Includes 46 new tests and bumps version to 0.3.0.
bd30bdf to
0f7b715
Compare
Reverts unintended changes that removed references to structured questions and the AskUserQuestion tool from standard job commands. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates the source of truth files in src/deepwork/standard_jobs/ to match the 'ask structured questions' phrasing that was previously only in the installed copies. This ensures future `deepwork install` runs will maintain consistency between source and installed files. Changes: - deepwork_jobs v0.5.0: Added structured questions phrasing to define.md, implement.md, job.yml and quality criteria hooks - deepwork_policy v0.2.0: Added structured questions phrasing to define.md and job.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Since only 0.2.0 has been released, merge all changes since then into the upcoming 0.3.0 release entry. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
nhorton
commented
Jan 16, 2026
- Remove unused imports (pytest, NORMALIZED_TO_TOOL) - Prefix unused loop variables with underscore - Remove f-string prefix from string without placeholders Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.