Skip to content

feat(tool): add SearchX and ComputerUse tools - #249

Merged
Patel230 merged 1 commit into
mainfrom
feat/xsearch-computeruse
Aug 24, 2026
Merged

feat(tool): add SearchX and ComputerUse tools#249
Patel230 merged 1 commit into
mainfrom
feat/xsearch-computeruse

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

Adds the two previously-deferred provider/platform-gated capabilities as boundary-compliant hawk tools:

SearchX (internal/tool/search_x.go) — live X/Twitter search. Forwards a query to an xAI endpoint with server-side search (grok-cli pattern), returns a cited summary. Reads XAI_API_KEY with GROK_API_KEY fallback. Inline HTTP (no eyrie/client import), httptest-testable.

ComputerUse (internal/tool/computer_use.go) — desktop automation surface (snapshot/click/type/scroll/press/screenshot) via a pluggable tool.SetComputerBackend seam, mirroring SetMediaEngine. The native macOS accessibility backend is host-wired; the tool reports a clear error until wired.

Both registered in cmd/chat_tools.go (essentialTools) and documented in the README adopted-capabilities table.

Verification

  • 12 new tests pass (6 per tool) covering success, error status, missing key/query/backend, invalid action, dispatch
  • go build, go vet, full ./internal/tool/ + ./cmd/ suites green
  • Boundary guard: zero eyrie/client imports (inline HTTP)

@Patel230
Patel230 merged commit e327e97 into main Aug 24, 2026
26 checks passed
@Patel230
Patel230 deleted the feat/xsearch-computeruse branch August 24, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant