Skip to content

squad copilot subcommand hardcoded to .ai-team/ path #175

Closed

Description

@uvirk

Bug

The \copilot\ subcommand in \index.js\ (line 642) is hardcoded to look for .ai-team/team.md:

\\js
const teamMd = path.join(dest, '.ai-team', 'team.md');
\\

This should use \detectSquadDir()\ (which already exists and correctly handles both .squad/\ and .ai-team/), but the copilot subcommand bypasses it.

Expected

\squad copilot\ should work with repos using .squad/\ (the v0.5.0+ default directory name).

Actual

\squad copilot\ fails with \No squad found\ on any repo that uses .squad/\ instead of .ai-team/.

Workaround

Create a junction/symlink: \New-Item -ItemType Junction -Path .ai-team -Target .squad, run the command, then remove the junction.

Version

Squad v0.5.4

Activity

  1. added a commit that references this issue on Mar 3, 2026
    86a6dd7
  2. bradygaster commented on Mar 4, 2026

    @bradygaster
    Collaborator

    Thank you for the clear bug report and workaround, @uvirk. The copilot subcommand hardcoding .ai-team/ instead of respecting directory detection was a real issue.

    This is now fixed: The CLI was replatformed to TypeScript (v0.8.18+), and the copilot command now lives in packages/squad-cli/src/cli/commands/copilot.ts. It properly uses detectSquadDir() to handle both .squad/ and legacy .ai-team/ configurations. The entire codebase moved to .squad/ as the standard structure, so hardcoded paths are gone.

    Versions v0.8.18 and later have this fix included.

  3. bradygaster commented on Mar 4, 2026

    @bradygaster
    Collaborator

    Resolved in v0.8.18+ via the TypeScript replatform. The copilot subcommand now properly uses detectSquadDir().

  4. uvirk commented on Mar 5, 2026

    @uvirk
    Author

    Thanks Brady!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions