@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
44 lines (29 loc) • 1.39 kB
Markdown
# Windows Setup
Pi uses Git Bash by default on Windows. Checked locations (in order):
1. Custom path from `~/.senpi/agent/settings.json`
2. Git Bash (`C:\Program Files\Git\bin\bash.exe`)
3. `bash.exe` on PATH (Cygwin, MSYS2, WSL)
For most users, [Git for Windows](https://git-scm.com/download/win) is sufficient.
## PowerShell Tool
The optional `powershell` tool runs commands through `pwsh.exe` when available, otherwise Windows PowerShell. It starts PowerShell with `-NoProfile -NonInteractive -ExecutionPolicy Bypass`. Administrator-enforced execution policies can still take precedence.
Use `defaultTools` to replace the model-facing `bash` tool:
```json
{
"defaultTools": ["read", "powershell", "edit", "write"]
}
```
`["-bash", "+powershell"]` does the same while keeping any other default tools you configured.
Or enable both while comparing behavior:
```json
{
"defaultTools": ["read", "bash", "powershell", "edit", "write"]
}
```
The `!` and `!!` editor commands still use Bash.
Whenever the `eval` tool is available, `bash`, `powershell` and `grep` run only inside eval cells as `tool.bash(...)`, `tool.powershell(...)` and `tool.grep(...)`. They declare `exposure: "eval"` and remain directly callable when enabled without `eval`; see [Settings](settings.md#eval-only-tools).
## Custom Bash Path
```json
{
"shellPath": "C:\\cygwin64\\bin\\bash.exe"
}
```