Skip to content

feat(aidd-context): generate host-native options - #1424

Draft
blafourcade wants to merge 7 commits into
nextfrom
feat/native-generator-options
Draft

blafourcade wants to merge 7 commits into
nextfrom
feat/native-generator-options

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

🎯 What & why

Let all five context generators carry host-native options through to the files users run. This covers the remaining Kilo generation cases discussed in #914.

🛠️ How it works

  • Skills, rules, agents, commands and hooks apply options only to the selected host. The skill generator previews shared paths and refuses incompatible options or unwritable destinations before writing. Skill preflight
  • Legacy .kilocode/ triggers detection and generation still uses .kilo/. The shared rule writer keeps flat rules and one glob. It adds the glob to JSONC while preserving comments and existing instruction order, and asks the user to choose when several config files qualify. Rule config selection

🧪 How to verify

  • Run node scripts/check-tests-leave-git-alone.js -- node --test 'scripts/__tests__/**/*.test.js' for generator and contract regressions. It passed 2,811 tests.
  • Run pnpm --dir cli exec vitest run tests/contexts/tools/hooks-routes.integration.test.ts to compare the installed contracts with their fixtures. All 63 cases passed.
  • In an isolated Kilo 7.7.5 project with a local model stub, the generated command created a child session, the restricted agent denied an edit that succeeded in the control, and Kilo loaded the preserved JSONC instructions. Verification record

⚠️ Heads-up

For hosts other than Kilo, verification covers generated files and distribution fixtures. Runtime behavior remains unverified.

🔗 Linked issue

Refs #914

✅ I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

Keep native options attached to the selected tool and preserve installed writer behavior. Update rule configuration without rewriting existing JSONC text.

Refs #914
Pin the native rule option and command validation contracts carried by installed context hooks.
Keep generation actions focused on their workflow. Put host-specific instructions in references and let writers serialize requested options while protecting managed fields.
Create the default config under .kilo and list ambiguous existing candidates by Kilo precedence. Refuse unwritable updates before any rule files change.

Refs #914
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.

1 participant