Skip to content

[BUG] Agent JSON Output Contains Duplicates #1203

@eureka0928

Description

@eureka0928

Project

cortex

Description

When an agent is defined in multiple locations (builtin + personal + project), the JSON output shows all duplicates with the same path.

Error Message

Debug Logs

System Information

Windows 11

Screenshots

No response

Steps to Reproduce

  1. Create a custom agent with same name as builtin
  2. Run cortex agent list --json

Expected Behavior

Either merge duplicate definitions or clearly distinguish sources

Actual Behavior

JSON array contains multiple entries with same name, some pointing to same file path

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvalidValid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions