Metadata-Version: 2.4
Name: opentf
Version: 0.1.2
Summary: Open Task Force - Autonomous multi-agent orchestration platform
Project-URL: Homepage, https://github.com/itscool2b/opentf
Project-URL: Repository, https://github.com/itscool2b/opentf
Project-URL: Issues, https://github.com/itscool2b/opentf/issues
Author: Arjun Bajpai
License-Expression: MIT
License-File: LICENSE
Keywords: agent,ai,anthropic,claude,cli,coding,llm,terminal
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Code Generators
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: anthropic>=0.49.0
Requires-Dist: chromadb>=0.6.0
Requires-Dist: httpx>=0.27
Requires-Dist: openai>=1.0
Requires-Dist: pydantic>=2.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: rank-bm25>=0.2
Requires-Dist: rich>=13.0
Requires-Dist: sentence-transformers>=3.0
Requires-Dist: textual>=1.0
Provides-Extra: analysis
Requires-Dist: networkx>=3.0; extra == 'analysis'
Requires-Dist: tree-sitter-javascript>=0.22; extra == 'analysis'
Requires-Dist: tree-sitter-python>=0.22; extra == 'analysis'
Requires-Dist: tree-sitter>=0.22; extra == 'analysis'
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

# OpenTF

Autonomous AI coding agent for your terminal.

## Install

```bash
pip install opentf
```

Requires Python 3.12+. Then run:

```bash
export ANTHROPIC_API_KEY="sk-ant-..."
opentf
```

Or let OpenTF prompt you for your API key on first launch.

## What It Does

OpenTF reads, writes, and edits code in your project. It runs shell commands, searches your codebase, and uses a 9-strategy fuzzy edit engine so code changes land even when the AI gets indentation or whitespace slightly wrong. LSP diagnostics catch type errors after every edit. File changes are backed up and undoable.

## Commands

| Command | Description |
|---------|-------------|
| `/plan` | Create a structured execution plan |
| `/janitor` | Scan code for quality issues |
| `/model` | Switch between Claude models |
| `/provider` | Switch between Anthropic / OpenAI / Ollama |
| `/compact` | Compress conversation history |
| `/save` | Save session |
| `/resume` | Resume a saved session |
| `/undo` | Undo last file change |
| `/cost` | Show token usage and cost |
| `/status` | Show current session info |
| `/login` | Set API key |
| `/clear` | Clear conversation |
| `/exit` | Quit |

## Install Methods

### pip (recommended)

```bash
pip install opentf
```

### pipx (isolated)

```bash
pipx install opentf
```

### Install script

```bash
curl -fsSL https://raw.githubusercontent.com/itscool2b/opentf/main/install.sh | bash
```

Creates an isolated environment at `~/.opentf/` and adds the `opentf` command to your PATH.

### From source

```bash
git clone https://github.com/itscool2b/opentf.git
cd opentf
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
opentf
```

## Modes

```bash
opentf              # Full terminal UI (default)
opentf --repl       # Lightweight REPL mode
opentf -p "prompt"  # Single-shot headless mode
```

## Development

```bash
git clone https://github.com/itscool2b/opentf.git
cd opentf
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
```

## License

MIT
