You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@howaboua/tool-query

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@howaboua/tool-query

Semantic PATH-aware CLI discovery for Bun-based Linux agent workflows.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
1
-94.74%
Maintainers
1
Weekly downloads
 
Created
Source

tool-query

tool-query is a Bun CLI for Linux x64 that catalogs invokable commands from PATH, blocks search until every visible command has one-sentence metadata, and then performs semantic capability search with a first-run-downloaded Vulkan llama.cpp runtime plus EmbeddingGemma GGUF.

Runtime Requirements

  • Bun >= 1.3.9
  • Linux x64
  • Vulkan-capable machine for the semantic embedding path

Package

  • npm package: @howaboua/tool-query
  • CLI binary: tool-query

Install

npm install -g @howaboua/tool-query

tool-query is a Bun-native package. The installed binary uses the bun shebang, so bun must be present on the machine.

On first semantic search, tool-query downloads:

  • the Vulkan llama.cpp runtime into ${XDG_CACHE_HOME:-$HOME/.cache}/tool-query/runtime
  • the EmbeddingGemma GGUF model into ${XDG_CACHE_HOME:-$HOME/.cache}/tool-query/models

Repo Map

  • src/main.ts: entrypoint, exit codes, and stdout JSON envelope.
  • src/cli.ts: positional command parsing and JSON payload validation.
  • src/app.ts: high-level command orchestration.
  • src/command_index.ts: Linux PATH scan and first-match command resolution.
  • src/search/: sync-and-gate search flow plus lexical ranking.
  • src/store/: SQLite schema, sync, metadata persistence, and validation.
  • src/embedder/: config, runtime download, model download, and fingerprint lifecycle.
  • src/xdg.ts: cache/config path resolution.

Workflow

  • tool-query search '{"query":"browser automation"}' syncs the current PATH.
  • If any visible command lacks metadata, search returns metadata_required.
  • tool-query describe '{"entries":[{"name":"agent-browser","description":"CLI for browser automation, page interaction, and screenshots."}]}' writes up to five one-sentence descriptions.
  • Once every visible command is documented, tool-query search ... returns matching command names.

Local Checks

Run ./scripts/check.

Keywords

agent

FAQs

Package last updated on 06 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts