Documentation Index
Fetch the complete documentation index at: https://cli.terramind.com/llms.txt
Use this file to discover all available pages before exploring further.
Zed Editor Integration
Zed has native support for the Agent Client Protocol. Here’s how to set up Terramind with Zed.Prerequisites
- Install Terramind:
- Verify installation:
Configuration
Add Terramind to your Zed configuration file: Location:~/.config/zed/settings.json
Using Terramind in Zed
- Open your project in Zed
- Open the AI assistant panel
- Select Terramind from the agent list
- Start coding with AI assistance!
Custom Working Directory
To specify a working directory:Multiple Projects
Set up different Terramind instances for different projects:Manual Testing
Test the ACP server manually before editor integration:Start the Server
Send Test Request
Initialize the protocol:Troubleshooting
Server not starting
Server not starting
Symptoms: Terramind ACP server fails to start in editorSolutions:
- Verify Terramind is installed:
which terramind - Check the command works in terminal:
terramind acp - Review editor logs for error messages
- Ensure correct path in configuration
No response from Terramind
No response from Terramind
Symptoms: Prompts sent but no response receivedSolutions:
- Check API key is configured:
terramind auth - Verify network connectivity
- Check for error messages in terminal
- Try with
--debugflag:terramind acp --debug
File access denied
File access denied
Symptoms: Terramind can’t read/write filesSolutions:
- Check file permissions in your project
- Verify working directory is correct
- Ensure
.gitignoreisn’t blocking necessary files - Check editor has file system access
Wrong project context
Wrong project context
Symptoms: Terramind accessing wrong filesSolutions:
- Verify
--cwdargument is correct - Check you’re in the right workspace
- Restart the editor/server
- Clear any cached state
Advanced Configuration
Environment Variables
Set environment variables for the ACP server:Custom Port (Future)
For network-based communication (when supported):MCP Server Configuration
Configure MCP servers for extended capabilities: First, add MCP servers to your Terramind config:Editor-Specific Features
Zed Features
When using Terramind in Zed:- Inline suggestions as you type
- Quick actions on selected code
- Chat interface for conversations
- File context automatically included
- Multi-file editing support
Keybindings
Set up custom keybindings in Zed for quick access:Best Practices
Prompt Engineering
Get better results with clear prompts: Good:Context Management
Help Terramind understand your intent:- Mention specific files when relevant
- Describe the desired outcome clearly
- Reference related code that should be considered
- Specify patterns to follow
Iterative Development
Work iteratively with Terramind:- Start broad: “Create a user profile component”
- Refine: “Add form validation”
- Enhance: “Add loading states and error handling”
- Polish: “Add accessibility attributes”
Performance Tips
Optimize Response Time
- Be specific to reduce unnecessary analysis
- Limit context to relevant files only
- Use focused prompts for quick tasks
- Choose appropriate models (Haiku for speed)
Reduce Token Usage
- Clear old conversations when switching topics
- Reference files by name instead of pasting content
- Use concise language in prompts
- Avoid redundant context
Security Considerations
File Access
Terramind requests permission before:- Writing or modifying files
- Executing bash commands
- Accessing sensitive files
API Keys
- Never commit API keys to repositories
- Use environment variables for sensitive data
- Rotate keys periodically
- Restrict permissions to minimum necessary
Code Review
Always review AI-generated code:- Check for security issues
- Verify logic correctness
- Test thoroughly
- Follow team standards
Next Steps
Architecture Details
Learn how ACP works under the hood
CLI Usage
Use Terramind from the command line
