feat: add RTK hook support for token-optimized CLI output #1

Closed
farhoodliquor-paperclip[bot] wants to merge 2 commits from feat/rtk-hooks into master

2 Commits

Author SHA1 Message Date
Test User 77e4a13644 feat: declare adapter plugin capabilities on ServerAdapterModule
Adds supportsInstructionsBundle, instructionsPathKey, and
requiresMaterializedRuntimeSkills flags so the UI renders the
bundle editor for claude_k8s agents. Bumps adapter-utils peer
dep to the canary that includes the capability type fields.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-15 21:42:20 +00:00
Barcode Betty b24f849198 feat: add RTK hook support for token-optimized CLI output
When enableRtk is set in adapter config, the adapter:
- Adds an init container to download the RTK binary via configurable image
- Mounts RTK binary in the main container via shared emptyDir volume
- Runs `rtk install claude-code` with an isolated temp HOME, then moves
  the generated hooks to the workspace's .claude/settings.local.json
  (project-level) to avoid polluting the shared PVC's global settings
- Disables RTK telemetry (RTK_NO_TELEMETRY=1) for automated environments
- Supports rtkVersion for pinning and rtkImage for custom installer images

Key improvement over the reverted d074cb2: hooks are written to the
project-level settings.local.json instead of the shared ~/.claude/settings.json,
preventing RTK hooks from leaking to non-RTK agents on the same PVC.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-14 12:10:51 +00:00