rtk-ai/rtk
Vedi su GitHubfeat: add transparent hook support for Mistral Vibe (BeforeTool)
Open
#800 aperta il 24 mar 2026
area:clieffort-mediumenhancementhelp wantedpriority:medium
Metriche repository
- Star
- (48.085 star)
- Metriche merge PR
- (Merge medio 11g 1h) (45 PR mergiate in 30 g)
Descrizione
Context
rtk init --agent vibe is already implemented and installs:
~/.vibe/prompts/rtk.md— system prompt instructing Vibe to usertkcommands- Patches
~/.vibe/config.toml— setssystem_prompt_id = "rtk"and addsrtkto bash allowlist
Problem
Vibe currently has no hook mechanism to intercept bash commands before execution (unlike Claude Code's PreToolUse and Gemini's BeforeTool). This means RTK integration relies on the model following the system prompt — which is less reliable than a real hook.
We opened a feature request on the Vibe repo to add this: mistralai/mistral-vibe#531
Current State (prompt-only approach)
| What | Status |
|---|---|
rtk init --agent vibe |
✅ Implemented |
System prompt (~/.vibe/prompts/rtk.md) |
✅ Installed |
Config patch (system_prompt_id, allowlist) |
✅ Patched |
| Transparent hook (BeforeTool) | ❌ Blocked on mistralai/mistral-vibe#531 |
Plan
Once mistralai/mistral-vibe#531 is implemented:
- Add
~/.vibe/hooks/rtk-hook-vibe.sh(rewrite bash commands tortk) - Update
run_vibe_mode()to also install the hook and patch[hooks]section inconfig.toml - Same pattern as the existing Gemini hook (
hooks/rtk-hook-gemini.sh)
References
- Gemini hook implementation:
hooks/rtk-hook-gemini.sh+src/init.rs::run_gemini() - Vibe feature request: https://github.com/mistralai/mistral-vibe/issues/531