Troubleshooting
This page is organized by symptom, likely causes, and practical fixes.
1) neocode command not found
Symptom
- Terminal says
command not found - Windows says the executable is not recognized
Likely causes
- Installation did not finish
- Install directory is not in
PATH - Current terminal has not loaded updated environment variables
Fix
- Rerun the installer from Install & First Run.
- Close and reopen the terminal.
- Run
neocode version.
2) API key is set but auth still fails
Symptom
- Model requests return
unauthorized,invalid api key, or similar auth errors
Likely causes
- The key was set in a different terminal session
- Active provider does not match the environment variable you set
- The key expired or lacks access to the selected model
Fix
- Use
/providerto confirm the active provider. - Check the environment variable table in Configuration.
- Set the variable in the same terminal that launches NeoCode, then restart NeoCode.
3) Provider or model switch does not apply
Symptom
- You switched provider or model, but responses still look unchanged
- Model list is empty or requests fail after switching
Likely causes
- Current session still carries old task context
- API key for the new provider is missing
- Selected model is unavailable for your account
Fix
- Confirm the current choices with
/providerand/model. - Run
/compactto reduce old context impact. - Start a new session and retry the same prompt.
4) Too many permission prompts
Symptom
- File edits or command runs repeatedly ask for approval
- You thought you allowed an action, but NeoCode asks again
Likely causes
- The current session has not approved similar requests with
Allow session - Tool arguments changed, so it is a new operation
- The action is risky enough to require confirmation
Fix
- Use
Allow sessionfor stable, trusted repeated actions. - For unknown repositories or risky commands, review each prompt and use
Allow onceonly for clearly safe single requests. - Use
Rejectwhen the path, command, or scope is not what you expect. - When unsure, ask the agent to explain the command and its impact first.
See Tools & Permissions for details.
5) Long sessions drift or degrade
Symptom
- Responses repeat
- The agent forgets recent instructions
- New tasks still reference old task context
Likely causes
- The session is too long
- History contains too much noise
- The new task is unrelated to the previous task
Fix
- Run
/compact. - If it still drifts, start a new session.
- For unrelated work, start a new session and restate the goal.
6) MCP tool is unavailable
Symptom
- The agent cannot see your MCP tool
- The tool appears but calls fail
Likely causes
- MCP server is not enabled
- Startup command, working directory, or environment variable is wrong
- Tool arguments do not match the MCP server requirements
Fix
- Confirm
enabled: true. - Confirm required environment variables are set in the same terminal.
- Follow the verification steps in MCP Tools: list tools first, then try one simple call.
7) External integration cannot connect
External integrations usually depend on a local service being running, listening on the expected address, and using the expected auth setup.
Normal chat usage does not require this. If you are building an external integration, start from Gateway Reference.
Still blocked?
- Return to Install & First Run and retry the minimal path
- Check Configuration against your active provider
- Read Tools & Permissions for approval behavior
