When using gh aw add to install an agentic workflow package, the command correctly resolves top-level imports: blocks in the added workflow files — installing any referenced shared files. However, it does not recursively resolve uses: references found inside those shared/imported files. As a result, transitively required workflow files are silently omitted from the installation.
Current Behavior
Given an agentic workflow package with the following structure:
orchestrator.md declares imports: - uses: shared/control.md
shared/control.md declares imports: - uses: control-precompute.md and imports: - uses: control-instructions.md
worker.md declares imports: - uses: shared/helper.md
Running gh aw add <package>/orchestrator installs shared/control.md (resolved from the top-level imports:), but does not install:
shared/control-precompute.md
shared/control-instructions.md
shared/helper.md (referenced from a worker file)
Expected Behavior
gh aw add should resolve uses: references transitively — walking the full dependency tree of imports: blocks across all referenced files — so that all required shared workflow files are installed without needing to be enumerated manually in aw.yml.
Suggested Fix
Extend gh aw add's dependency resolution to recursively follow uses: entries within imports: blocks of all fetched workflow files, similar to how top-level imports: are already resolved.
When using
gh aw addto install an agentic workflow package, the command correctly resolves top-levelimports:blocks in the added workflow files — installing any referenced shared files. However, it does not recursively resolveuses:references found inside those shared/imported files. As a result, transitively required workflow files are silently omitted from the installation.Current Behavior
Given an agentic workflow package with the following structure:
orchestrator.mddeclaresimports: - uses: shared/control.mdshared/control.mddeclaresimports: - uses: control-precompute.mdandimports: - uses: control-instructions.mdworker.mddeclaresimports: - uses: shared/helper.mdRunning
gh aw add <package>/orchestratorinstallsshared/control.md(resolved from the top-levelimports:), but does not install:shared/control-precompute.mdshared/control-instructions.mdshared/helper.md(referenced from a worker file)Expected Behavior
gh aw addshould resolveuses:references transitively — walking the full dependency tree ofimports:blocks across all referenced files — so that all required shared workflow files are installed without needing to be enumerated manually inaw.yml.Suggested Fix
Extend
gh aw add's dependency resolution to recursively followuses:entries withinimports:blocks of all fetched workflow files, similar to how top-levelimports:are already resolved.