You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a flatten: true option to extras target configuration in config.yaml. When enabled, files in subdirectories of the extras source are synced directly into the target root rather than preserving the directory hierarchy.
Use Case
Some AI CLI tools (e.g. Claude Code's /agents) only discover files at the top level of their config directory — they do not recurse into subdirectories. When an extras source uses subdirectories for organization (e.g. agents/curriculum/, agents/software/), synced files land in subdirs and are invisible to the tool.
Flatten the source directory manually and use filename prefixes for organization (e.g. curriculum-tactician.md, software-implementer.md). This works but loses the organizational structure in the source repo.
Expected Behavior
flatten: true: all .md files from any depth under the source are symlinked/copied directly into the target directory
Conflict behavior on name collision: warn and skip (or optionally error)
Compatible with all sync modes (merge, copy, symlink)
Activity
feat(extras): add flatten option to extras sync engine
feat(extras): add --flatten to CLI commands and TUI wizard
feat(ui): add flatten support to Web UI
test(extras): integration tests for flatten sync
docs: add flatten documentation, changelog, and contributor
fix(extras): shorthand dispatch recognizes --flatten/--no-flatten
test(e2e): add extras flatten E2E runbook
feat(extras): add flatten option to extras sync engine
feat(extras): add --flatten to CLI commands and TUI wizard
feat(ui): add flatten support to Web UI
test(extras): integration tests for flatten sync
docs: add flatten documentation, changelog, and contributor
fix(extras): shorthand dispatch recognizes --flatten/--no-flatten
test(e2e): add extras flatten E2E runbook
runkids commentedon Mar 25, 2026
Shipped in v0.17.11 🎉
Thanks for the well-structured proposal @mk-imagine — landed exactly as described.
What landed
flatten: trueper-target in extras config--flatten/--no-flattenflags onextras sync,extras add; applies to all targets when--targetis omittedextras addwizard +Ftoggle inextras listExample
Your #98 (first-class agent support) is on the roadmap next — flatten was a great stepping stone toward that. Stay tuned!