rulesync icon indicating copy to clipboard operation
rulesync copied to clipboard

Follow up AugmentCode upstream updates: shared .agents/ discovery tree and settings.local.json layer

Open dyoshikawa opened this issue 5 months ago • 4 comments

Summary

Auggie CLI (AugmentCode) added a shared .agents/ discovery tree for skills/agents/commands and a layered settings.local.json overrides file. rulesync's augmentcode adapters target only .augment/* and the single settings.json.

Recent Releases

  • Auggie CLI 0.16.0 (2026-02-12) — .agents directory for skill and agent discovery: https://www.augmentcode.com/changelog/auggie-cli-0-16-0-release-notes
  • Custom commands: https://docs.augmentcode.com/cli/custom-commands ; Skills: https://docs.augmentcode.com/cli/skills
  • Hooks: https://docs.augmentcode.com/cli/hooks ; Permissions: https://docs.augmentcode.com/cli/permissions
  • Plugins/Marketplaces: https://docs.augmentcode.com/cli/plugins

Gaps

  • commands/skills/subagents — .agents/ shared discovery tree not emitted. Auggie 0.16.0 "added support for .agents directory for skill and agent discovery"; docs also list ~/.agents/commands/ & ./.agents/commands/ and ~/.agents/skills/ & <workspace>/.agents/skills/ as recognized paths. All augmentcode adapters hardcode .augment/commands/.augment/skills/.augment/agents (src/constants/augmentcode-paths.ts); no .agents/ path. Several other rulesync targets (junie, zed, codexcli) already write into the shared .agents/ tree.
  • permissions/hooks — settings.local.json layer not read. Auggie evaluates layered settings including <workspace>/.augment/settings.local.json (personal overrides) and system-wide /etc/augment/settings.json. AugmentcodePermissions/AugmentcodeHooks getSettablePaths only know .augment/settings.json; local overrides are invisible to rulesync on import (round-trip fidelity).
  • plugins/marketplaces — unsupported (informational). Auggie added a Plugins/Marketplaces system (.augment-plugin/plugin.json bundling commands/agents/rules/hooks/skills/.mcp.json, Claude Code .claude-plugin compatible). Likely out of scope for rulesync's per-feature model, but worth tracking alongside the cross-tool plugin discussions (#329, #382).

Proposed Follow-up

  • Decide whether augmentcode should participate in the shared .agents/ convention for skills/agents/commands (consistent with the recent junie .agents import work).
  • Consider reading/merging .augment/settings.local.json on the import direction so local overrides are not silently dropped.

References

  • https://www.augmentcode.com/changelog/auggie-cli-0-16-0-release-notes — .agents discovery (2026-02-12).
  • https://docs.augmentcode.com/cli/permissions and https://docs.augmentcode.com/cli/hooks — layered settings.local.json.
  • https://docs.augmentcode.com/cli/plugins — Plugins/Marketplaces bundle format.

dyoshikawa avatar Jun 16 '26 06:06 dyoshikawa

Partially addressed — leaving open for the remaining parts, which are maintainer design decisions.

