mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
b01e58b160
When a recipe defines sub_recipes, the summon extension is now automatically added to the extensions list. This ensures the delegate tool is available without requiring users to manually specify the summon extension. Changes: - Add ensure_summon_for_subrecipes() helper in Recipe that auto-injects the summon platform extension when sub_recipes are present - Update test assertions to expect summon in extension list - Update test script to look for 'delegate' instead of 'subagent'
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
version: 1.0.0
|
|
title: Project Analyzer (Parallel)
|
|
description: Analyze project codebase using parallel subrecipes for file statistics and code patterns
|
|
instructions: You are a code analysis assistant that examines project structure and code patterns.
|
|
parameters:
|
|
- key: target_directory
|
|
input_type: string
|
|
requirement: optional
|
|
default: "."
|
|
description: "Directory to analyze"
|
|
- key: include_tests
|
|
input_type: string
|
|
requirement: optional
|
|
default: "true"
|
|
description: "Whether to include test files in analysis"
|
|
prompt: |
|
|
Run two subrecipes in parallel:
|
|
- use file_stats subrecipe to gather file statistics for {{ target_directory }}
|
|
- use code_patterns subrecipe to analyze code patterns in {{ target_directory }}
|
|
Iteratively `sleep 10` until the delegates complete, then load their output and confirm success
|
|
extensions:
|
|
- type: builtin
|
|
name: developer
|
|
timeout: 300
|
|
bundled: true
|
|
sub_recipes:
|
|
- name: file_stats
|
|
path: "./subrecipes/file_stats.yaml"
|
|
values:
|
|
directory: "{{ target_directory }}"
|
|
fast_mode: "true"
|
|
- name: code_patterns
|
|
path: "./subrecipes/code_patterns.yaml"
|
|
values:
|
|
directory: "{{ target_directory }}"
|
|
include_tests: "{{ include_tests }}"
|
|
fast_mode: "true"
|