Troubleshooting
bytemind: command not found
The binary is installed but not on your PATH.
Fix: Add the install directory to your PATH:
export PATH="$HOME/bin:$PATH"Add this to ~/.bashrc, ~/.zshrc, or your shell profile to make it permanent. On Windows, use:
$target = "$env:USERPROFILE\bin"
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if (-not (($userPath -split ";") -contains $target)) {
[Environment]::SetEnvironmentVariable("Path", ($target + ";" + $userPath), "User")
}
$env:Path = $target + ";" + $env:PathWindows Still Shows the Old Version After Updating
Symptom: the install script downloads the latest version, but bytemind --version still prints an older version.
Fix: Check which binary PowerShell is resolving:
Get-Command bytemind -All | Select-Object Source
& "$env:USERPROFILE\bin\bytemind.exe" --versionIf the second command prints the new version but the first Get-Command result is not $env:USERPROFILE\bin\bytemind.exe, move the new install directory to the front of your user PATH:
$target = "$env:USERPROFILE\bin"
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
$parts = $userPath -split ";" | Where-Object { $_ -and ($_ -ine $target) }
[Environment]::SetEnvironmentVariable("Path", ($target + ";" + ($parts -join ";")), "User")
$env:Path = $target + ";" + $env:Path
bytemind --versionWindows WSL Error When Running the Bash Install Command
Symptom: after running curl ... install.sh | bash in PowerShell or CMD, you see an ext4.vhdx, HCS, Bash/Service/CreateInstance, or WSL mount error.
Fix: This is a WSL environment error, not a ByteMind package error. In a Windows terminal, use the PowerShell install script:
iwr -useb https://raw.githubusercontent.com/1024XEngineer/bytemind/main/scripts/install.ps1 | iexOnly use install.sh | bash after you are inside a working WSL/Linux shell. WSL ~/bin/bytemind and Windows %USERPROFILE%\bin\bytemind.exe are different files.
Windows Uninstall Says the Path Does Not Exist
Symptom: in PowerShell, rm ~/bin/bytemind reports that C:\Users\<you>\bin\bytemind does not exist.
Fix: The Windows binary is named bytemind.exe; remove the file with the .exe suffix:
Remove-Item "$env:USERPROFILE\bin\bytemind.exe"If the command is running from another directory, check the actual path before deleting:
Get-Command bytemind -All | Select-Object Source
Remove-Item "<path to bytemind.exe from the previous command>"Provider Authentication Failed
Symptom: 401 Unauthorized or authentication failed in the output.
Check:
provider.api_keyor the env var named inprovider.api_key_envis set and correctprovider.base_urlpoints to the right endpoint (no trailing slash, correct version path)provider.modelexists on your provider plan
# Quick test
curl -s -H "Authorization: Bearer $OPENAI_API_KEY" \
https://api.openai.com/v1/models | head -c 200If the curl returns models, your key is valid. If ByteMind still fails, verify the base_url in config exactly matches the working curl URL.
Agent Stops Too Early
Symptom: The agent outputs a partial result and says it hit the iteration limit.
Fix: Raise max_iterations:
bytemind -max-iterations 64Or set it permanently in your config:
{ "max_iterations": 64 }Config File Not Loaded
Symptom: ByteMind behaves as if no config exists (uses defaults).
Check the config load order:
~/.bytemind/config.jsonin the home directory.bytemind/config.jsonin the current workspace (optional project overrides)
New users should put common settings in the user config, not in ~/bin or %USERPROFILE%\bin. Run bytemind -v to see which config file was loaded.
Config JSON Reports invalid character 'ï'
Symptom: after creating ~/.bytemind/config.json in Windows PowerShell, ByteMind exits with invalid character 'ï' looking for beginning of value.
Fix: rewrite the file as UTF-8 without BOM:
$path = "$env:USERPROFILE\.bytemind\config.json"
$utf8NoBom = New-Object System.Text.UTF8Encoding($false)
$text = [System.IO.File]::ReadAllText($path, [System.Text.Encoding]::UTF8)
[System.IO.File]::WriteAllText($path, $text, $utf8NoBom)Windows PowerShell 5.1 writes UTF-8 with BOM when using Set-Content -Encoding utf8; PowerShell 7+ uses UTF-8 without BOM.
Workspace Is Too Large or Too Broad
Symptom: when started from your home directory, a drive root, Downloads, Desktop, or a very large folder, ByteMind reports that the current directory is too broad or feels slow.
Fix: Change into a specific code repository or project subdirectory before starting:
Set-Location D:\code\my-project
bytemindYou can also specify the workspace explicitly from anywhere:
bytemind -workspace D:\code\my-projectAvoid using a large folder with many unrelated files as the workspace. The install directory %USERPROFILE%\bin / ~/bin only stores the binary and is not a workspace.
Session Not Found After Resume
Symptom: /resume <id> reports session not found.
Check:
- You are in the same working directory where the session was created
- The session exists in ByteMind's home directory
BYTEMIND_HOMEenv var is not pointing to a different directory
Sandbox Blocks Writes
Symptom: The agent fails to write a file with a permission error even though the path looks valid.
Fix: Add the path to writable_roots in your config:
{
"sandbox_enabled": true,
"writable_roots": ["./src", "./docs"]
}Or disable sandbox for local development:
{ "sandbox_enabled": false }Streaming Output is Garbled
Symptom: Output looks corrupted or shows raw escape codes.
Fix: Disable streaming:
{ "stream": false }This is more common in non-TTY environments (e.g. piped output, certain CI runners).
Context Window Exceeded
Symptom: The agent warns about context usage and stops mid-task.
Options:
- Start a fresh session (
/new) for long conversations - Break the task into smaller pieces
- Adjust
context_budget.warning_ratioandcontext_budget.critical_ratiothresholds
See Also
- FAQ — common questions and answers
- Configuration — config options for tuning behavior
- Installation — PATH and version pinning