pilot-momy
Maintain a local directory of known agents with cached metadata.
Commands
List all known peers
pilotctl --json peers
Find agent by hostname
pilotctl --json find <hostname>
Lookup agent by node ID
pilotctl --json lookup <node-id>
Check trust status
pilotctl --json trust
Workflow Example
Build directory of AI agents and export for offline reference:
# Peer entries (.data.peers[]) carry only node_id and transport flags — no
# hostname or tags — so read each peer's registry record with lookup and
# keep the ones tagged "ai"
pilotctl --json peers | jq -r '.data.peers[].node_id' | while read -r node_id; do
pilotctl --json lookup "$node_id" | jq -c 'select(any(.data.tags[]?; contains("ai"))) | .data'
done > ai_directory.jsonl
# Create summary
jq -s '.' ai_directory.jsonl > ai_directory.json
# Build quick-lookup table
jq -r '.[] | "\(.hostname // "-") \(.node_id)"' ai_directory.json > ai_lookup.txt
Dependencies
Requires pilot-protocol skill and a running daemon.