A terminal-based AI coding agent, similar to Claude Code, OpenAI Codex etc.
Project description
🐯 Tig
An automonous AI coding agent that runs in the terminal. Similar to Claude Code, OpenAI Codex etc. but works with many more LLMs.
It can:
- Write code 📝
- Fix bugs 🐛
- Execute shell commands 💻
- Write tests 🧪
- Analyze codebase 🔍 and many more...
All within the terminal! 🚀
Modes
It has different modes for different tasks:
- 📝 Architect: Designs the system, brainstorms ideas with the user, saves the design in a markdown file.
- 💻 Code: Implements the architect's plan step by step
✅ LLMs supported so far:
- Google Gemini
- OpenAI
- Claude
- Deepseek
- Groq
- OpenRouter
- Local LLMs using Ollama
Tools Used
- LlamaIndex Workflow: For orchestrating and multiple LLMs support
- Tree-sitter: For searching code definitions (functions, classes, etc.) accross the codebase and checking for syntax errors
- Ripgrep: For regex search accross the codebase
Requirements
Tig depends on some external tools:
- Ripgrep: For regex search accross the codebase
Make sure to install it for your operating system.
For macOS, you can use Homebrew:
brew install ripgrep
For Linux, you can use the package manager for your distro:
For Arch:
sudo pacman -S ripgrep
For Fedora:
sudo dnf install ripgrep
Installation (using pip)
Install Tig using pip:
pip install tig-code
Note: If tig is not in your PATH, you need to add it first (depends on your python installation)
Usage
Tig is configured using .env file.
Specify the LLM and model to use alongside with appropriate API keys in the .env file.
GOOGLE_API_KEY="..."
TIG_MODEL="gemini-2.0-flash"
TIG_PROVIDER="google" # available providers: [google, openai, anthropic, deepseek, groq, ollama, openrouter]
Provide the right API key variable for the right model e.g. GOOGLE_API_KEY for Gemini, OPENAI_API_KEY for OpenAI, ANTHROPIC_API_KEY for Claude, etc.
Now run tig (optionally specify the mode --mode <code| architect>):
tig
If you want to auto-approve all the actions taken by Tig (read, write, update files), run tig with the --auto-approve flag:
tig --auto-approve
Finally when prompted, provide tig with a task to get started:
...
New task: Create a screen recorder website for chrome
...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tig_code-0.1.4.tar.gz.
File metadata
- Download URL: tig_code-0.1.4.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
256dd62def978c3d87078dbd4c70eb1de568708eaa59a5f65a873a0968f9dd95
|
|
| MD5 |
971ea00d83dd936065bda91783875671
|
|
| BLAKE2b-256 |
f5acc2f1e48a26910d7e595371f842c46f55049b71d71980b7028f82a700f6db
|
File details
Details for the file tig_code-0.1.4-py3-none-any.whl.
File metadata
- Download URL: tig_code-0.1.4-py3-none-any.whl
- Upload date:
- Size: 58.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cdfe0612a3e0798b6104148faf77138ce54685750f55dd47917c7408fd41622
|
|
| MD5 |
9f84e86485215d76dde7b7cd06abcfed
|
|
| BLAKE2b-256 |
b2ac329f6e55c3c4d8060affbfe0c2ca4d3571b6cb332a32d913ca4f48c42cfc
|