Skip to content

feat(kiro-cli): support global scope for commands and subagents#2102

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2034-kirocli-global-scope
Jul 1, 2026
Merged

feat(kiro-cli): support global scope for commands and subagents#2102
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2034-kirocli-global-scope

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follow-up for issue #2034. That issue's headline ask (Kiro CLI v3 Early Access support — permissions.yaml, standalone hooks, Markdown agents) remains explicitly DEFERRED per the maintainer's own triage comment ("Deferring until v3 stabilizes out of Early Access"). This PR implements only the separate, actionable v2 gap called out in a later maintainer comment: the current stable kiro-cli target is missing global scope for commands and subagents.

Changes

Kiro CLI reads user-wide prompts (~/.kiro/prompts/) and agent configs (~/.kiro/agents/) at the user level, but the kiro-cli commands/subagents adapters ignored --global entirely (supportsGlobal: false). The underlying path-resolution logic in KiroCommand/KiroSubagent already handled both scopes correctly (same relative path, home-dir root swap happens upstream in the generate pipeline) — the only gap was the processor gating flags.

  • commands-processor.ts / subagents-processor.ts: flipped kiro-cli meta supportsGlobal to true.
  • Tests: updated global-target-list assertions; added kiro-cli to the Tool × Feature global-mode happy-path matrices in e2e-commands.spec.ts/e2e-subagents.spec.ts.
  • Regenerated supported-tools tables (kiro-cli commands/subagents now show the global marker).

The legacy frozen kiro alias is untouched (verified via diff).

Verification

pnpm cicheck fully green: 301 test files, 6705 tests; sync-skill-docs, gitignore, supported-tools, cspell, secretlint all pass.

References

Refs #2034 (v3 Early Access surface remains deferred/open)

Kiro CLI reads user-wide prompts from ~/.kiro/prompts/ and agent configs from ~/.kiro/agents/ (local takes precedence), but the kiro-cli commands and subagents adapters ignored the --global flag entirely, so global dry-runs reported the features as unsupported.

Flip supportsGlobal to true for kiro-cli in the commands and subagents processor metadata; the underlying KiroCommand/KiroSubagent getSettablePaths already resolve the same relative path for both scopes (the home-directory root is applied by the generate pipeline), matching the pattern already used for kiro-cli skills.

The v3 Early Access surfaces (permissions.yaml, standalone hooks, Markdown agents) referenced in the original issue remain explicitly deferred per maintainer triage and are not touched here. The legacy frozen kiro alias is also untouched.

Fixes part of #2034

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 20aa483 into main Jul 1, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2034-kirocli-global-scope branch July 1, 2026 04:10
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