Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,46 @@ cargo build --release -p rusty-claude-cli
cp target/release/hackcode ~/.local/bin/
```

Works on **macOS** (Apple Silicon & Intel) and **Linux** (x64 & ARM64). Runs natively on **Kali Linux**.
Works on **macOS** (Apple Silicon & Intel), **Linux** (x64 & ARM64), and **Windows** (x64). Runs natively on **Kali Linux**.

### Windows (PowerShell)

Build from source:

```powershell
git clone https://github.com/itwizardo/hackcode.git
cd hackcode\rust
cargo build --release -p rusty-claude-cli
```

Add to your PowerShell profile (`$PROFILE`):

```powershell
$env:HOME = $env:USERPROFILE
$env:PATH += ";C:\path\to\hackcode\rust\target\release"
```

**Using with Anthropic API** (instead of local Ollama):

The default model requires Ollama. To use the Anthropic API, set your API key and add a wrapper function to your profile:

```powershell
$env:ANTHROPIC_API_KEY = "sk-ant-..." # or set via system env vars
function hackcode { hackcode.exe --model sonnet @args }
```

Verify the installation:

```powershell
hackcode doctor # Health check
hackcode status # Workspace info
hackcode --help # Full command list
```

**Windows notes:**
- Sandbox isolation (Linux `unshare`) is unavailable; filesystem mode `workspace-only` remains active
- Some test suites use Unix-only APIs and will not compile on Windows — this does not affect the binary
- The `HOME` environment variable must be set for credential discovery to work

---

Expand Down