Skip to content

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Jan 30, 2026

Summary

Agent Delegation: Adds support for delegating steps to specific agent types via a new agent field in job specs. When set, the generated skill automatically includes context: fork to execute in a forked context.

Key Changes

  • Agent Support in Job Schema: Added agent field to step definitions in job_schema.py and parser.py. When specified, the skill generator automatically sets context: fork.

  • Updated Templates and Specs:

    • Modified job.yml.template to show agent field usage
    • Updated skill generation template (skill-job-step.md.jinja) to emit context: fork and agent fields
    • Synchronized guidance across all skill definitions (define, implement, learn, review_job_spec)
    • Updated job spec doc spec to reflect new requirements
  • Simplified Sync Instructions: Removed instructions to "relay reload instructions" from deepwork sync output in implement and learn steps, as this is now handled by the platform automatically.

https://claude.ai/code/session_01GaqLCGFqkvUsvpqUVqB9G9

claude and others added 2 commits January 30, 2026 18:35
When a step specifies an `agent` field (e.g., `agent: general-purpose`),
the generated skill will include `context: fork` and `agent: <value>`.
This enables steps to delegate execution to specific agent types.

Changes:
- Add `agent` field to Step class in parser.py
- Add `agent` to job schema validation in job_schema.py
- Pass agent to template context in generator.py
- Update Claude skill template to emit context: fork when agent is set
- Update job.yml.template with agent option comment
- Update job_spec.md doc spec with Agent Delegation section
- Update define.md step instructions with agent delegation guidance

https://claude.ai/code/session_01GaqLCGFqkvUsvpqUVqB9G9
@nhorton nhorton changed the title Add agent delegation and improve output path guidance Add agent delegation Jan 30, 2026
@nhorton nhorton added this pull request to the merge queue Jan 30, 2026
Merged via the queue into main with commit 8ad17fe Jan 30, 2026
4 checks passed
@nhorton nhorton deleted the claude/add-agent-to-steps-GSoNd branch January 30, 2026 19:18
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