Skip to content

Correctness cleanups and the missing test/CI baseline #10

Closed

Description

@abruption

Smaller findings from the same review, plus the gap that lets all of this happen quietly.

No tests, no CI

461 lines and zero tests. agy-cli-usage has 42 tests and a CI matrix; this repo has neither, and main has no branch protection. The README itself notes the session-record schema isn't a documented interface — without tests, the next Claude Code release breaks discovery silently.

A first pass needs no network: is_tailnet_address, resolve_target, message-size validation, reply-line construction, and the remote-argv quoting from #6 are all pure functions.

resolve_target() re-filters, making its caller's flag meaningless

It starts with reachable = [s for s in sessions if s["reachable"]], so cmd_send() passing discover(include_unreachable=True) has no effect. Either drop the argument at the call site or use it to say why a target is unreachable — the second is more useful, since "stale record" and "no such session" are different problems.

is_tailnet_address ignores the last two octets

100.64.999.999 returns True. Harmless today because the caller feeds it regex-matched text, but it's a trap for the next caller.

install.sh

  • for host in $HOSTS is unquoted — word splitting plus glob expansion (--host '*')
  • Under curl | sh, $0 is sh, so src_dir becomes $PWD and an unrelated cc_peer.py in the current directory gets installed. usage()'s sed -n '2,12p' "$0" breaks on the same path.

CLAUDE.md overstates the symlink

It says copying the skill directory alone is self-contained; the symlink dangles in a fresh clone. Its actual purpose is the opposite — keeping one source of truth. Correct the claim.

Reported alongside #6, #7, #8.

Activity

  1. added
    enhancement
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions