Skip to content

Integrate with RTK or implement equivalent functionality #128

Closed

Description

@TechPro424

What you want

https://www.rtk-ai.app/ (compresses tool call output to save tokens)

How it could work

No response

Activity

  1. 1ay1 commented on Nov 16, 2026

    @1ay1
    Collaborator

    Done on master (55c5f89). agentty's hooks now speak Claude Code's protocol, so RTK's own hook works as is:

    { "hooks": {
        "PreToolUse":  [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "rtk hook claude" } ] } ],
        "PostToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "rtk hook claude" } ] } ] } }

    Put that in .agentty/hooks.json, then run agentty hooks approve. Tested with rtk 1.2.0: git status went from 1186 to 440 bytes. Setup is at https://agentty.org/docs/hooks. It'll be in the next release.

  2. TechPro424 commented on Nov 16, 2026

    @TechPro424
    Author
    • Why rtk hook claude and not rtk hook agentty?
    • I would love it if this particular hook could be a "pre-installed" opt in hook (not active by default, but running something like agentty hooks approve rtk could activate it, rather than users having to paste the config themselves)
  3. 1ay1 commented on Nov 16, 2026

    @1ay1
    Collaborator

    There's no rtk hook agentty. RTK's hook modes are per agent, and agentty speaks Claude Code's protocol, so claude is the one that fits. One catch: it also reads Claude Code's permission rules (.claude/settings.json), and a command allowed there skips agentty's prompt.

    I'd rather not build RTK into agentty. You approve the exact hooks file you've read, and RTK's hook format has already changed a few times. Setup is a 6-line file plus agentty hooks approve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions