Files
JakeHillion e29bab1a4a
commit-validation / validate-single-commit (pull_request) Successful in 8s
buildbot/nix-eval Build done. (636 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
pi: add Kagi-based web search/fetch for the Pi agent
The Pi agent had no web access, so it could not search the web or fetch
pages (existing @mjakl/pi-kagi-api was a stale, off-flake imperative install).
Added pi-web-access (v0.25.0, pinned) as a hermetic buildNpmPackage extension
in the pi extensions linkFarm, with a Kagi-only ~/.pi/web-search.json that
disables github/youtube/video/pdf and the curator/extra commands, so only Kagi
`web_search` plus local-first (readability) `fetch_content` with a Kagi Extract
rescue remain. The Kagi API key is a new agenix-rekey secret
(secrets/pi/kagi-api-key.age) exported to the agent as $KAGI_API_KEY, and the
explore agent now gets the web_search + fetch_content tools.

This gives the agent web search and page fetching declaratively and surviving
impermanence, while keeping GitHub handling out of the plugin's scope.

Test plan:
- Built pkgs.pi-web-access (x86_64-linux) and verified the TypeScript sources
  and runtime node_modules land in the extension output dir
- Evaluated the maverick config: web-search.json contents, explore agent tools,
  and the age secret path resolve
- Note: `agenix rekey -a` must be run and the generated secrets/rekeyed/<host>/
  files committed before the build passes on pi-enabled hosts (bob, merlin,
  maverick, rooster)
2026-08-26 19:28:52 +01:00

337 B