Skip to content

Windows: squad setup cannot detect AI tools and generated Codex SKILL.md has invalid YAML #15

@yizixu

Description

@yizixu

Summary

On Windows, the prebuilt squad binary installs and runs, but squad setup has several Windows/Codex compatibility problems:

  1. squad setup auto-detection reports all supported AI tools as missing even when claude, gemini, and codex are available in PATH.
  2. squad setup <platform> fails with HOME not set on a normal Windows environment that has USERPROFILE but not HOME.
  3. The generated Codex skill file has invalid YAML frontmatter because the description value contains an unquoted Usage: segment.

Environment

  • OS: Windows
  • squad: 0.7.6
  • Install method: GitHub Releases, squad-x86_64-pc-windows-msvc.zip
  • AI tools present in PATH:
    • claude.exe
    • gemini.cmd
    • codex.cmd / codex.exe

Reproduction

1. Auto-detection fails on Windows

Install the Windows release, add the install directory to PATH, then run:

squad setup --list
squad setup

Observed:

Supported platforms:
  claude (claude: not found)
  gemini (gemini: not found)
  codex (codex: not found)
  opencode (opencode: not found)

Detecting installed AI tools...
No supported AI tools found in PATH.
Supported: claude, gemini, codex, opencode

However, Windows can find the tools with where.exe, for example:

where.exe codex
where.exe claude

Expected:

squad setup should detect installed tools on Windows.

Likely cause:

The setup detection appears to invoke which <binary>. Windows normally uses where.exe, and which is not available by default.

2. HOME not set on Windows

Run:

squad setup codex

Observed:

Error: HOME not set

Caused by:
    environment variable not found

Expected:

On Windows, squad should fall back to USERPROFILE or another standard home-directory API instead of requiring HOME.

3. Generated Codex SKILL.md has invalid YAML

After setting HOME and running:

squad setup codex

The generated file is:

%USERPROFILE%\.codex\skills\squad\SKILL.md

It starts with:

---
name: squad
description: Join squad multi-agent collaboration. Usage: $squad <role> [custom-id]
squad-version: 0.7.6
---

Codex CLI then reports:

Skipped loading 1 skill(s) due to invalid SKILL.md files.
%USERPROFILE%\.codex\skills\squad\SKILL.md: invalid YAML: mapping values are not allowed in this context at line 2 column 57

Expected:

The description should be quoted, for example:

description: "Join squad multi-agent collaboration. Usage: $squad <role> [custom-id]"

Suggested fixes

  • Use a cross-platform executable lookup crate/API, or use where.exe on Windows and which on Unix.
  • Resolve the home directory using a cross-platform home-dir mechanism, falling back to USERPROFILE on Windows.
  • Quote generated YAML frontmatter strings that contain : or other YAML-special characters.

Thanks for publishing Windows builds. The core binary works; these issues seem specific to the setup/install integration path on Windows.

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