About Terminal Integration
Cheetah AI provides full terminal integration, allowing you to execute shell commands, manage long-running processes, and automate development workflows through natural language. Instead of switching between your editor and terminal, you can ask the AI to run commands, interpret their output, and take action based on the results. Terminal integration is particularly powerful in Agent mode, where the AI can run commands as part of larger workflows. For example, when implementing a feature, the Agent might install dependencies, run tests, and fix any failures automatically.Running Commands
Execute any shell command by asking the AI in natural language:Command Output Handling
The AI doesn’t just run commands - it reads and interprets the output to provide meaningful assistance: Error Interpretation - When a command fails, the AI analyzes the error message and explains what went wrong. It can often suggest fixes or automatically attempt to resolve the issue. Result Analysis - After running tests, the AI can summarize which tests passed and failed, identify patterns in failures, and suggest fixes for failing tests. Workflow Continuation - Based on command results, the AI decides what to do next. If tests pass, it might proceed to the next step. If they fail, it might investigate and fix the issues. Example interaction:Working Directory
By default, commands run in your workspace root directory. You can specify a different directory when needed:Persistent Terminals
Some processes need to run continuously, like development servers, file watchers, or database connections. Cheetah AI supports persistent terminals for these long-running processes.Starting Background Processes
Managing Background Processes
You can check on and control background processes:Why Use Persistent Terminals?
Persistent terminals solve several problems: Non-blocking - Regular commands block the AI until they complete. Persistent terminals let the AI continue working while processes run in the background. Continuous processes - Development servers, watchers, and similar tools are designed to run continuously. Persistent terminals keep them running as long as you need them. Output access - You can check the output of background processes at any time, which is useful for monitoring logs or debugging issues.Common Use Cases
Package Management
Git Operations
Build and Test
Database Operations
Command Timeout Behavior
Regular commands have timeout behavior to prevent blocking: Standard commands - Commands timeout after 8 seconds of inactivity. This handles most quick commands like installs, builds, and tests. Long operations - For commands that take longer, the AI waits for completion signals rather than timing out. Background processes - Processes in persistent terminals run indefinitely until you stop them.Safety Considerations
The AI exercises caution with potentially destructive commands: Confirmation required - Commands that could cause data loss or system changes require confirmation:rm -rfand recursive deletions- Database drops or truncations
- Force pushes to remote repositories
- System-level modifications
Tips and Best Practices
Avoid Pagers for Long Output
Commands likegit diff or git log may open interactive pagers (vim, less) that can block execution. Pipe output to cat to avoid this:

