Skip to content

[Spec 0013] Document OS dependencies and add codev-doctor - #32

Merged
waleedkadous merged 2 commits into
mainfrom
builder/0013-document-os-dependencies
Dec 4, 2025
Merged

waleedkadous merged 2 commits into
mainfrom
builder/0013-document-os-dependencies

Conversation

@waleedkadous

Copy link
Copy Markdown
Contributor

Summary

  • Add comprehensive Prerequisites section to README.md with dependency tables for core deps (Node.js, tmux, ttyd, git, Python) and AI CLIs
  • Create agent-farm/src/utils/deps.ts for programmatic dependency checking with version validation
  • Update af start to check all core dependencies (not just ttyd) with helpful error messages
  • Add codev/bin/codev-doctor shell script for full environment verification
  • Update INSTALL.md to use codev-doctor as primary verification step

Test plan

  • Run ./codev/bin/codev-doctor - verifies all dependencies with versions
  • Build agent-farm TypeScript (npm run build) - compiles without errors
  • Verify deps.ts is properly exported from utils/index.ts
  • Check version comparison logic handles edge cases (e.g., "3.3a" -> "3.3")

🤖 Generated with Claude Code

- Add Prerequisites section to README.md with dependency tables
- Create agent-farm/src/utils/deps.ts for dependency checking with versions
- Update start.ts to check all core deps (node, tmux, ttyd, git) not just ttyd
- Create codev/bin/codev-doctor script for full environment verification
- Update INSTALL.md Step 5 to use codev-doctor for verification
@waleedkadous

Copy link
Copy Markdown
Contributor Author

3-Agent Review (Claude, Gemini, Codex)

Overall: APPROVE with revisions

The implementation is solid and comprehensive. Address these issues before merge:

High Priority

Version warnings should be errors for Node

  • codev-doctor exits 0 when Node is below 18.0 (just warns)
  • But agent-farm declares engines.node: >=18.0.0 and won't run
  • Users get false sense of readiness
  • Fix: Change from warn to fail for Node version check (and arguably tmux/ttyd too)

Medium Priority

Unparseable versions default to OK

  • In deps.ts, if versionParser returns null, versionOk is forced to true
  • Could accept too-old versions silently (e.g., ttyd version 1.6 without patch)
  • Fix: Consider treating parse failures as warnings instead of silent pass

Low Priority

OS-specific hints inconsistent

  • codev-doctor mixes brew (macOS) and apt (Linux) hints
  • git says apt install git even on macOS
  • Fix: Detect OSTYPE or provide both hints

Accepted Tradeoffs (no action needed)

  • Duplication between deps.ts and codev-doctor is OK (different purposes: runtime vs bootstrap)
  • Python not in CORE_DEPENDENCIES is OK (deps.ts is for agent-farm runtime, Python is for consult)

- Change version warnings to errors for Node.js, tmux, ttyd (agent-farm won't run)
- Add versionUnknown field to deps.ts, show warnings for unparseable versions
- Detect OS (OSTYPE) and provide platform-specific install hints
- git on macOS now shows 'xcode-select --install' instead of 'apt install git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant