Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat(tools): expose the workflow tool

2 months ago

8575309
Authored
mweinbach7/26/2026, 4:20:09 PM
Registered alongside the agent-management tools, since a workflow orchestrates
child agents and needs the same AgentControl tier.

Withheld from task sessions and path-scoped roots. Reaching that tier only rules
out child agents and non-session turns — task sessions do carry agentControl
(createTaskReviewTool requires both), and a scoped root should not be able to
spawn unscoped children through a script.

Compile failures come back as a value rather than a thrown error, so the model
repairs the script in-context at zero spend instead of burning a turn.

The authoring contract ships as a TS constant rather than a prompts/ file:
createTools is synchronous and defineTool takes a plain string, so there is no
point in the factory where a file could be awaited.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk98XjGKJrKp5ynbiNFMFu

Parent6f4fcc9

5 files changed
  • src/tools/context.ts+8−0
  • src/tools/index.ts+18−1
  • src/tools/workflow.ts+90−0
  • src/workflows/authoringPrompt.ts+73−0
  • test/tools/tools.createTools.test.ts+66−0