Skip to content

(experiment) sub-recipes prototype#2862

Closed
jamadeo wants to merge 2 commits into
mainfrom
jackamadeo/sub-recipes
Closed

(experiment) sub-recipes prototype#2862
jamadeo wants to merge 2 commits into
mainfrom
jackamadeo/sub-recipes

Conversation

@jamadeo

@jamadeo jamadeo commented Jun 11, 2025

Copy link
Copy Markdown
Member

(not to merge)

This is a minimal prototype of sub-recipes. You can add a subrecipes field to your recipe, and Goose will add tool calls representing each sub-recipe. No parameters are supported in this prototype.

To get it working, cd into the subrecipes-mcp directory and run uv tool install -e ..

Comment thread subrecipes-mcp/main.py
] # Otherwise the Goose system prompt says this supports resources


def runner(subrecipe: dict) -> tuple[str, Callable[[Context], Awaitable[str]]]:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lifeizhou-ap my thinking is that we turn these into tools added and handled by Goose itself, without the MCP layer at all. Then we can start with an implementation where Goose still shells out to itself. And that leaves the door open to Goose running the subrecipe in its own separate agent in-process

@jamadeo

jamadeo commented Jun 18, 2025

Copy link
Copy Markdown
Member Author

Work continues in #2982

@jamadeo jamadeo closed this Jun 18, 2025
@DOsinga
DOsinga deleted the jackamadeo/sub-recipes branch May 14, 2026 19:23
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.

1 participant