Repository navigation
fix(augmentcode): read Auggie 1.x permission and subagent spellings - #3741
Merged
Merged
Conversation
- permissions: treat the Auggie 1.x tool names `bash` / `shell`, `str_replace_editor` and `save_file` as aliases of the legacy names rulesync emits, so a conditional `bash` rule keeps its shellInputRegex on import instead of collapsing into an unconditional shell allow - permissions: never widen an allow/ask regex that matches a literal `*` or `?`; skip it with a warning (a deny is broadened fail-closed) - subagents: accept agent files without `name` (optional in 1.x) and derive the name from the file name, as Auggie does - rules: warn on generate that augmentcode-plugin rules load on Auggie 0.x only; output is unchanged for the stable CLI - docs: describe the Auggie 1.x behavior Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
…n as globs
The lossy shellInputRegex conversion kept bare `*` / `?` quantifiers as
glob wildcards, so an allow such as `^rm -rf /tmp/a*$` came back as
`^rm -rf /tmp/a.*$`. Skip allow/ask entries whose regex has a bare
`*` / `?` / `+` / `{` outside a `.*` run, or an escaped `\*` / `\?`,
with a warning; deny stays fail-closed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
…a glob class An escaped `\[` in a shellInputRegex became a glob `[`, which targets whose globs support character classes read as a one-character range. Treat it as non-roundtrippable: allow/ask entries are skipped with a warning and a deny is broadened to `*` (fail-closed). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
This was referenced Nov 3, 2026
Closed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Auggie 1.x (still a prerelease on npm; stable is 0.36.0) changed three things rulesync reads or writes in
.augment/. This PR handles all three without changing output for 0.x users."toolName": "bash") withshellInputRegeximported asbash: {"*": "allow"}, andgeneratethen appended an unconditionallaunch-processallow. Nowbash/shell(andstr_replace_editor/save_file) are aliases of the legacy names, so the regex is recovered like alaunch-processone, and thebashrow is managed (replaced or deduplicated) on regenerate.name(optional in 1.x, "Defaults to the filename without.md") made import exit 1. Import now uses the file name instead. Generate still writesname, because 0.36.0 requires it.augmentcode-pluginrules: 1.x no longer loadsrules/from plugins. 0.x still does (checked against/cli/v0/plugins), so the output stays the same. Generate now prints a warning, and the docs explain the gap.Changes
augmentcode-permissions.ts: extendedCURRENT_TO_LEGACY_AUGMENT_TOOL_NAMESwith the 1.x legacy aliases from https://docs.augmentcode.com/cli/permissions. Rulesync keeps emitting the legacy names, which 0.x and 1.x both accept.augmentcode-permissions.ts: a regex that matches a literal\*/\?no longer counts as roundtrippable. Turning it into a glob would make the literal a wildcard:^rm \*$became^rm .*$. Allow and ask entries like this are now skipped with a warning. Deny entries are broadened to*(fail-closed), as before.augmentcode-subagent.ts:nameis now optional, and the name comes from the file name on import. A Markdown file with no frontmatter is still rejected, so a README in.agents/does not import as an agent. Also updated the outdated class comment aboutdisabled_tools.rules-processor.ts: whenaugmentcode-pluginwrites rule files, generate warns that they load on Auggie 0.x only.file-formats.md(permissions aliases and regex fallback, a new AugmentCode subagent note),plugin-packaging.md, and a new "AugmentCode (Auggie 1.x) compatibility" section insupported-tools.md.docs-content.tsregenerated.Out of scope, left open:
.mdcrules,APPEND_SYSTEM.md, agrep⇄grep-searchalias, the note in the feature-research reference map, and deciding whether to keep pluginrulesonce 1.x becomes stable.Tests
bashallow regex round-trips through generate as a single conditionallaunch-processrow.rev, and a file without frontmatter is rejected.augmentcode-pluginand not foraugmentcode.bash: {"npm test": "allow", "rm *": "deny"}, and generate writes only the two conditionallaunch-processrows.pnpm cicheckpasses.Refs #3729
🤖 Generated with Claude Code
https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth