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! 🚀

tig

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
  • OpenRouter
  • Deepseek
  • Groq
  • 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
  • Google's diff-match-patch: For comparing and displaying diffs

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.6.tar.gz (36.7 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.6-py3-none-any.whl (51.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tig_code-0.1.6.tar.gz
  • Upload date:
  • Size: 36.7 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.6.tar.gz
Algorithm Hash digest
SHA256 e18be2b613fbb3b894ede2ced27ab9d449b983ac35b73aa59587f66ced70f489
MD5 c10bc5d263b3d4c9a5a8c642c8cd22eb
BLAKE2b-256 4ef16449c3f8ddc82de24143d7fe7f4d4c867b161faa5fbbe64c0a4fcaa92e02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tig_code-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 51.7 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 45c2341a5ca87442583f3a3e67030cd15d3a5ab57022e5c8e019282f77c4aa95
MD5 30d43fedd367dab979bb2da850d084a2
BLAKE2b-256 b7adca2a65733f4390e9a178f5e80549ef548748c3b44c6f9ffaf0432dfbaed6

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