Discover solutions to common issues with Gammacode installation and usage.
Common installation issues
Windows installation issues: errors in WSL
You might encounter the following issues in WSL: PATH detection issues: If you receive an error during installation, ensure that your WSL environment is properly configured and has the necessary dependencies installed. Command not found errors: If you seegammacode: command not found
when running gammacode
, the installation directory may not be in your PATH. You can fix this by:
- Adding
~/.local/bin
to your PATH in your shell configuration file - Restarting your shell or running
source ~/.bashrc
(or~/.zshrc
)
Linux and Mac installation issues: permission or command not found errors
When installing Gammacode,PATH
problems may prevent access to gammacode
.
You may also encounter permission errors if the installation directory is not user writable.
Recommended solution: Native Gammacode installation
Use the following command to run the native installer: macOS, Linux, WSL:~/.local/bin/gammacode
.
Make sure that you have the installation directory in your system PATH.
File permission issues: root access problems
Sometimes user files will have root access where Gammacode can’t write files directly. If you face permission denied issues: Linux/Mac:-
Change directory owner to user:
-
Fix file permissions:
-
For specific files:
- Right-click on the folder → Properties → Security
- Click “Edit” and select your username
- Grant “Full control” permissions
- Apply changes to all subfolders and files
Only use elevated permissions when necessary, as it can create security risks and ownership issues with generated files.
Authentication and permissions
Repeated permission prompts
If you find yourself repeatedly approving the same commands, you can configure permissions using yourgammacode.json
configuration file or by creating specific permission rules. See Permissions documentation.
Authentication issues
If you’re experiencing authentication problems:- Get a fresh API key from your profile at https://gammacode.dev/profile
- Remove existing auth file:
- Re-authenticate with the new API key:
Performance and stability
High CPU or memory usage
Gammacode is designed to work with most development environments, but may consume significant resources when processing large codebases. If you’re experiencing performance issues:- Use
/compact
regularly to reduce context size - Close and restart Gammacode between major tasks
- Consider adding large build directories to your
.gitignore
file - Limit MCP server usage if you have many connected
Command hangs or freezes
If Gammacode seems unresponsive:- Press Ctrl+C to attempt to cancel the current operation
- If unresponsive, you may need to close the terminal and restart
- Check if any MCP servers are causing the hang
- Try running with fewer agents or tools enabled
Slow or incomplete search results on WSL
Disk read performance penalties when working across file systems on WSL may result in slower performance when using Gammacode on WSL. Solutions:- Submit more specific searches: Reduce the number of files searched by specifying directories or file types
- Move project to Linux filesystem: Ensure your project is located on the Linux filesystem (
/home/
) rather than the Windows filesystem (/mnt/c/
) - Use native Windows instead: Consider running Gammacode natively on Windows instead of through WSL
Agent and MCP issues
Agents not responding
If your custom agents aren’t working properly:-
Check agent configuration:
-
Verify agent file format:
- Ensure YAML frontmatter is properly formatted
- Check that
description
andmode
fields are present - Validate that the agent file has a
.md
extension
-
Test agent creation:
MCP server connection issues
If MCP servers aren’t connecting:-
Check server status:
-
Verify configuration:
-
Test server connectivity:
- For remote servers: Check if the URL is accessible
- For local servers: Verify the command can run independently
- Check environment variables are set correctly
-
Review server logs:
Custom commands not working
If your custom slash commands aren’t available:-
Check command files:
-
Verify file format:
- Ensure files have
.md
extension - Check YAML frontmatter is properly formatted
- Verify
description
field is present
- Ensure files have
-
Test command creation:
- Create a simple test command manually
- Check if built-in commands like
/help
work - Restart Gammacode after adding new commands
GitHub Actions issues
GitHub Action not triggering
If Gammacode GitHub Actions aren’t responding:-
Check workflow file:
- Verify
.github/workflows/gammacode.yml
exists - Ensure triggers are properly configured
- Check for YAML syntax errors
- Verify
-
Verify API key:
- Confirm
GAMMACODE_API_KEY
is set in repository secrets - Test the API key works locally
- Confirm
-
Check permissions:
- Ensure the GitHub App has necessary permissions
- Verify repository permissions include Contents, Issues, and Pull requests
-
Test trigger phrases:
- Use
/gammacode
or/gc
(not@gammacode
) - Ensure comments are in issues or PRs, not elsewhere
- Use
Action failing with errors
Common solutions:- Check workflow logs in the Actions tab of your repository
- Verify API key is valid and not expired
- Check rate limits - you may be hitting API limits
- Review permissions - ensure the workflow has required permissions
- Update action version - make sure you’re using
@main
Configuration issues
Configuration file problems
If Gammacode isn’t reading your configuration:-
Check file location:
-
Validate JSON syntax:
-
Reset configuration:
Environment variable issues
If environment variables aren’t being recognized:-
Check variable names:
- Verify correct spelling and case
- Ensure variables are exported in your shell
-
Test variable access:
-
Restart shell:
Model and API issues
API rate limiting
If you’re hitting rate limits:- Check your usage at https://gammacode.dev/profile
-
Reduce request frequency:
- Use
/compact
to reduce context size - Limit concurrent operations
- Configure appropriate timeouts
- Use
-
Optimize prompts:
- Be more specific in requests
- Break large tasks into smaller parts
- Use appropriate models for different tasks
Model not responding
If the AI model isn’t responding:- Verify your API key has sufficient credits at https://gammacode.dev/profile
- Try a different model:
- Check for service outages or maintenance windows
File and directory issues
Cannot read/write files
If Gammacode can’t access files:-
Check file permissions:
-
Verify directory permissions:
-
Fix ownership issues:
Project structure not recognized
If Gammacode isn’t understanding your project:-
Ensure you’re in the project root:
-
Check for configuration files:
- Look for
package.json
,requirements.txt
,Cargo.toml
, etc. - Verify
.git
directory exists
- Look for
-
Initialize project context:
Getting more help
If you’re experiencing issues not covered here:- Review documentation: Check relevant sections for your specific use case
- Check the community: Visit our Discord or GitHub discussions
- Contact support: Use the support channels at https://gammacode.dev/support
- Ask Gammacode directly: Gammacode has built-in access to its documentation and can help troubleshoot issues
Useful diagnostic commands
Reporting bugs
When reporting issues, please include:- Operating system and version
- Gammacode version (
gammacode --version
) - Error messages (full text)
- Steps to reproduce the issue
- Configuration files (with sensitive data removed)
- Relevant logs or output