{"id":51497152,"url":"https://github.com/huggingface/tau","last_synced_at":"2026-07-07T17:00:16.228Z","repository":{"id":367283038,"uuid":"1266463689","full_name":"huggingface/tau","owner":"huggingface","description":"a minimalist agent that teaches you to create coding agents","archived":false,"fork":false,"pushed_at":"2026-06-30T21:05:36.000Z","size":948,"stargazers_count":420,"open_issues_count":26,"forks_count":49,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-06-30T22:24:59.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://twotimespi.dev/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huggingface.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-11T16:33:44.000Z","updated_at":"2026-06-30T21:31:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/huggingface/tau","commit_stats":null,"previous_names":["alejandro-ao/tau","huggingface/tau"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/huggingface/tau","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Ftau","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Ftau/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Ftau/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Ftau/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huggingface","download_url":"https://codeload.github.com/huggingface/tau/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huggingface%2Ftau/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35235818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-07T17:00:15.772Z","updated_at":"2026-07-07T17:00:16.178Z","avatar_url":"https://github.com/huggingface.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/tau-header.svg\" alt=\"Tau — a Python coding-agent harness inspired by Pi\" width=\"100%\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eA small, readable terminal coding agent — and a working example of how coding agents are built.\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twotimespi.dev/\"\u003eDocumentation\u003c/a\u003e\n  ·\n  \u003ca href=\"https://twotimespi.dev/quickstart/\"\u003eQuickstart\u003c/a\u003e\n  ·\n  \u003ca href=\"https://twotimespi.dev/internals/architecture/\"\u003eArchitecture\u003c/a\u003e\n  ·\n  \u003ca href=\"https://pypi.org/project/tau-ai/\"\u003ePyPI\u003c/a\u003e\n  ·\n  \u003ca href=\"https://github.com/alejandro-ao/tau/issues/1\"\u003eRoadmap\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## What is Tau?\n\n**Tau is a coding agent that lives in your terminal.** You type requests like\n\"explain this repo\", \"add tests\", or \"fix this stack trace\"; Tau can read files,\nedit code, run commands, and keep a durable session history while streaming what\nit is doing.\n\nTau is also meant to be read. It is a teaching project for understanding the\nshape of a coding-agent system without starting from a giant production\ncodebase.\n\n```text\ntau_coding  →  tau_agent  →  tau_ai\n```\n\n- `tau_ai` translates model providers into Tau's provider-neutral stream.\n- `tau_agent` owns the portable brain: messages, tools, events, loop, harness,\n  and session primitives.\n- `tau_coding` wraps the brain as a real coding app: CLI, TUI, file/shell tools,\n  provider config, project instructions, skills, and on-disk sessions.\n\nThe important boundary is:\n\n```text\nAgentHarness = reusable brain\nCodingSession = coding-agent environment\nTUI = one possible frontend\n```\n\nThe core does not know about Textual, Rich, local config paths, slash commands,\nor rendering. Frontends consume events.\n\n## Install\n\nTau is published on PyPI as `tau-ai` and installs a `tau` command.\nIt requires Python 3.12 or newer.\n\n```bash\nuv tool install tau-ai\ntau --version\n```\n\nDon't have `uv`? Install with `pipx` or `pip` instead:\n\n```bash\npipx install tau-ai\n# or\npython -m pip install tau-ai\n```\n\nIf you prefer `uv`, install it with:\n\n```bash\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n```\n\nFor local development:\n\n```bash\ngit clone https://github.com/alejandro-ao/tau.git\ncd tau\nuv sync --dev\nuv run tau --version\n```\n\n## Quickstart\n\nRun Tau from the project you want it to work on:\n\n```bash\ncd my-project\ntau\n```\n\nThen type a request and press **Enter**:\n\n```text\nexplain what this project does\n```\n\nOne-shot print mode is useful for scripts and quick prompts:\n\n```bash\ntau -p \"summarize the architecture\"\ntau --cwd /path/to/project -p \"find the CLI entry point\"\n```\n\nTau needs a model provider. Start Tau and connect one with `/login`:\n\n```bash\ntau\n```\n\n```text\n/login\n/login openai\n/login openai-codex\n/model\n```\n\nTau ships with support for OpenAI, Anthropic, OpenAI Codex subscription auth,\nOpenRouter, Hugging Face, and custom OpenAI-compatible endpoints, including local\nmodels. See the [providers guide](https://twotimespi.dev/guides/providers-and-models/).\n\nThe built-in catalog lives in `src/tau_coding/data/catalog.toml`; add your own\nproviders and models by dropping a `~/.tau/catalog.toml` with the same schema —\nno code changes required.\n\n## What Tau can do\n\n- Interactive Textual TUI and non-interactive print mode.\n- Built-in coding tools: `read`, `write`, `edit`, and `bash`.\n- Durable JSONL sessions under `~/.tau/sessions/` with resume and branching.\n- Slash commands for login, model selection, sessions, compaction, export, theme,\n  and more.\n- Project instructions from `AGENTS.md`, `.tau/`, and `.agents/` resources.\n- User skills and prompt templates.\n- Context accounting, manual compaction, and optional automatic compaction.\n- Provider-neutral event rendering for Rich, plain text, JSON, transcripts, and\n  custom frontends.\n\n## Philosophy\n\nTau follows a few rules:\n\n- **Small layers beat magic.** Each package has one job and can be read alone.\n- **Events are the contract.** Providers, renderers, the TUI, and custom\n  frontends meet at a typed event stream.\n- **The core stays portable.** The reusable harness does not depend on the CLI,\n  Textual, Rich, or Tau's file layout.\n- **Tools are ordinary typed functions.** A tool is a schema plus an async\n  executor returning a structured result.\n- **Sessions are durable and inspectable.** History is append-only JSONL; active\n  context can be compacted without rewriting the record.\n- **Documentation follows implementation.** The public docs explain the result;\n  `dev-notes/` preserves the phase-by-phase build journal.\n\n## Use Tau as a library\n\n```python\nfrom tau_agent import AgentHarness, AgentHarnessConfig\n\nharness = AgentHarness(\n    AgentHarnessConfig(\n        provider=provider,\n        model=\"my-model\",\n        system=\"You are a helpful coding agent.\",\n        tools=tools,\n    )\n)\n\nasync for event in harness.prompt(\"Explain this package\"):\n    print(event)\n```\n\nBecause the harness emits events instead of rendering UI directly, the same core\ncan drive the built-in TUI, print mode, or a frontend you build yourself.\n\n## Development\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for project philosophy, layer boundaries, testing expectations, and pull request guidelines.\n\n```bash\nuv sync --dev\nuv run pytest\nuv run ruff check .\nuv run ruff format --check .\nuv run mypy\n```\n\nRun Tau from the checkout:\n\n```bash\nuv run tau\nuv run tau -p \"explain this repo\"\n```\n\nRun the Hugo documentation site:\n\n```bash\ncd website\nhugo server -D\n```\n\nOpen \u003chttp://localhost:1313/\u003e. Build with `hugo --minify`.\n\n## Documentation\n\nUser docs are published at \u003chttps://twotimespi.dev/\u003e and live in\n`website/content/`.\n\nUseful entry points:\n\n- [What is Tau?](https://twotimespi.dev/what-is-tau/)\n- [Quickstart](https://twotimespi.dev/quickstart/)\n- [Core concepts](https://twotimespi.dev/concepts/)\n- [Architecture overview](https://twotimespi.dev/internals/architecture/)\n- [The agent loop \u0026 events](https://twotimespi.dev/internals/agent-loop/)\n- [CLI reference](https://twotimespi.dev/reference/cli/)\n\nTau is under active development. The implementation roadmap is tracked in\n[GitHub issue #1](https://github.com/alejandro-ao/tau/issues/1).\n\n## License\n\nTau is released under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuggingface%2Ftau","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuggingface%2Ftau","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuggingface%2Ftau/lists"}