Skip to content

docs: enhance headless delegation guidance with comprehensive config schema - #50

Open
justinwilkin wants to merge 3 commits into
mainfrom
feat/forge-spawn-headless-experimental
Open

justinwilkin wants to merge 3 commits into
mainfrom
feat/forge-spawn-headless-experimental

Conversation

@justinwilkin

Copy link
Copy Markdown
Member

This pull request introduces comprehensive support for headless task delegation by teaching the interactive agent how to offload well-defined subtasks to Forge’s autonomous headless mode. The main changes include adding a detailed system prompt section with step-by-step delegation guidance, updating prompt composition to include this new guidance, and documenting the design and rationale in a new architectural decision record (ADR).

System Prompt and Documentation Enhancements:

  • Added HeadlessDelegationGuidance constant to cmd/forge/prompts.go, providing detailed instructions for the interactive agent on when and how to delegate subtasks to headless executions, including YAML config schema, best practices, and example workflows.
  • Updated the composeSystemPrompt function to append the new headless delegation guidance to the system prompt, ensuring the agent is always aware of the delegation pattern.

Design Documentation:

  • Added ADR-0035 (docs/adr/0035-headless-task-delegation.md), documenting the motivation, approach, alternatives considered, and future enhancements for headless task delegation. This ADR explains the pattern-based delegation workflow, configuration conventions, and the decision to leverage existing primitives rather than introducing new tools.

@justinwilkin

Copy link
Copy Markdown
Member Author

@anvxl docs

@anvxl

anvxl Bot commented Jan 14, 2026

Copy link
Copy Markdown

🤖 Documentation Update Results

✅ Documentation updates completed successfully!

📝 A pull request with documentation updates has been created.

📊 Execution artifacts are available in the workflow run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@@ -0,0 +1,265 @@
# ADR-0033: Headless Task Delegation

Copilot AI Jan 14, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ADR number in the header (0033) doesn't match the filename (0035). This should be 'ADR-0035: Headless Task Delegation' to match the filename.

Suggested change
# ADR-0033: Headless Task Delegation
# ADR-0035: Headless Task Delegation

Copilot uses AI. Check for mistakes.
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