rtk-ai/rtk

feat(init): add Whale agent support

開放

#2,207 建立於 2026年6月2日

 (1 則留言) (0 個反應) (0 位負責人)Rust (2,914 個分叉)batch import
area:clienhancementhelp wantedpriority:medium

倉庫指標

星標
 (48,085 顆星)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

Hi, RTK is a great. I really like that it focuses on reducing noisy shell output while keeping the underlying commands explicit and inspectable.

I maintain/work on Whale (https://github.com/usewhale/DeepSeek-Code-Whale), a DeepSeek-native coding agent CLI/TUI, and would be happy to submit a PR for RTK support.

Whale (https://github.com/usewhale/DeepSeek-Code-Whale) has a PreToolUse hook for shell_run that can rewrite tool input via updated_input, so RTK can integrate as a transparent full-hook adapter rather than prompt-only rules.

Proposed scope:

  • add rtk init --agent whale
  • write a Whale [[hooks.PreToolUse]] config for shell_run
  • add rtk hook whale to read Whale's hook JSON from stdin and return updated_input
  • fail open if RTK is missing, input is invalid, or the command should not be rewritten
  • add tests and docs

Before I start the PR: would you prefer this as a first-class supported agent in RTK?

Whale Hooks: https://github.com/usewhale/DeepSeek-Code-Whale/blob/main/docs/hooks.en.md

貢獻者指南