Skip to main content

A terminal-based AI coding agent, similar to Claude Code, OpenAI Codex etc. but works with many more LLMs.

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

tig_code-0.1.5.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tig_code-0.1.5-py3-none-any.whl (58.0 kB view details)

Uploaded Python 3

File details

Details for the file tig_code-0.1.5.tar.gz.

File metadata

  • Download URL: tig_code-0.1.5.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

Hashes for tig_code-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2e670b89ca6dfc5d774621a42eeda486c05f6ec951bfc9c8920be5ef385e2c0e
MD5 6ad59eb070d5cb9f7681382c3f90260e
BLAKE2b-256 bb3a9f8e9dc1dae98d8efe26c4d713c72b0e576bdc94391f40ac2918eac06084

See more details on using hashes here.

File details

Details for the file tig_code-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: tig_code-0.1.5-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

Hashes for tig_code-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5f97bb96a3073afd1df0f84329ef777f196fff0d536f4d3c7af947fa42ae1929
MD5 8f2d65e1c7d9a798f3e5b04d531792c0
BLAKE2b-256 80b16a5c601fcdc9b1c348116cc92d0a0bf393bca3a769e0e6544bac8dd295c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page