Install
openclaw skills install rtk-rewriteRTK rewrite plugin for OpenClaw. Intercepts exec tool calls and delegates rewrites to rtk rewrite to reduce token usage while preserving command intent.
openclaw skills install rtk-rewriteThis plugin hooks into OpenClaw's before_tool_call lifecycle:
exec tool callsrtk rewrite "<command>" to request a rewritertk must be installed and available in PATH.
brew install rtk-ai/tap/rtk
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
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.rtk rewrite "git status"
rtk hook-audit --since 7 -v