Broaden command knowledge, refine high-traffic tools, harden risk (1.2.0)#4
Merged
Merged
Conversation
…risk (1.2.0) Expands and deepens the command knowledge base and security detectors so an AI-agent/remote-executor consumer reasons correctly about far more commands and no longer classifies genuinely dangerous tools as safe. Breadth: - New plugins: DiskKnowledge, VcsKnowledge, ModernCliKnowledge, IacKnowledge (+ new `infrastructure` category). ~370 new commands across network inspection/transfer/cloud, build/test tooling, package/version managers, containers/orchestration, databases, editors, crypto/secrets, process/ hardware inspection and archive/compression. Depth (per-subcommand/argument refinement): - kubectl/oc, terraform/tofu/terragrunt/pulumi, systemctl (narrowed), vault, npm/pnpm/yarn/bun run, docker rm/prune, aws/gcloud/az delete-tokens, ansible-playbook --become. Risk hardening (previously "unknown/safe -> read-only"): - Disk-format/wipe (mkfs/mkfs.*/wipefs/blkdiscard) and `dd of=/dev/...` are critical (through wrappers); secure-delete srm/wipe; kernel-module, power, privileged-config tools; `find / -delete`; recursive chmod/chown on a system root; kill/pkill/killall catastrophic forms; inline interpreter eval (python -c, node -e, ...). `command -v`/`-V` lookups no longer inherit the target's capabilities/risk (adds WrapperSpec.lookupFlags). - Normalization: batcat->bat, fdfind->fd, ripgrep->rg. dart analyze clean; 394 tests pass (unit/regression/integration). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expands and deepens the command knowledge base and security detectors so an AI-agent / remote-executor consumer (e.g.
omnyshell's:ai) reasons correctly about far more commands, and so genuinely dangerous tools no longer classify as "unknown → safe → read-only".dart analyzeclean ·dart formatapplied · 394 tests pass (unit / regression / integration).Breadth (new coverage)
DiskKnowledge,VcsKnowledge,ModernCliKnowledge,IacKnowledge(+ newinfrastructurecategory).nmap,ip,ss,tcpdump,rclone,tailscale, cloud CLIs), build/test tooling (cmake,bazel,pytest,vite…), package/version managers (bun,uv,poetry,nix,rustup…), containers/orchestration (buildah,skopeo,minikube,kubectx…), databases, editors, crypto/secrets, process/hardware inspection, and archive/compression.Depth (per-subcommand/argument refinement)
kubectl/oc(read vs write vsdelete[highRisk] vsexec),terraform/tofu/terragrunt/pulumi(plan read-only → apply mediumRisk → destroy/-auto-approvehighRisk),systemctl(status read-only; reboot/poweroff highRisk),vault,npm/pnpm/yarn/bunrun/exec,dockerrm/prune,aws/gcloud/azdelete-tokens,ansible-playbook --become.Risk hardening (previously slipped through as safe)
mkfs/mkfs.*/wipefs/blkdiscard) anddd of=/dev/...→ critical (through wrappers likesudo); secure-deletesrm/wipe; kernel-module / power / privileged-config tools;find / -delete; recursivechmod/chownon a system root;kill/pkill/killallcatastrophic forms (PID 1 /-1/pkill ./-u root); inline interpreter eval (python -c,node -e,osascript -e,deno eval, …).command -v/-Vlookups no longer inherit the target's capabilities/risk (newWrapperSpec.lookupFlags), socommand -v mkfs.ext4is no longer a falsecritical.batcat→bat,fdfind→fd,ripgrep→rg.Notes
omnyshellenablesKnowledgeRiskDetectoron its:aishield so KBcriticalratings hard-block; that change is not part of this PR.🤖 Generated with Claude Code