Skip to content

status counts agents without applying include/exclude, frontmatter targets, or .agentignore #395

Closed

Description

@runkids

Problem

skillshare status and status --json (global and project) count synced agents against the raw discovery result. countLinkedAgents in cmd/skillshare/status_agents.go receives every discovered agent, and expected is len(agents).

sync agents filters before writing: ActiveAgents (.agentignore), FilterAgents (target include/exclude) and FilterAgentsByTarget (frontmatter targets). A target that excludes some agents is therefore fully synced but reported as N/M with drift: true.

doctor and the dashboard's target summary already filter per target before counting, so they report the right numbers.

Expected

status applies the same per-target filters as sync agents before counting and uses the filtered count as expected, for copy, merge and extension targets.

Notes

Pre-existing; pointed out by Codex while reviewing #392, which only changed how extension outputs are matched.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions