Windows 설정
Archon은 Windows에서 두 가지 방식으로 실행할 수 있습니다.
- Bun을 사용한 native Windows: 기본 사용(server, Web UI, 단순 workflow)에 동작합니다. WSL2는 필요하지 않습니다. Bun for Windows를 설치하고 repo를 clone한 뒤
bun install && bun run dev를 실행합니다. - WSL2(권장): 전체 호환성에 필요합니다. 특히 git worktree isolation, shell 기반 workflow step, Unix tool에 의존하는 CLI 기능에 필요합니다.
이 가이드의 나머지 부분은 전체 호환성을 위한 WSL2 setup을 다룹니다.
Why WSL2?
Section titled “Why WSL2?”Archon CLI는 Unix 전용 기능과 tool에 의존합니다.
- symlink를 사용하는 git worktree operation
- AI agent 실행을 위한 shell scripting
- Windows와 Unix에서 다르게 동작하는 file system operation
WSL2는 Windows에서 자연스럽게 실행되는 완전한 Linux environment를 제공합니다.
빠른 WSL2 설정
Section titled “빠른 WSL2 설정”-
WSL2 설치(Windows 10 version 2004+ 또는 Windows 11 필요):
Terminal window wsl --install기본적으로 Ubuntu가 설치됩니다. 안내가 나오면 컴퓨터를 재시작합니다.
-
Ubuntu 설정: Start menu에서 “Ubuntu”를 열고 username/password를 만듭니다.
-
WSL2에 Bun 설치:
Terminal window curl -fsSL https://bun.sh/install | bashsource ~/.bashrc -
Archon clone 및 설치:
Terminal window git clone https://github.com/coleam00/Archoncd Archonbun install -
CLI를 전역에서 사용할 수 있게 설정:
Terminal window cd packages/clibun link -
설치 확인:
Terminal window archon version
Windows file로 작업하기
Section titled “Windows file로 작업하기”WSL2는 /mnt/c/에서 Windows file(C: drive)에 접근할 수 있습니다.
archon workflow run assist --cwd /mnt/c/Users/YourName/Projects/my-repo "What does this code do?"성능을 위해서는 project를 /mnt/c/보다 WSL2 file system 안(~/projects/)에 두는 것이 좋습니다.
남아 있는 process(native Windows 전용)
Section titled “남아 있는 process(native Windows 전용)”증상: bun run dev 시작 후 Web UI가 응답 없이 spinning indicator만 보여주거나, 시작 시 EADDRINUSE error가 표시됩니다.
원인: 이전 bun 또는 node process가 여전히 port를 점유하고 있습니다. 보통 server를 중지하지 않고 terminal을 닫았을 때 발생합니다.
진단:
netstat -ano | findstr :3090마지막 column의 PID를 기록한 뒤 어떤 process인지 확인합니다.
tasklist | findstr 12345(12345를 netstat에서 확인한 실제 PID로 바꿉니다.)
수정: PID로 종료(권장):
taskkill /F /PID 12345남아 있는 process가 여러 개라면 다음을 실행합니다.
taskkill /F /IM bun.exetaskkill /F /IM node.exe문제 해결 가이드의 Port Conflicts도 참고하세요.
- VS Code Integration: VS Code에서 WSL2 file을 편집하려면 “Remote - WSL” extension을 설치합니다.
- Terminal: Windows Terminal은 WSL2 지원이 좋습니다.
- Git: Archon과 일관된 동작을 위해 WSL2 안에서 Git을 사용합니다.