Delivered (merged in #1905): the clean, well-precedented import-fidelity subset — Auggie's cross-tool .agents/ discovery for subagents (importDirPaths: [".agents"], mirroring Junie) and skills (alternativeSkillRoots: [".agents/skills"], mirroring Rovo Dev). Generation is unchanged (still .augment/*); these are import-only discovery roots. Verified against https://www.augmentcode.com/changelog/auggie-cli-0-16-0-release-notes and https://docs.augmentcode.com/cli/skills

Still open — each needs a design decision:

  • Commands .agents/commands import — ToolCommandSettablePaths has no import-root field today, so supporting this requires extending the command framework, a cross-cutting change affecting every command adapter. Worth deciding whether to add a generic importDirPaths to commands (the subagents/skills equivalents already exist) before wiring AugmentCode.
  • settings.local.json permission/hook layering — Auggie's .augment/settings.local.json personal-override file is documented (https://docs.augmentcode.com/cli/permissions), but importing it needs a secondary-import-file extension to ToolPermissionsSettablePaths/ToolHooksSettablePaths. The /etc/augment/settings.json system layer mentioned originally is not confirmed by primary docs and should be verified before any work.

Side note (separate concern surfaced during review): the skills processor's orphan-deletion path (loadToolDirsToDelete) enumerates alternativeSkillRoots, whereas the subagents processor excludes importDirPaths from deletion. This asymmetry pre-dates this issue and affects every tool using alternativeSkillRoots (Rovo Dev, Vibe, etc.), so it was not changed here — but it may be worth tracking as its own item.

dyoshikawa avatar Jun 16 '26 19:06 dyoshikawa

Upstream update (re-check on 2026-06-18)

One small concrete round-trip-fidelity point to add under the plugins/marketplaces item already noted here.

Additional or changed gaps

  • permissions/hooks/mcp — recommendedMarketplaces key not explicitly preserved (project, round-trip). Auggie CLI 0.20.0 (2026-03-19) added a recommendedMarketplaces key in .augment/settings.json ("Projects can declare recommended marketplaces"): https://www.augmentcode.com/changelog/auggie-cli-0-20-0-release-notes. rulesync's .augment/settings.json writers (augmentcode-permissions.ts, augmentcode-hooks.ts, augmentcode-mcp.ts) merge-preserve unknown top-level keys via {...settings}, so this should survive on round-trip — but there is no explicit handling or test. Worth confirming recommendedMarketplaces is not clobbered when multiple of these adapters rewrite the same file, and adding a guard test.

References

  • https://www.augmentcode.com/changelog/auggie-cli-0-20-0-release-notes — Recommended Marketplaces in .augment/settings.json (2026-03-19).

dyoshikawa avatar Jun 19 '26 04:06 dyoshikawa

Triaged — leaving open pending a maintainer design decision (one sub-part is a clean follow-up; the main part needs a decision).

Verified (real gaps). Auggie CLI (AugmentCode) 0.16.0 added a shared .agents/ discovery tree for skills/agents/commands, and evaluates layered settings including a settings.local.json overrides file (https://www.augmentcode.com/changelog/auggie-cli-0-16-0-release-notes, https://docs.augmentcode.com/cli/skills, https://docs.augmentcode.com/cli/permissions). rulesync's augmentcode adapters hardcode .augment/commands/.augment/skills/.augment/agents and the single settings.json.

Why the .agents/ part needs a design decision. AugmentCode now recognizes BOTH .augment/* (which rulesync already emits) AND the cross-tool .agents/* tree (which several other rulesync targets — junie, zed, codexcli, replit — already write to). Adding .agents/ output for augmentcode raises a routing decision: emit to BOTH .augment/ and .agents/ (double-emission of the same content), MOVE to .agents/ (behavior change for existing users), or treat .agents/ as import-only discovery. There is no single obviously-correct choice, and it overlaps the broader question of how rulesync coordinates the shared .agents/ tree across the many tools that now read it.

Possibly-separable clean sub-part (settings.local.json). Reading the <workspace>/.augment/settings.local.json overrides layer on import (so user-local permission/hook overrides are picked up) is a more concrete, additive change that does not carry the same routing ambiguity. It could be split into its own small follow-up if the maintainer wants it independently of the .agents/ decision.

Decision needed from a maintainer: how augmentcode should participate in the shared .agents/ discovery tree (both / move / import-only), ideally coordinated with the other .agents/-writing targets; and whether to pick up the settings.local.json import layer as a separate follow-up. Leaving open for that discussion rather than forcing a double-emission or a breaking relocation.

dyoshikawa avatar Jun 20 '26 00:06 dyoshikawa

Upstream update (re-check on 2026-06-24)

Additional gap (related to this issue's settings layering, but distinct)

This issue covers the shared .agents/ discovery tree and the settings.local.json overrides layer. A re-check surfaced a concrete, separately-actionable gap in the same project-settings area:

  • mcp — missing project scope. Auggie CLI supports MCP servers in the project-level .augment/settings.json under mcpServers, not just user-level ~/.augment/settings.json. The config docs describe the user→project precedence for mcpServers ("MCP server and plugin entries are replaced, not deep-merged. If both your user settings and project settings define an MCP server with the same name, the higher-precedence file's entire server configuration wins"). rulesync's src/features/mcp/augmentcode-mcp.ts hard-throws "AugmentCode MCP is global-only; use --global to sync ~/.augment/settings.json" in both fromFile and fromRulesyncMcp when global is false; the class comment ("the docs do not document a project-level MCP location") is now stale. README marks mcp as 🌏 (global only); the project dry-run emits no MCP file.
    • Proposed: add project-scope support emitting/merging mcpServers into the project .augment/settings.json (reuse the same merge-not-overwrite pattern already used by the hooks/permissions adapters that write that shared file), drop the global-only guard, update the README marker to ✅🌏, and add the MCP × project e2e happy-path case.

References

  • https://docs.augmentcode.com/cli/config — settings hierarchy (<workspace>/.augment/settings.json, settings.local.json, ~/.augment/settings.json) + mcpServers replace-not-merge precedence.
  • https://docs.augmentcode.com/cli/integrations — MCP server configuration.

dyoshikawa avatar Jun 24 '26 11:06 dyoshikawa