- Introduction
- What is Terminal Intelligence?
- Installation
- Getting Started
- Interface Overview
- File Operations
- Editor Features
- AI Assistant
- Agentic Code Fixing
- Project-Wide Operations
- Git Integration
- Running Scripts
- Language Support
- Keyboard Shortcuts Reference
- Configuration
- Tips and Best Practices
- Troubleshooting
Welcome to Terminal Intelligence (TI), a lightweight CLI-based IDE with integrated AI assistance. This manual will guide you through all features and help you become productive quickly.
Terminal Intelligence combines a powerful code editor with AI-powered assistance, all within your terminal. Whether you're writing shell scripts, Python programs, Go applications, or markdown documentation, TI provides an intuitive interface with intelligent code assistance.
Terminal Intelligence is a split-window terminal application that provides:
- Code Editor (Left Pane): Full-featured text editor with syntax awareness, line numbers, and file management
- AI Assistant (Right Pane): Context-aware AI that can answer questions, explain code, and autonomously fix issues
- Integrated Git: Built-in Git operations without requiring external Git installation
- Multi-Language Support: Run and edit Bash, PowerShell, Python, Go, and Markdown files
- Agentic Capabilities: AI can read, analyze, and modify code across your entire project
Download the appropriate binary for your platform:
Linux (AMD64)
# Download and make executable
chmod +x ti-linux-amd64
./ti-linux-amd64Linux (ARM64)
chmod +x ti-linux-aarch64
./ti-linux-aarch64macOS (Intel)
chmod +x ti-darwin-amd64
./ti-darwin-amd64macOS (Apple Silicon)
chmod +x ti-darwin-arm64
./ti-darwin-arm64Windows
.\ti-windows-amd64.exe# Clone the repository
git clone https://github.com/user/terminal-intelligence.git
cd terminal-intelligence
# Build
go build -o ti cmd/ti/main.go
# Run
./tiOn first launch, TI will:
- Create a workspace directory (default:
~/ti-workspace) - Create a configuration directory (
~/.ti/) - Check for AI provider availability (Ollama, Gemini, or Bedrock)
Let's create your first script with TI:
-
Launch TI
./ti-linux-amd64
-
Create a New File
- Press
Ctrl+N - Type:
hello.sh - Press
Enter
- Press
-
Write Your Code
#!/bin/bash echo "Hello from Terminal Intelligence!"
-
Save the File
- Press
Ctrl+S - You'll see "File saved" in the status bar
- Press
-
Run Your Script
- Press
Ctrl+R - Output appears in the right pane
- Press
-
Ask the AI for Help
- Press
Tabto switch to AI input - Type:
explain this code - Press
Ctrl+Enterto send with code context - Read the AI's explanation in the response area
- Press
Congratulations! You've just created, saved, and run your first script with AI assistance.
┌─────────────────────────────────────────────────────────────────┐
│ Terminal Intelligence - Build #123 │
├──────────────────────────┬──────────────────────────────────────┤
│ │ │
│ EDITOR PANE (LEFT) │ AI ASSISTANT PANE (RIGHT) │
│ │ │
│ - Code editing │ Top: AI Input (ti> prompt) │
│ - Line numbers │ Bottom: AI Responses │
│ - Syntax awareness │ │
│ - File management │ │
│ │ │
├──────────────────────────┴──────────────────────────────────────┤
│ Status Bar: Shortcuts and Messages │
└─────────────────────────────────────────────────────────────────┘
The active pane is highlighted with a blue border. Press Tab to cycle through:
- Editor Pane - Edit your code
- AI Input - Type messages to the AI
- AI Response - Scroll through AI responses
The bottom status bar shows:
- Current keyboard shortcuts
- File save confirmations
- Error messages
- Operation status
Method 1: New File Prompt
- Press
Ctrl+N - Type the filename (e.g.,
script.py,notes.md,main.go) - Press
Enter
Method 2: From AI Code Blocks
- Ask AI to generate code
- Press
Ctrl+Yto select a code block - Press
Ctrl+Pto insert into editor - Press
Ctrl+Sto save with a filename
- Press
Ctrl+O - Navigate with
Up/Downarrow keys orj/k - Press
Enteron a file to open it - Use
..to navigate to parent directory - Folders are marked with
/suffix - Press
Escto cancel
Save Current File
- Press
Ctrl+S - If the file is new, you'll be prompted for a filename
Auto-Save on Code Insertion
- When inserting AI-generated code into an open file, it saves automatically
- Press
Ctrl+Xto close the current file - If there are unsaved changes, you'll be prompted to save
- Press
Ctrl+W - Navigate through directories with
Up/Down - Select
[ Select Current Directory ]to set as workspace - Use
.. (Parent Directory)to navigate up - Press
Enterto confirm - Press
Escto cancel
Cursor Movement
↑↓←→- Move cursor one character/lineHome- Jump to start of lineEnd- Jump to end of lineAlt+H- Go to top of fileAlt+G- Go to end of file
Text Input
- Type to insert text at cursor
Enter- Insert new lineBackspace- Delete character before cursorDelete- Delete character at cursor
Delete Operations
Alt+D, D- Delete current lineAlt+L- Delete current line (single key)Alt+D, W- Delete word from cursorAlt+W- Delete word from cursor (single key)Alt+D, 1-9- Delete N lines from cursor
Undo/Redo
Alt+U- Undo last changeAlt+R- Redo last undone change
In Editor Pane
↑↓- Scroll line by linePgUp/PgDn- Scroll page by pageHome/End- Jump to top/bottom
In AI Response Pane
- Same scrolling keys work when AI Response is active
- Use
Tabto switch to AI Response area first
Backup Picker
- Press
Ctrl+Bto open backup picker - View previous versions of your files
- Navigate with
Up/Down - Press
Enterto restore a backup - Press
Escto cancel
Ask questions and get explanations without modifying code:
Examples:
What is a closure in Python?
How do I handle errors in Go?
Explain the difference between let and const
What are the best practices for shell scripting?
With Code Context:
- Open a file in the editor
- Press
Tabto switch to AI input - Type your question
- Press
Ctrl+Enterto send with code context - The AI sees your code and provides context-aware answers
Force Conversational Mode
/ask <your question>
Guarantees the AI won't modify your code, only provide guidance.
Display Model Information
/model
Shows current AI provider, model, and configuration.
Edit Configuration
/config
Opens interactive configuration editor.
Show Help
/help
Displays keyboard shortcuts and commands (same as Ctrl+H).
Clear Chat History
- Press
Ctrl+Tto start a new chat session - Previous chat is automatically saved to
.ti/folder
Auto-Save
- Every chat session is automatically saved
- Saved to
.ti/session_token_chat_YYYYMMDD_HHMMSS.md
Load Previous Chat
- Press
Ctrl+L - Navigate with
Up/Down - Press
Enterto load a chat - Press
Escto cancel
When the AI generates code, you can interact with it directly:
Enter Code Block Selection Mode
- Press
Ctrl+Y - Use
Up/Downto navigate between code blocks - Press
Enterto view action options
Code Block Actions
- [0] Execute CMD - Run the code in an inline terminal
- View output in the terminal pane
- Use
Up/DownorPgUp/PgDnto scroll output - Press
Ctrl+Kto kill running process
- [1] / Ctrl+P Insert - Insert code into editor
- If file is open: appends to current file
- If no file: loads as unsaved buffer
- [2] / Esc Return - Return to code block selection
Example Workflow:
You: "write a Python script to list files"
AI: [generates code block]
You: Press Ctrl+Y → Select code → Press Enter → Choose Insert
Result: Code appears in editor, ready to save
The AI can autonomously read, analyze, and fix code in your open files.
Automatic Detection The AI detects when you want code modifications based on keywords:
- "fix", "change", "update", "modify", "correct", "refactor"
Process:
- AI reads your currently open file (including unsaved changes)
- Analyzes your request with code context
- Generates a precise fix
- Applies changes directly to the editor
- Notifies you of modifications made
Your file is marked as modified but NOT automatically saved - you maintain full control.
Agentic Mode (AI modifies code)
fix the off-by-one error in the loop
update the function to handle empty strings
refactor this to use list comprehension
Conversational Mode (AI provides guidance)
how does this function work?
what's wrong with this code?
explain the algorithm
Force Agentic Mode
/fix <your request>
Example: /fix add error handling to this function
Preview Changes First
/preview <your request>
Shows what would change without applying it.
Apply Previewed Changes
/proceed
Applies the changes from the last preview.
1. Be Specific
- ✅ Good: "fix the off-by-one error in the loop on line 15"
- ❌ Less clear: "fix the bug"
2. One File at a Time
- Open the file you want to modify before requesting fixes
- For multi-file changes, use
/projectcommand
3. Review Before Saving
- Always review AI-generated changes
- Use
Alt+Uto undo if needed - Press
Ctrl+Sonly when satisfied
4. Test Your Code
- After applying fixes, test with
Ctrl+R - Verify the changes work as expected
5. Use Preview for Complex Changes
/previewshows changes without applying them- Safer for large or risky modifications
Fix a Bug
1. Open file with bug
2. Type: "fix the null pointer exception on line 42"
3. AI applies fix automatically
4. Review changes
5. Press Ctrl+S to save
6. Press Ctrl+R to test
Refactor Code
1. Open file to refactor
2. Type: "/preview refactor this function to be more readable"
3. Review proposed changes
4. Type: "/proceed" to apply
5. Save and test
The AI can operate across your entire project, finding and modifying multiple files at once.
Three-Phase Pipeline:
-
Scanning - Recursively walks workspace directory
- Collects all text files (up to 500)
- Skips:
.git,vendor,node_modules,.ti,build
-
Ranking - AI analyzes file list
- Identifies up to 20 most relevant files
- Based on your request and file names/paths
-
Modifying - Reads and patches files
- Reads each file (up to 2000 lines)
- Generates SEARCH/REPLACE patches
- Validates and applies changes
- Writes modified files to disk
Run Project-Wide Change
/project <request>
Preview Without Writing
/preview <request>
Apply Last Preview
/proceed
Add Error Handling
/project add error handling to all HTTP client calls
Rename Across Project
/project rename the Config struct to AppConfig everywhere
Update Logging
/preview update all log.Printf calls to use structured logging
Generate Documentation
/doc create user manual
/doc create API reference
/doc create installation guide
/doc for module internal
After each operation, you'll see a detailed report:
Project-wide operation complete
Files scanned: 42
Files modified: 3
- internal/ui/aichat.go (+5 -2)
- internal/config/config.go (+1 -0)
- README.md (+3 -1)
Patch failures: 1
- internal/executor/executor.go: search text not found in file content
Report Sections:
- Files scanned - Total files examined
- Files modified - Successfully changed files with line counts
- Patch failures - Files where changes couldn't be applied
- Hallucinated paths - Non-existent files the AI suggested (ignored)
Workspace Boundaries
- Only files inside workspace root are accessed
- Symlinks outside workspace are rejected
- Prevents accidental system file modifications
Preview Mode
/previewnever writes to disk- Review all proposed changes first
- Use
/proceedto apply when ready
Supported File Types
.go,.md,.sh,.bash,.ps1,.py
Soon tobe supported
.ts,.js,.json,.yaml,.yml.toml,.txt,.html,.css
1. Start with Preview
/preview <request>
Always preview large or risky changes first.
2. Be Specific
- ✅ "add error handling to all HTTP client calls"
- ❌ "improve the code"
3. Scope Your Request
- Focus on specific modules or patterns
- Example: "update logging in internal/ui package"
4. Review the Report
- Check which files were modified
- Investigate patch failures
- Open modified files to verify changes
TI includes a built-in Git client - no external Git installation required.
Press Ctrl+G to open the Git Operations panel.
Panel Features:
- Three input fields (URL, username, password/token)
- Eight operation buttons
- Real-time status messages
- Automatic credential detection
Remote Operations
- Clone - Clone a repository to your workspace
- Pull - Fetch and merge changes from remote
- Fetch - Download changes without merging
Local to Remote Workflow
- Stage - Stage all modified and untracked files
- Commit - Create a commit with staged changes
- Push - Push local commits to remote
Info and Undo
- Status - View repository status
- Restore - Discard uncommitted changes
1. Check Status
Press Ctrl+G
Navigate to "Status" button
Press Enter
View modified, staged, and untracked files
2. Stage Changes
Navigate to "Stage" button
Press Enter
All changes are staged
3. Commit
Navigate to "Commit" button
Press Enter
Type commit message in input field
Press Enter to commit
4. Push
Navigate to "Push" button
Press Enter
Changes pushed to remote
GitHub Personal Access Token (Recommended)
- Generate token at: https://github.com/settings/tokens
- In Git panel:
- Username: Your GitHub username
- Password: Token (starts with
ghp_...)
- Credentials are stored in
.git/config
Username/Password
- Works with most Git hosting services
- Less secure than tokens
Credential Auto-Detection
- Opening panel in existing repo loads credentials automatically
- Stored credentials used for subsequent operations
1. Open Git Panel
Press Ctrl+G
2. Enter Repository URL
Navigate to URL field
Type: https://github.com/user/repo.git
Press Tab to move to next field
3. Enter Credentials (if private)
Username: your-username
Password: your-token-or-password
4. Clone
Navigate to "Clone" button
Press Enter
Wait for completion
Workspace automatically changes to cloned directory
When Commit button is selected:
- Press
Enterto show commit message field - Type your message (cannot be empty)
- Press
Enterto create commit - Input field disappears after success
Up/Downorj/k- Navigate optionsTab- Move between input fieldsEnter- Select operation or submit inputEsc- Close Git panel
Press Ctrl+R to run the currently open file.
Auto-Detection: TI automatically detects file type and runs appropriately:
Bash Scripts (.sh, .bash)
#!/bin/bash
echo "Hello World"Runs with: bash filename.sh
PowerShell Scripts (.ps1)
Write-Host "Hello World"Runs with: powershell -File filename.ps1
Python Scripts (.py)
print("Hello World")Runs with: python filename.py
Go Programs (.go)
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}Runs with: go run filename.go
Go Tests (*_test.go)
func TestExample(t *testing.T) {
// test code
}Runs with: go test -v
Output Location:
- Execution output appears in the right pane (AI Response area)
- Replaces current AI conversation temporarily
- Scroll with
Up/DownorPgUp/PgDn
Killing Running Process:
- Press
Ctrl+Kto terminate running process - Only works when in terminal output mode
1. Create file: Ctrl+N → "test.py"
2. Write code:
print("Hello from TI!")
for i in range(5):
print(f"Count: {i}")
3. Save: Ctrl+S
4. Run: Ctrl+R
5. View output in right pane
TI supports editing and running:
- Shell/Bash (
.sh,.bash) - PowerShell (
.ps1) - Python (
.py) - Go (
.go) - Markdown (
.md)
When you create or open a file, TI checks if the required runtime is installed.
If Missing:
- TI detects the missing language
- Shows installation prompt
- You can choose to install automatically
Supported Auto-Install:
- Go - Downloads and installs latest version
- Python - Downloads and installs latest version
Running Go Programs
// main.go
package main
import "fmt"
func main() {
fmt.Println("Hello, Go!")
}Press Ctrl+R → Runs with go run main.go
Running Go Tests
// main_test.go
package main
import "testing"
func TestExample(t *testing.T) {
result := 2 + 2
if result != 4 {
t.Errorf("Expected 4, got %d", result)
}
}Press Ctrl+R → Runs with go test -v
Running Python Scripts
# script.py
def greet(name):
return f"Hello, {name}!"
if __name__ == "__main__":
print(greet("World"))Press Ctrl+R → Runs with python script.py
Bash Scripts
#!/bin/bash
# script.sh
echo "Starting backup..."
tar -czf backup.tar.gz /path/to/files
echo "Backup complete!"Press Ctrl+R → Runs with bash script.sh
PowerShell Scripts
# script.ps1
Write-Host "Starting process..."
Get-Process | Where-Object {$_.CPU -gt 100}
Write-Host "Process complete!"Press Ctrl+R → Runs with powershell -File script.ps1
Markdown Files
# My Document
This is a **markdown** file with:
- Lists
- **Bold** and *italic*
- Code blocksMarkdown files can be edited but not "run" with Ctrl+R.
Manual Installation Check
# Check if Go is installed
go version
# Check if Python is installed
python --version
python3 --versionAuto-Install Process (Go Example)
- Create
test.gofile - TI detects Go is not installed
- Shows prompt: "Go is not installed. Install now?"
- Select "Yes"
- TI downloads and installs Go
- Installation output shown in AI pane
- Ready to use immediately
| Shortcut | Action |
|---|---|
Ctrl+W |
Change Workspace / Open Folder |
Ctrl+O |
Open file |
Ctrl+N |
New file |
Ctrl+S |
Save file |
Ctrl+X |
Close file |
Ctrl+R |
Run current script |
Ctrl+K |
Kill running process (in terminal mode) |
Ctrl+B |
Backup Picker (Restore previous versions) |
Ctrl+Q |
Quit |
| Shortcut | Action |
|---|---|
Ctrl+Y |
List code blocks (Execute/Insert/Return) |
Ctrl+P |
Insert selected code into editor |
Ctrl+L |
Load saved chat from .ti/ folder |
Ctrl+T |
Clear chat / New chat |
Ctrl+Enter |
Send message with editor context |
| Shortcut | Action |
|---|---|
Tab |
Cycle: Editor → AI Input → AI Response |
↑↓ |
Scroll line by line |
PgUp/PgDn |
Scroll page |
Home/End |
Jump to top/bottom |
Esc |
Back / Cancel |
| Shortcut | Action |
|---|---|
Alt+D, D |
Delete current line |
Alt+L |
Delete current line (single key) |
Alt+D, W |
Delete word from cursor |
Alt+W |
Delete word from cursor (single key) |
Alt+D, 1-9 |
Delete N lines from cursor |
| Shortcut | Action |
|---|---|
Alt+U |
Undo last change |
Alt+R |
Redo last undone change |
| Shortcut | Action |
|---|---|
Alt+G |
Go to end of file |
Alt+H |
Go to top of file |
↑↓←→ |
Move cursor |
Home/End |
Jump to line start/end |
| Shortcut | Action |
|---|---|
Enter |
Insert new line |
Backspace |
Delete char before cursor |
Delete |
Delete char at cursor |
| Shortcut | Action |
|---|---|
Ctrl+G |
Open Git Panel |
↑↓ |
Navigate options |
Enter |
Select operation |
Esc |
Close Git Panel |
| Shortcut | Action |
|---|---|
Ctrl+H |
Toggle help dialog |
/help |
Show help in AI pane |
| Command | Description |
|---|---|
/fix <request> |
Force agentic mode (AI modifies code) |
/ask <question> |
Force conversational mode (no changes) |
/preview <request> |
Preview changes before applying (dry-run) |
/project <request> |
Project-wide change across all files |
/proceed |
Apply changes from last preview |
/model |
Show current agent and model info |
/config |
Edit configuration settings |
/help |
Show help message |
/quit |
Quit the program |
User Config:
- Linux/macOS:
~/.ti/config.json - Windows:
%USERPROFILE%\.ti\config.json
Edit Config in TI:
- Type
/configin AI input - Navigate through configuration fields
- Edit values as needed
- Save changes
Configuration Fields:
agent- AI provider (ollama, gemini, bedrock)model- Default model namegmodel- Gemini-specific modelbedrock_model- Bedrock-specific modelollama_url- Ollama service URLgemini_api- Gemini API keybedrock_api- Bedrock API keybedrock_region- AWS region for Bedrockworkspace- Default workspace directory
Ollama (Local)
{
"agent": "ollama",
"model": "qwen2.5-coder:3b",
"ollama_url": "http://localhost:11434",
"workspace": "~/ti-workspace"
}Gemini (Google)
{
"agent": "gemini",
"gmodel": "gemini-3-flash-preview",
"gemini_api": "your-api-key-here",
"workspace": "~/ti-workspace"
}AWS Bedrock
{
"agent": "bedrock",
"bedrock_model": "anthropic.claude-sonnet-4-6",
"bedrock_api": "your-aws-access-key",
"bedrock_region": "us-east-1",
"workspace": "~/ti-workspace"
}Ollama Models (Local)
qwen2.5-coder:3b- Recommended for codingqwen2.5-coder:1.5b- Lightweightdeepseek-coder-v2:16b- Advanced capabilities
Gemini Models (Google)
gemini-3-flash-preview- Fast responsesgemini-3.1-pro-preview- Advanced reasoninggemini-3.1-flash-lite- Lightweight
AWS Bedrock Models
anthropic.claude-sonnet-4-6- Best coding performanceanthropic.claude-haiku-4-6- Fast and cost-effectiveanthropic.claude-opus-4-6- Highest intelligence
Override config file settings:
# Show version
./ti -version
# Specify config file
./ti -config /path/to/config.json
# Override provider
./ti -agent gemini
# Override model
./ti -model qwen2.5-coder:3b
# Override workspace
./ti -workspace /path/to/workspace- Command-line flags (highest priority)
- Configuration file
- Built-in defaults (lowest priority)
If no config file exists:
- Workspace:
~/ti-workspace - Provider:
ollama - Ollama URL:
http://localhost:11434 - Model:
llama2
1. Use Tab Efficiently
Tabcycles through Editor → AI Input → AI Response- Learn this flow to navigate quickly
2. Save Often
- Press
Ctrl+Sfrequently - TI doesn't auto-save (except when inserting AI code into open files)
3. Use Chat History
- Press
Ctrl+Lto load previous conversations - All chats are auto-saved to
.ti/folder
4. Leverage Code Context
- Use
Ctrl+Enterto send messages with code context - AI provides better answers when it sees your code
5. Preview Before Applying
- Use
/previewfor single-file or project-wide changes - Review before using
/proceed
1. Be Specific in Requests
✅ "add error handling to the HTTP request on line 42"
❌ "make it better"
2. Use Explicit Commands When Needed
/ask - When you want explanations only
/fix - When you want code modifications
/preview - When you want to see changes first
3. Break Down Complex Tasks
Instead of: "refactor the entire application"
Try: "refactor the authentication module to use JWT"
Then: "update the user service to use the new auth"
4. Provide Context
"This Python script connects to a database. Add connection pooling."
Better than: "Add connection pooling"
1. Start Small
Test with /preview first
Apply to a subset of files
Gradually expand scope
2. Use Specific Patterns
✅ "/project add logging to all error handlers in internal/ui"
❌ "/project improve everything"
3. Review the Change Report
Check files modified
Investigate patch failures
Open files to verify changes
4. Understand Limitations
Max 500 files scanned
Max 20 files modified per run
Max 2000 lines per file
1. Use Undo/Redo
Alt+Uto undo mistakesAlt+Rto redo- Multiple levels of undo available
2. Quick Line Deletion
Alt+Lfor single lineAlt+D, 5to delete 5 lines
3. Navigate Large Files
Alt+Hto jump to topAlt+Gto jump to bottomPgUp/PgDnfor page scrolling
4. Use Backup Picker
Ctrl+Bto restore previous versions- Useful if you accidentally delete content
1. Check Status First
Ctrl+G → Status → Enter
See what changed before committing
2. Write Good Commit Messages
✅ "Add error handling to HTTP client"
❌ "fix"
3. Pull Before Push
Pull → Review changes → Stage → Commit → Push
Avoids merge conflicts
Problem: "AI service unavailable"
For Ollama:
# Check if Ollama is running
curl http://localhost:11434/api/tags
# Start Ollama
ollama serve
# Pull a model
ollama pull qwen2.5-coder:3bFor Gemini:
1. Check API key in config
2. Verify key at: https://makersuite.google.com/app/apikey
3. Ensure internet connection
4. Check API quota limits
For Bedrock:
1. Verify AWS credentials
2. Check region configuration
3. Ensure Bedrock access is enabled
4. Verify model availability in region
Problem: "Cannot open file"
1. Check file permissions
2. Verify file path is correct
3. Ensure file exists
4. Try absolute path instead of relative
Problem: "Cannot save file"
1. Check write permissions
2. Verify disk space
3. Ensure directory exists
4. Check if file is locked by another process
Problem: "Command not found" when running script
For Python:
# Check Python installation
python --version
python3 --version
# Install Python if missing
# TI will prompt for auto-installFor Go:
# Check Go installation
go version
# Install Go if missing
# TI will prompt for auto-installFor Bash:
# Check bash installation
bash --version
# Usually pre-installed on Linux/macOS
# On Windows, use Git Bash or WSLFor PowerShell:
# Check PowerShell installation
$PSVersionTable.PSVersion
# Usually pre-installed on Windows
# Install on Linux/macOS: https://aka.ms/powershellProblem: "Authentication failed"
1. Verify username is correct
2. For GitHub, use Personal Access Token (not password)
3. Generate token at: https://github.com/settings/tokens
4. Ensure token has repo permissions
Problem: "Repository not found"
1. Check repository URL is correct
2. Verify you have access to the repository
3. For private repos, ensure credentials are provided
4. Try cloning manually to test access
Problem: "Push rejected"
1. Pull latest changes first
2. Resolve any merge conflicts
3. Commit your changes
4. Try push again
Problem: "TI is slow or unresponsive"
1. Check AI service response time
2. Reduce file size (split large files)
3. Close unused files
4. Restart TI
5. Check system resources (CPU, memory)
Problem: "Project-wide operations timeout"
1. Reduce scope of request
2. Use more specific file patterns
3. Split into multiple smaller operations
4. Check AI service performance
Problem: "Interface looks broken or misaligned"
1. Resize terminal window
2. Ensure terminal supports UTF-8
3. Use a modern terminal emulator
4. Check terminal size (minimum 80x24)
Problem: "Colors not displaying correctly"
1. Use a terminal with 256-color support
2. Check terminal color scheme settings
3. Try different terminal emulator
Problem: "Config changes not taking effect"
1. Restart TI after config changes
2. Check config file syntax (valid JSON)
3. Verify config file location
4. Use /config command to edit safely
Problem: "Cannot find config file"
# Create config directory
mkdir -p ~/.ti
# Create config file
echo '{"agent":"ollama","model":"qwen2.5-coder:3b"}' > ~/.ti/config.json
In-App Help:
Press Ctrl+H - View keyboard shortcuts
Type /help - View commands in AI pane
Documentation:
README.md - Overview and features
docs/USAGE.md - Basic usage guide
docs/CONFIG.md - Configuration details
docs/ARCHITECTURE.md - Technical details
Community Support:
GitHub Issues: Report bugs and request features
GitHub Discussions: Ask questions and share tips
Files: Ctrl+N (new) Ctrl+O (open) Ctrl+S (save) Ctrl+X (close)
Navigation: Tab (switch) ↑↓ (scroll) PgUp/PgDn Home/End
AI: Ctrl+Y (code) Ctrl+P (insert) Ctrl+Enter (context)
Execution: Ctrl+R (run) Ctrl+K (kill)
Git: Ctrl+G (panel)
Help: Ctrl+H (shortcuts)
Quit: Ctrl+Q
/fix <request> - Modify code automatically
/ask <question> - Get explanation without changes
/preview <request> - Preview changes first (dry-run)
/project <request> - Multi-file operation
/proceed - Apply last preview
/config - Edit configuration
/model - Show AI model info
/help - Show help
Create and Run Script:
Ctrl+N → filename.py → Enter → [write code] → Ctrl+S → Ctrl+R
Get AI Help:
Tab → [type question] → Ctrl+Enter → [read response]
Fix Code:
[open file] → Tab → "fix the bug on line 42" → Enter → [review] → Ctrl+S
Git Workflow:
Ctrl+G → Status → Stage → Commit → [message] → Push → Esc
Project-Wide Change:
/preview add logging → [review report] → /proceed
Organize Multiple Projects:
# Create project-specific workspaces
mkdir -p ~/ti-projects/web-app
mkdir -p ~/ti-projects/api-service
mkdir -p ~/ti-projects/scripts
# Switch workspace in TI
Ctrl+W → navigate to project folder → Select Current DirectorySession Files Location:
~/.ti/session_token_chat_YYYYMMDD_HHMMSS.md
Load Specific Session:
Ctrl+L → navigate to session → Enter
Manual Session Management:
# List all sessions
ls -lt ~/.ti/session_*.md
# View session content
cat ~/.ti/session_token_chat_20260306_143705.md
# Archive old sessions
mkdir ~/.ti/archive
mv ~/.ti/session_token_chat_2026*.md ~/.ti/archive/Backup Location:
Workspace directory with timestamp suffixes
Restore Backup:
Ctrl+B → select backup → Enter
Manual Backup:
# Create manual backup
cp important-file.py important-file.py.backup
# Restore manually
cp important-file.py.backup important-file.pyLinux:
# Standard usage
./ti-linux-amd64
# Run in background
nohup ./ti-linux-amd64 &
# Create alias
echo 'alias ti="~/path/to/ti-linux-amd64"' >> ~/.bashrc
source ~/.bashrcmacOS:
# Standard usage
./ti-darwin-arm64
# Create alias
echo 'alias ti="~/path/to/ti-darwin-arm64"' >> ~/.zshrc
source ~/.zshrc
# Add to PATH
sudo ln -s ~/path/to/ti-darwin-arm64 /usr/local/bin/tiWindows:
# Standard usage
.\ti-windows-amd64.exe
# Create alias
Set-Alias -Name ti -Value "C:\path\to\ti-windows-amd64.exe"
# Add to PATH
$env:Path += ";C:\path\to\ti"Use with tmux:
# Create tmux session
tmux new -s ti-session
# Run TI
./ti-linux-amd64
# Detach: Ctrl+B, D
# Reattach: tmux attach -t ti-sessionUse with screen:
# Create screen session
screen -S ti-session
# Run TI
./ti-linux-amd64
# Detach: Ctrl+A, D
# Reattach: screen -r ti-sessionFor Large Projects:
1. Use specific /project requests
2. Exclude unnecessary directories
3. Break operations into smaller chunks
4. Use /preview to estimate scope
For Slow AI Responses:
1. Use smaller, faster models
- Ollama: qwen2.5-coder:1.5b
- Gemini: gemini-3.1-flash-lite
- Bedrock: claude-haiku-4-6
2. Reduce context size
- Keep files smaller
- Use focused requests
3. Check network latency (for cloud providers)
Memory Management:
1. Close unused files (Ctrl+X)
2. Clear chat history (Ctrl+T)
3. Restart TI periodically
4. Monitor system resources
You now have a comprehensive understanding of Terminal Intelligence. Start with the basics, experiment with AI assistance, and gradually explore advanced features like agentic code fixing and project-wide operations.
Remember:
- Press
Ctrl+Hanytime for quick reference - Use
/helpfor command list - Experiment in a test workspace first
- Save your work frequently
- Review AI changes before saving
Happy coding with Terminal Intelligence!
- Requires bash or compatible shell
- Python and Go auto-install supported
- Git operations work natively
- Terminal must support UTF-8 and 256 colors
- Works on both Intel and Apple Silicon
- Requires macOS 11 or higher
- May need to allow app in Security & Privacy settings
- Terminal.app and iTerm2 fully supported
- PowerShell 5.1 or higher recommended
- Git Bash supported for shell scripts
- Windows Terminal recommended for best experience
- May need to adjust execution policy for PowerShell scripts
Document Version: 1.0
Last Updated: March 6, 2026
Compatible with: Terminal Intelligence (TI) - All versions
Official Documentation:
- README.md - Project overview
- USAGE.md - Basic usage guide
- CONFIG.md - Configuration reference
- ARCHITECTURE.md - Technical architecture
GitHub Repository:
- Issues: Report bugs and request features
- Discussions: Community support and tips
- Wiki: Additional guides and examples
AI Provider Documentation:
- Ollama - Local AI models
- Google Gemini - Cloud AI service
- AWS Bedrock - Enterprise AI
End of Tutorial Manual