Skip to content

Comments

Refactor job hooks configuration structure#12

Merged
nhorton merged 1 commit intomainfrom
claude/refactor-job-hooks-wzheD
Jan 13, 2026
Merged

Refactor job hooks configuration structure#12
nhorton merged 1 commit intomainfrom
claude/refactor-job-hooks-wzheD

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Jan 13, 2026

Migrate job.yml files from the deprecated stop_hooks array format to the new hooks.after_agent structure. This aligns the job definitions with the lifecycle hooks system that maps generic hook names (like after_agent) to platform-specific implementations in the adapters (e.g., Claude's "Stop" hook).

The adapter hook_name_mapping already handles the translation:

  • Claude: after_agent -> "Stop"
  • Gemini: No command-level hooks (empty mapping)

Files updated:

  • .deepwork/jobs/add_platform/job.yml
  • .deepwork/jobs/deepwork_jobs/job.yml
  • src/deepwork/standard_jobs/deepwork_jobs/job.yml

Migrate job.yml files from the deprecated `stop_hooks` array format
to the new `hooks.after_agent` structure. This aligns the job definitions
with the lifecycle hooks system that maps generic hook names (like
`after_agent`) to platform-specific implementations in the adapters
(e.g., Claude's "Stop" hook).

The adapter hook_name_mapping already handles the translation:
- Claude: after_agent -> "Stop"
- Gemini: No command-level hooks (empty mapping)

Files updated:
- .deepwork/jobs/add_platform/job.yml
- .deepwork/jobs/deepwork_jobs/job.yml
- src/deepwork/standard_jobs/deepwork_jobs/job.yml
@nhorton nhorton merged commit 333b7f0 into main Jan 13, 2026
1 check passed
@nhorton nhorton deleted the claude/refactor-job-hooks-wzheD branch January 15, 2026 23:59
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.

2 participants