AI Integration
Glint integrates with CLI-based AI coding assistants, letting you launch interactive sessions with repository context directly from the app.
Supported Systems
Glint ships with predefined profiles for 9 known AI assistants:
| System | CLI Tool |
|---|---|
| Claude Code | claude |
| Codex | codex |
| GitHub Copilot | copilot |
| Gemini CLI | gemini |
| Amp | amp |
| Aider | aider |
| OpenCode | opencode |
| Goose | goose |
| Cline | cline |
You can also register any custom CLI tool.
Setting Up AI Systems
Auto-Detection
- Open Settings > AI Systems (or click the AI button in the menu bar and select Manage…)
- Click Scan Now — Glint searches your PATH for known AI CLIs
- Detected tools are added automatically with their default profiles
Manual Setup
- Open Settings > AI Systems
- Click Add AI System
- Choose a known type from the dropdown (or select Custom)
- Enter the executable path (e.g.,
/usr/local/bin/claude) - Argument templates are pre-filled for known types
- Click Save
Editing a System
Click the pencil icon on any system in the list to edit its name, command path, or argument templates. Click Reset to Defaults to restore the predefined profile for known system types.
Execution Modes
Each AI system supports up to three modes:
Interactive Mode
Launches the AI CLI in a terminal tab where you can have a back-and-forth conversation. This is the default mode.
Unrestricted Mode
Same as interactive, but passes additional flags that skip safety prompts (e.g., --dangerously-skip-permissions for Claude Code). Unrestricted mode is disabled by default for each system and must be explicitly enabled.
To enable:
- Open Settings > AI Systems
- Toggle the switch next to the system, or open the editor and check Enable Unrestricted Mode
- Confirm the warning dialog
When enabled, a warning badge appears in the AI dropdown and system list.
Background Mode
Runs the AI CLI as a non-interactive subprocess that returns JSON output. Used for programmatic integrations. You can test background mode from the editor with the Test button, which sends a sample prompt and validates the output format.
Launching AI Sessions
From the Context List
The primary way to launch an AI session with context:
- Add issues, PRs, and files to the Context List by dragging tabs or using the Add to Context List button
- Open the Context List tab and click Launch AI Chat
- Glint builds a prompt from all items and opens a terminal with the AI CLI
The context list is cleared after launch.
From the AI Dropdown
Click the sparkles button in toolbars to open the AI dropdown. This launches a session with the currently selected item(s) as context — without affecting the Context List.
The dropdown shows all configured systems. If unrestricted mode is enabled for a system, both safe and unrestricted options appear.
From the Menu Bar
The AI selector in the menu bar lets you switch the active (default) system and open the management dialog. The active system is used when launching from the Context List or other quick-launch entry points.
How Sessions Work
When you launch an AI session, Glint:
- Expands the argument template, replacing
{prompt}with the context text - Opens a new Terminal tab running the AI CLI with the expanded arguments
- Sets the working directory to your repository path
The session runs as a standard interactive terminal — you can type follow-up prompts, view output, and use all normal terminal features.