Skip to content

feat(augmentcode): discover subagents and skills from the shared .agents/ tree on import - #1905

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-1890-augmentcode-agents-discovery
Jun 16, 2026
Merged

feat(augmentcode): discover subagents and skills from the shared .agents/ tree on import#1905
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-1890-augmentcode-agents-discovery

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Auggie CLI 0.16.0+ discovers subagents and skills from the cross-tool .agents/ tree in addition to .augment/. This adds those as import-only discovery roots so a rulesync import from an Auggie project that uses .agents/ is not missed. Generation is unchanged — it still targets .augment/agents/ and .augment/skills/.

  • Subagents (augmentcode-subagent.ts): added importDirPaths: [".agents"] to getSettablePaths and taught fromFile to honor an explicit discovery root, mirroring the established Junie precedent (junie-subagent.ts).
  • Skills (augmentcode-skill.ts): added alternativeSkillRoots: [".agents/skills"] to getSettablePaths, mirroring the established Rovo Dev precedent (rovodev-skill.ts). .agents/skills/ is already covered by .gitignore.

Path constants added to src/constants/augmentcode-paths.ts. No generation change → no new gitignore entry and no support-matrix change (AugmentCode subagents/skills were already ✅).

Validation evidence

Out of scope / deferred (maintainer decision)

This PR intentionally delivers only the clean, well-precedented import-fidelity subset and uses Refs #1890 (not Closes). The remaining parts of #1890 each require a design decision and are left for a maintainer:

  • Commands .agents/commands import — the command framework (ToolCommandSettablePaths) has no import-root field; adding one is a cross-cutting change affecting every command adapter.
  • settings.local.json permission/hook layering — needs a secondary-import-file type extension, and the /etc/augment/settings.json system-layer path referenced in the issue is not confirmed by primary docs.

Test plan

pnpm cicheck is fully green (format, oxlint, typecheck, 6549 unit tests, skill-docs sync, cspell, secretlint). Added unit tests asserting the new import roots in getSettablePaths and import round-trips reading a subagent from .agents/ and a skill from .agents/skills/. Existing generate-to-.augment/* happy-path and Tool × Feature e2e coverage preserved.

Refs #1890

…nts/ tree on import

Auggie CLI 0.16.0+ discovers subagents from .agents/ and skills from .agents/skills/ in addition to .augment/. Add these as import-only roots (importDirPaths for subagents, alternativeSkillRoots for skills), mirroring the junie and rovodev precedents. Generation still targets .augment/.

Refs #1890

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 34fe387 into main Jun 16, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-scrap-issue-1890-augmentcode-agents-discovery branch June 16, 2026 19:07
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

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.

2 participants