Metadata-Version: 2.4
Name: ffwf-tau
Version: 0.16.0
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development
Requires-Dist: httpx>=0.28
Requires-Dist: websockets>=15
Requires-Dist: textual>=8.2
Requires-Dist: ffwf-tau-tokens==0.16.0 ; extra == 'tokens'
Provides-Extra: tokens
License-File: LICENSE
Summary: τ (tau): an agent harness with a Rust core, a Python driver, extensions and a terminal UI.
Keywords: agent,llm,harness,coding-agent,tui,openai,anthropic,gemini,llama.cpp
Author: Fight Fire with Fire Robotics, LLC
License-Expression: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://github.com/jmccardle/tau/blob/master/docs/guide/README.md
Project-URL: Issues, https://github.com/jmccardle/tau/issues
Project-URL: Repository, https://github.com/jmccardle/tau

# τ (tau)

τ is an agent harness: it runs a conversation between you, a language model and tools (read,
write, edit, grep, find, bash), and keeps every session as a tree you can branch, continue and
share. A sans-IO Rust core holds the tree and the step algorithm; Python drives it, and is where
providers (any OpenAI-compatible server, Anthropic, Gemini), tools, hooks, extensions and the
terminal UI live.

**Status: 0.16 is a pre-release.** It is a ground-up rewrite of τ 0.15 (tag `v0.15.0`). Below
1.0, interfaces may change between minor versions.

## Install

τ needs Python 3.12 or later, on Linux (x86_64, aarch64) or macOS (arm64, x86_64). The package
is `ffwf-tau` and installs the `tau` command:

```bash
pip install 'ffwf-tau>=0.16'
```

Windows (x86_64) wheels are built too, but there τ is incomplete: the `bash` tool, `tau serve`,
projects (`.tau/`) and path patterns in permission rules (`read:GLOB`; the bare `read` works) are
not available and say so when used. Its test suite runs there with the tests of those skipped, each naming why.

`pip install 'ffwf-tau[tokens]'` adds local tokenizers (a second wheel, `ffwf-tau-tokens`).
Coming from 0.15? Read the [0.16.0 release notes](https://github.com/jmccardle/tau/blob/master/docs/release-notes/0.16.0.md) first: 0.16 is a
rewrite and does not read 0.15 sessions or load 0.15 extensions.

To build from a checkout instead, which needs a Rust toolchain:

```bash
git clone https://github.com/jmccardle/tau && cd tau
python3.12 -m venv .venv
.venv/bin/pip install -U 'pip>=25.1'      # --group needs pip 25.1
.venv/bin/pip install --group dev
VIRTUAL_ENV=$PWD/.venv .venv/bin/maturin develop --release
source .venv/bin/activate
```

## First run

τ keeps its config and sessions in `$TAU_HOME` (`~/.tau` unless you set it). Name your models in
`$TAU_HOME/config.json`. This one has a local OpenAI-compatible server, at the address where
llama.cpp's `llama-server` listens by default, and `mock`, which echoes you and needs no server:

```json
{
  "default_model": "local:qwen",
  "models": {
    "local": {
      "base_url": "http://localhost:8080/v1",
      "models": { "qwen": { "model": "qwen3" } }
    },
    "mock": { "provider": "mock", "models": { "echo": { "model": "echo" } } }
  }
}
```

```bash
tau config check                  # prints nothing when the config is sound
tau -p -m mock:echo "hello"       # one message, the answer on stdout: "mock: hello"
tau -p "what is in this directory?"   # the same, with the default model and the tools
tau                               # the terminal UI
```

For a hosted model, add `"api_key_env": "NAME_OF_YOUR_KEY_VARIABLE"` to its group: the config
names the variable and never holds the key. A server that cannot be reached is an error that
names it.

## Documentation

- [Guides](https://github.com/jmccardle/tau/blob/master/docs/guide/README.md): the quickstart,
  the terminal UI, the model in ten minutes, configuration, writing an extension, writing a
  frontend, and the wire protocol of `tau serve`.
- [Reference](https://github.com/jmccardle/tau/blob/master/docs/reference/README.md): every
  public name, generated from the docstrings.
- [Design](https://github.com/jmccardle/tau/tree/master/docs/design): the model, its invariants,
  and the decisions behind them.
- [Examples](https://github.com/jmccardle/tau/tree/master/examples): small programs on the
  library, a chat client of `tau serve` in Rust, and larger exploratory extensions.

## Contributing

`scripts/check.sh` is the whole gate, in the order CI runs it. The rules the code is held to
are in [`CLAUDE.md`](https://github.com/jmccardle/tau/blob/master/CLAUDE.md).

## License

MIT. See [LICENSE](https://github.com/jmccardle/tau/blob/master/LICENSE).

