Skip to content

Packaged agent commands fail in Windows PowerShell because Unix env syntax is mandatory #111

Closed

Description

@PionneerZ

The packaged Codex, Claude Code, Cursor, OpenClaw, and skills.sh instructions require every CLI invocation to start with Unix env NAME=value ... syntax. Stock Windows PowerShell has no env executable, so the command fails before Node, calle, or npx starts.

Tested at commit e497e1a01e171f9559f87e0f998318a9efc06609 on Windows PowerShell 7 with Node.js v24.12.0.

Reproduction

Run the first documented Codex command literally:

Get-Command env -ErrorAction SilentlyContinue
env CALLE_SOURCE=codex CALLE_INTEGRATION=codex_plugin CALLE_INTEGRATION_VERSION=0.1.11 node packages/cli/bin/calle.js --version

Actual result:

Get-Command env: NOT FOUND
env: The term 'env' is not recognized as a name of a cmdlet, function,
script file, or executable program.

Changing the tail to either calle --help or npx -y @call-e/cli --help gives the same pre-execution failure because every fallback retains the shared env prefix.

Control experiment using native PowerShell syntax:

$env:CALLE_SOURCE = 'codex'
$env:CALLE_INTEGRATION = 'codex_plugin'
$env:CALLE_INTEGRATION_VERSION = '0.1.11'
node packages/cli/bin/calle.js --version

Actual: 0.5.0, exit code 0.

Scope

At this commit there are 145 command lines beginning with env CALLE_SOURCE under packages/, skills/, and docs/. The incompatible mandatory pattern appears in:

  • packages/codex-plugin/plugin/skills/calle/SKILL.md:56-80
  • packages/codex-plugin/plugin/skills/calle/references/commands.md
  • packages/claude-plugin/plugin/skills/calle/SKILL.md
  • packages/cursor-plugin/plugin/skills/calle/SKILL.md
  • packages/openclaw-cli-skill/skills/phone-call-calle/SKILL.md
  • skills/calle/SKILL.md
  • docs/install/CALL-E-installation-guide.md

This blocks --help, auth, MCP readiness, planning, execution, and status on a normal Windows PowerShell host. The agent instructions also declare the attribution prefix mandatory, so a conforming agent cannot safely omit it.

Suggested fix

Prefer a cross-platform launcher or internal CLI attribution flags so the command itself is shell-independent. As a minimal documentation fix, add explicit Bash, PowerShell, and cmd.exe forms and instruct integrations to select based on the current shell. Add a Windows CI check that launches at least one literal generated readiness command under pwsh.

All repository tests and pnpm check pass, showing the current validation gap. Targeted searches of the current public issues for PowerShell and env CALLE_SOURCE found no duplicate.

This report and reproduction were prepared with AI coding assistance.

Activity

  1. Ray-56 commented on Sep 6, 2026

    @Ray-56
    Collaborator

    Priority: P1 — the documented command contract blocks all packaged integrations on stock Windows PowerShell.

    I verified 145 command lines beginning with env CALLE_SOURCE= across packages/, skills/, and docs/. PowerShell does not provide a POSIX env executable, so the mandatory attribution prefix prevents --help, authentication, readiness checks, planning, and call commands from starting at all. This is not a fallback problem because every fallback retains the same prefix.

    Recommended remediation:

    1. Prefer shell-independent CLI attribution options or a cross-platform launcher, then have every packaged skill generate one command form that reaches the verified @call-e/cli executable. Coordinate this with @call-e/cli and @call-e/calle both install a 'calle' binary, and the plugin skills prescribe the bare command #109 so the fix does not continue relying on an ambiguous bare calle from PATH.
    2. If shell-specific forms are retained temporarily, explicitly select Bash, PowerShell, or cmd syntax before execution and fail closed for an unknown shell. Do not interpolate user-controlled values into shell command strings.
    3. Update all synchronized Codex, Claude Code, Cursor, OpenClaw, skills.sh, and install-document copies in one change. Add literal-command tests under pwsh and a Windows GitHub Actions job covering help, auth status, and a no-call readiness command; ensure attribution is preserved.

    Release decision: Patch releases recommended for each affected published integration package and @call-e/cli if it gains attribution options, with corresponding changesets. The private/productized skills.sh or OpenClaw distribution boundary may need a maintainer decision.

  2. JJasonSun commented on Sep 8, 2026

    @JJasonSun
    Contributor

    The coordinated fixes have merged: #115 replaces the mandatory Unix env prefix in all five skills with a bundled launcher that verifies the MCP CLI and forwards structured arguments. It applies attribution through the child process environment. #119 additionally provides per-command --source, --integration, and --integration-version overrides.

    CI passed on the merged code, including all 67 documented argument arrays in PowerShell 7, Windows PowerShell, and cmd, plus Bash coverage on Linux. The checks cover help, authentication/readiness, attribution, and call/recovery flows against a local test server.

    The npm CLI and plugin updates are still pending in #96. As of September 8, npm latest for @call-e/cli remains 0.5.0; this issue's automatic closure records the merge, not availability of the package update.

  3. JJasonSun commented on Sep 10, 2026

    @JJasonSun
    Contributor

    The cross-platform launcher and attribution fixes from #115 and #119 now ship in @call-e/[email protected], @call-e/[email protected], @call-e/[email protected], and @call-e/[email protected] through release #96.

    The release workflow and the release commit's Linux/Windows CI passed, including documented Windows command checks. I also installed the npm packages and verified their bundled launchers against the published CLI. These checks used help/version commands or local test servers, with no live calls.

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