Repository navigation
How can I find OpenCode shell commands that RTK leaves unchanged? #5155
Replies: 2 comments 2 replies
|
The closest supported workflow is the hook audit, rather than $env:RTK_HOOK_AUDIT = "1"
# start OpenCode from this shell and run the commands you want to observe
rtk hook-audit --since 0
If your build exposes only aggregate metrics and not the original unmatched command text, I think your proposed enhancement is the right narrowly-scoped request: retain opt-in, local-only 0%-savings audit entries (or an export) for commands the OpenCode hook leaves untouched. That preserves the current If this resolves the workflow question, please mark the answer as answered. |
|
Yes -- the supported path is the hook audit log, not With Commands the hook leaves unchanged are logged as
Windows caveat: the hook writes under the user profile, but Keep |
Uh oh!
There was an error while loading. Please reload this page.
I use RTK 1.2.0 with OpenCode on Windows. The OpenCode hook rewrites commands RTK recognizes, while other shell commands run unchanged. Those unmatched commands do not appear in
rtk gain, so it is hard to spot gaps and decide where custom filters would help.Is there a supported way to record or list the shell commands that the OpenCode hook leaves unchanged? I found
rtk discover, but it appears to read Claude Code history. I also tried the pipeline decision log, but it did not record commands that were not rewritten.Would you recommend an existing OpenCode integration or workflow for this, or is tracking unmatched commands something RTK could add (for example, as 0%-savings entries in
rtk gain)?All reactions