duplicate config block to the file and the sudo ksh - part pipes
content into a shell as root, which is unsafe.
To update the token, just edit the file directly:
nano ~/.clawhip/config.toml
Or use sed to replace the token in-place:
sed -i '' 's/token = ".*"/token = "YOUR_NEW_TOKEN_HERE"/'
~/.clawhip/config.toml
No sudo needed — it's in your home directory.
Regarding your nl2shell product — from the conversation context I know
nl2shell.com is live (Next.js + Vercel) with a Qwen 0.8B model, and
this is exactly the kind of test case that exposes accuracy gaps. The
model generating that broken command is a good example of why v2
(Qwen2.5-Coder-1.5B with OS context) is needed — it needs to
understand that editing a TOML config file isn't a pipeline-to-shell
operation.
duplicate config block to the file and the sudo ksh - part pipes
content into a shell as root, which is unsafe.