You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tailnet_status: add filters and a compact summary mode so large tailnets don't flood agent context #57
tailnet_status returns every peer with every field, pretty-printed (JSON.stringify(data, null, 2) in src/tools/helpers.ts:10). On a modest homelab that's fine. On a tailnet with dozens or hundreds of nodes, or with shared-in and Mullvad exit nodes, which can add hundreds of entries, a single "is my raspi online?" question burns thousands of context tokens. generate_ssh_config and ping_all then ask for the same full status again. Agents work best with tools that let them ask narrow questions.
Evidence
src/tools/status.ts: the only filter is onlineOnly.
src/tools/helpers.ts:10: two-space indented JSON for every response.
Reuse the same filter object in ping_all and generate_ssh_config (for example, "ping only my tag:server nodes").
Done when
"Is raspi online?" can be answered with a response under ~300 bytes on a 200-node tailnet, the filters are shared across the three tools, and tests cover each filter.
Activity