Repository navigation
Description
Missing Dependencies & Config Defaults on Windows
Context
When you install codev on Windows and run codev doctor to check your setup, it fails with multiple errors about missing dependencies and unset configuration. These aren't bugs in codev itself — they're missing prerequisites that codev doesn't set up automatically on Windows.
A new Windows user installs codev, runs codev doctor, and sees a wall of errors. They don't know what jq is, what core.longpaths means, or why script-shell matters. The UX issues (#8, #11) make it even harder — commands that should "just work" require extra flags or arguments.
Environment
- OS: Windows 11 (build 22631)
- Node: v22.23.3
- npm: 10.9.9
- pnpm: 10.33.0
- codev: 3.3.8
Steps to Reproduce
Finding #2: jq missing
- Install codev:
npm install -g @cluesmith/codev - Run doctor:
codev doctor - Observe:
✗ jq not found Doctor exiting with code 1 - Run forge-jira tests:
pnpm --filter @cluesmith/codev test -- forge-jira - Observe 12 tests fail with exit code 127 (command not found)
Finding #3: core.longpaths unset
- Run doctor:
codev doctor - Observe warning:
⚠ core.longpaths is not set
Finding #4: script-shell unset (#1945)
- Open a fresh terminal (no script-shell configured)
- Run build:
npm run build - Observe:
'scripts' is not recognized as an internal or external command - Run tests:
pnpm exec vitest - Observe:
'vitest' is not recognized as an internal or external command
Finding #8: porch status needs explicit project ID
- Create multiple codev projects (or have 364+ from other work)
- Run:
porch status - Observe it fails or picks the wrong project
- Must run:
porch status 1488(explicit ID)
Finding #11: codev init --yes requires project name
- Run:
codev init --yes - Observe:
Project name is required
Expected Behavior
codev doctorshould pass (or clearly explain what to install)npm run buildshould work out of the boxporch statusshould auto-detect the current projectcodev init --yesshould work with a default name
Actual Behavior
Finding #2: jq missing
codev doctor uses jq (a CLI JSON processor) to parse JSON. Without it, doctor exits 1 and 12 forge-jira tests fail. jq isn't installed by default on Windows.
Finding #3: core.longpaths unset
Git has a 260-character path limit on Windows by default. core.longpaths allows longer paths. Without it, deep worktree paths (.builders/spir-1488/codev/specs/...) can fail.
Finding #4: script-shell unset (#1945)
Git uses script-shell config to determine which shell to use for npm run scripts. Without it, Windows uses cmd.exe instead of bash, causing 'scripts' is not recognized errors.
Finding #8: porch status needs explicit ID
With 364+ projects in the state database, porch can't auto-detect which project you mean. You must provide an explicit ID.
Finding #11: codev init --yes needs project name
The --yes flag skips prompts but still requires a project name argument.
Root Cause
These are all missing prerequisites and defaults that codev doesn't set up on Windows:
| Issue | What's missing | Why it matters |
|---|---|---|
| #2 jq | CLI JSON processor | codev doctor and forge-jira tests need it |
| #3 core.longpaths | Git config for long paths | Deep worktree paths fail without it |
| #4 script-shell | Git config for shell | npm run build fails without it |
| #8 porch status | Auto-detection | UX issue with many projects |
| #11 codev init | Default project name | UX issue with --yes flag |
On Linux/Mac, some of these are pre-installed (jq) or configured differently (longpaths). On Windows, none are set up by default.
Possible Fix
Finding #2: Auto-install jq or use Node-based JSON parsing
Replace jq calls in doctor with Node.js JSON parsing:
// Instead of: jq -r '.field' file.json
// Use: node -e "console.log(require('./file.json').field)"Or auto-install jq on first run:
# In codev doctor or init
winget install jqlang.jqFinding #3: Set core.longpaths during codev init
git config --global core.longpaths trueFinding #4: Set script-shell during codev init (#1945)
git config --global core.script-shell "C:\\Program Files\\Git\\bin\\bash.exe"Or detect Git Bash and set it automatically.
Finding #8: Auto-detect project from cwd
If porch status is run from a directory that matches a project, use that project.
Finding #11: Default project name from directory
If --yes is passed without a name, use the current directory name.
Evidence
Doctor output
$ codev doctor
✗ jq not found
⚠ core.longpaths is not set
⚠ script-shell is not set
Doctor exiting with code 1
Build failure
$ npm run build
'scripts' is not recognized as an internal or external command
Test failures
$ pnpm --filter @cluesmith/codev test -- forge-jira
12 tests failed (exit code 127)
Impact
- New Windows users can't use codev — doctor fails, build fails
- 12 tests fail — forge-jira tests need jq
- Poor first impression — errors without explanation
- Workarounds exist but aren't documented
Related
- Findings Context Window Optimization - AI Needs Project Knowledge Without Breaking Limits #2, Scaling Crisis - AI Autonomy Decreases as Projects Grow #3, Installation Process Failures - Multiple Steps Being Skipped #4, API Research Failures - AI Assumes APIs Exist Without Verification #8, Documentation Overload - CLAUDE.md Becomes Too Large #11 in the Windows findings artifact
- Issue #1945 exists for script-shell
- Related to Windows-specific setup, not core codev bugs
Activity