Skip to content

feat: restore full template set with permissionMode/agent support and fix validateTool#41

Merged
jellydn merged 2 commits into
feat/default-templatefrom
copilot/sub-pr-24-again
Mar 25, 2026
Merged

feat: restore full template set with permissionMode/agent support and fix validateTool#41
jellydn merged 2 commits into
feat/default-templatefrom
copilot/sub-pr-24-again

Conversation

Copilot AI commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Dynamic template generation was missing 10 templates from the established config, lacked acceptEdits vs plan permission differentiation, and validateTool was returning early on the first error instead of accumulating all failures.

Template coverage

Added missing categories to CATEGORY_PROMPTS:

  • commit-atomic — uses --agent build on opencode
  • review-security, review-refactor, review-performance
  • remove-verbal, remove-ai-slop
  • tidy-first, simplify
  • simplifier — CCS-only, delegates to @code-simplifier:code-simplifier subagent
  • logical-grouping-pull-request

Permission mode per template

CATEGORY_PROMPTS now carries permissionMode and agent fields. buildCommandForTool applies them per tool:

// ccs profiles: substitutes permission mode in promptCommand
const cmd = tool.promptCommand.replace("--permission-mode plan", `--permission-mode ${permissionMode}`);

// claude: respects permissionMode directly
`claude --permission-mode ${permissionMode} -p '...'`

// opencode: respects agent flag
`opencode run --model opencode/minimax-m2.5-free --agent ${agent} '...'`

Editing templates (types, test, docs, draft-pull-request, remove-*, tidy-first, simplify, simplifier, logical-grouping-pull-request) use acceptEdits; read-only templates use plan.

Other fixes

  • Restored "on git" to the commit-zen prompt
  • validateTool now accumulates all validation errors instead of returning on the first failure

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@changeset-bot

changeset-bot Bot commented Mar 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5be008f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

…teTool and commit-zen prompt

Co-authored-by: jellydn <870029+jellydn@users.noreply.github.com>
Copilot AI changed the title [WIP] Add seed default templates based on detected tools feat: restore full template set with permissionMode/agent support and fix validateTool Mar 4, 2026
@jellydn jellydn marked this pull request as ready for review March 25, 2026 13:59
@jellydn jellydn merged commit 2e74fbd into feat/default-template Mar 25, 2026
4 checks passed
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