Created
June 11, 2025 00:20
-
-
Save pahud/98b817c7a0f2ade1174621cc2a5f6aa0 to your computer and use it in GitHub Desktop.
~/.local/bin/qchat.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Searching for trusted tools..." | |
TOOLS=$(grep -v "not trusted$" "$0" | grep "trusted$" | sed 's/^- \([^ ]*\).*/\1/' | tr '\n' ',' | sed 's/,$//') | |
echo "Found tools: $TOOLS" | |
if [ -z "$TOOLS" ]; then | |
echo "Warning: No trusted tools found!" | |
exit 1 | |
fi | |
echo "Using trusted tools: $TOOLS" | |
q chat --trust-tools "$TOOLS" | |
exit 0 | |
Built-in: | |
- execute_bash not trusted | |
- fs_read trusted | |
- fs_write not trusted | |
- report_issue not trusted | |
- use_aws not trusted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.threads.com/@pahud/post/DKvXQ5Sv5TV