← 返回
开发者工具 中文

RTK Rewrite

RTK rewrite plugin for OpenClaw. Intercepts exec tool calls and delegates rewrites to rtk rewrite to reduce token usage while preserving command intent.
RTK 重写插件,专为 OpenClaw 设计,拦截 exec 工具调用并交由 rtk rewrite 重写,以减少 token 使用量,保持命令意图。
luw2007
开发者工具 clawhub v0.15.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 834
下载
💾 24
安装
1
版本
#latest

概述

RTK Rewrite OpenClaw Plugin

This plugin hooks into OpenClaw's before_tool_call lifecycle:

  • Intercepts only exec tool calls
  • Calls rtk rewrite "" to request a rewrite
  • Replaces the original command when a rewrite is available
  • Supports optional audit logs compatible with Claude Code hook audit format

Prerequisites

rtk must be installed and available in PATH.

brew install rtk-ai/tap/rtk

Install Plugin Files

Copy plugin files to the OpenClaw extensions directory:

mkdir -p ~/.openclaw/extensions/rtk-rewrite
cp index.ts openclaw.plugin.json ~/.openclaw/extensions/rtk-rewrite/
openclaw config set plugins.entries.rtk-rewrite.enabled true
openclaw gateway restart

Configuration

  • enabled: Enables rewrite behavior. Default true.
  • verbose: Prints rewrite logs to console. Default false.
  • audit: Writes hook-style audit logs. Default false.
  • auditDir: Optional audit directory. Falls back to RTK_AUDIT_DIR or ~/.local/share/rtk.

Verification

rtk rewrite "git status"
rtk hook-audit --since 7 -v

版本历史

共 1 个版本

  • v0.15.3 当前
    2026-03-31 02:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,777
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,051
ai-intelligence

Langextract Search

luw2007
集成智谱搜索、DuckDuckGo 搜索和多模型结构化提取的完整工作流。
★ 0 📥 744