Skip to content

feat: add peer count to p2p status output #11

Description

@Jing-yilin

Description

The p2p status CLI command and p2p_status agent tool should include the total number of discovered peers in their output.

Current Behavior

Status output shows Yggdrasil address, public key, and server port, but no peer count.

Expected Behavior

Add a line like Peers: 12 discovered to the status output.

Where to Look

  • src/index.ts — the p2p status CLI handler and p2p_status tool handler
  • src/peer-db.tslistPeers() returns all known peers

Difficulty

Easy — one-line addition in two places. Good way to learn the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions