Skip to content

๐ŸŸ TunaCode AI CLI coding agent with safe git branches, rich tools & multi-LLM support.

License

Lftobs/tunacode

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TunaCode CLI

PyPI version Downloads Python 3.10+ License: MIT

AI-powered CLI coding assistant

TunaCode Example


Quick Install

# Option 1: One-line install (Linux/macOS)
wget -qO- https://raw.githubusercontent.com/alchemiststudiosDOTai/tunacode/master/scripts/install_linux.sh | bash

# Option 2: pip install
pip install tunacode-cli

For detailed installation and configuration instructions, see the Getting Started Guide.

Development Installation

For contributors and developers who want to work on TunaCode:

# Clone the repository
git clone https://github.com/alchemiststudiosDOTai/tunacode.git
cd tunacode

# Quick setup (recommended)
./scripts/setup_dev_env.sh

# Or manual setup
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e ".[dev]"

# Verify installation
python -m tunacode --version

See the Hatch Build System Guide for detailed instructions on the development environment.

Configuration

Choose your AI provider and set your API key. For more details, see the Configuration Section in the Getting Started Guide.

Recommended Models

Based on extensive testing, these models provide the best performance:

  • google/gemini-2.5-pro - Excellent for complex reasoning
  • openai/gpt-4.1 - Strong general-purpose model
  • deepseek/deepseek-r1-0528 - Great for code generation
  • openai/gpt-4.1-mini - Fast and cost-effective
  • anthropic/claude-4-sonnet-20250522 - Superior context handling

Note: Formal evaluations coming soon. Any model can work, but these have shown the best results in practice.

Start Coding

tunacode

Basic Commands

Command Description
/help Show all commands
/model <provider:name> Switch model
/clear Clear message history
/compact Summarize conversation
/branch <name> Create Git branch
/yolo Skip confirmations
!<command> Run shell command
exit Exit TunaCode

Performance

TunaCode leverages parallel execution for read-only operations, achieving 3x faster file operations:

Parallel Execution Performance

Multiple file reads, directory listings, and searches execute concurrently using async I/O, making code exploration significantly faster.

Features in Development

  • Bug Fixes: Actively addressing issues - please report any bugs you encounter!

Note: While the tool is fully functional, we're focusing on stability and core features before optimizing for speed.

Safety First

โš ๏ธ Important: TunaCode can modify your codebase. Always:

  • Use Git branches before making changes
  • Review file modifications before confirming
  • Keep backups of important work

Documentation

For a complete overview of the documentation, see the Documentation Hub.

User Documentation

  • Getting Started - How to install, configure, and use TunaCode.
  • Commands - A complete list of all available commands.

Developer Documentation

  • Architecture (planned) - The overall architecture of the TunaCode application.
  • Contributing (planned) - Guidelines for contributing to the project.
  • Tools (planned) - How to create and use custom tools.
  • Testing (planned) - Information on the testing philosophy and how to run tests.

Guides

Reference

  • Changelog (planned) - A history of changes to the application.
  • Roadmap (planned) - The future direction of the project.
  • Security (planned) - Information about the security of the application.

Links


MIT License - see LICENSE file

About

๐ŸŸ TunaCode AI CLI coding agent with safe git branches, rich tools & multi-LLM support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.3%
  • Shell 9.7%