Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Toolang

Toolang

A language and runtime for agents and humans.

The language expresses agent loops with fine-grained control using a small subset of natural language — readable by humans and agents, precise enough for the runtime to execute.

Getting started

Toolang runs on macOS and Linux with Python 3.11+. Windows is not supported yet.

Install Toolang with uv or pip; the main command is toolang, with too as a shorter alias:

uv tool install toolang  # or: pip install toolang
too --version            # same as: toolang --version

Models

Toolang bundles a catalog of recent models from models.dev, filtered by both knowledge > 2025-00 and last_updated > 2026-00. Set your provider's API key to get started; no additional model configuration is required. Local models are discovered from running Ollama and llama.cpp servers.

too providers --all  # List all providers and their required environment variables
too models           # List ready models

Download updated or full model catalogs from openhat-ai/models.

Shared agents

Use a shared agent by its URL or GitHub shorthand, with no agent configuration required:

too https://toolang.ai/lex.too chat  # Practice English with Lex
too briceyan/dev chat                # Write and review code with Dev

Toolang downloads the .too source and its declared dependencies and runs the agent locally. This lets you share an agent as a file, without separate installation or configuration instructions.

Local agents

Create an agent from scratch, or clone a shared one as a starting point:

too new NAME
too clone https://toolang.ai/lex.too NAME
too clone briceyan/dev NAME

Once created, the agent is ready for a conversation:

too NAME chat

Use the CLI help to configure the agent and add one-off or recurring chores:

too --help

Scripts

A .too file can also run as a script. Here is hello world in Toolang:

cat > hello-world.too <<'EOF'
agic():
  Say hello to the world.
EOF

too hello-world.too

To start from a template, use too init to create aide.too and toolang.toml in a directory. Rename or edit it as needed, then call it from Makefiles, CI jobs, or other scripts:

too init DIR
too DIR/aide.too --help

The generated script provides six named runnables for issues, fixes, pull request reviews, project overviews, recent updates, and localization. Select one by name and pass its arguments on the command line:

too DIR/aide.too whats_for
too DIR/aide.too whats_new                     # Updates from the past week
too DIR/aide.too whats_new since=v0.2.0
too DIR/aide.too review -- "https://github.com/OWNER/REPO/pull/123"
too DIR/aide.too update_i18n locale=zh-CN

Language

The tree-sitter-toolang repository provides the grammar and parser packages for Python, JavaScript, and Rust. See the syntax reference for the full language syntax.

See examples for runnable Toolang programs:

Example Description
hello-world.too Hello world in Toolang.
signatures.too Agic signature forms, from shorthand to fully typed.
structured-output.too Define a struct and use it for structured output.
caps.too Define and use caps in agics.
hands.too Delegate work to one of the runnables.
handoffs.too Transfer work to one of the runnables.
minimal.too An agent in 14 characters.
developer.too Define a complete coding agent with reusable caps.

Common commands

Use these commands to run and manage agents. Add --help to any command for its usage and options.

Chat, retry/rerun, and run/thread control commands start the agent when needed and use its API. The agent keeps running after the command exits; use too stop <agent> to stop it.

too new <agent>                       # Create a local agent
too clone <ref> <agent>               # Clone an agent
too <agent> chat                      # Chat with an agent
too hub start                        # Start the messaging Hub; requires Redis/Valkey
too talk <target> [message...]        # Open a conversation or send a message
too talk all                         # Open the system group conversation
too talk alice,bob                    # Observe an existing conversation between agents
too talk                             # List conversations
too [agent] home                      # Open a shell in agent home
too serve <ref>                       # Run an agent in the foreground
too start <agent>                     # Start an agent in the background
too stop <agent>                      # Stop a running agent

too init <dir>                        # Create aide.too and toolang.toml
too [run] <file.too> [runnable]       # Execute a .too file; run is optional

too caps                              # List available caps
too tools                             # List available tools
too models                            # List available models
too providers                         # List available model providers

too --help                            # Show common commands
too more                              # Show additional commands

Teaming is enabled by default and uses Hub HTTP APIs; Hub requires an external Redis or Valkey server. Local execution works without Hub. See messaging setup to configure or disable it.

Metadata

Release files for toolang 0.4.0a7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toolang 0.4.0a7
File Size Uploaded Provenance Actions
toolang-0.4.0a7.tar.gz 3.1 MB With provenance Details for toolang-0.4.0a7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toolang 0.4.0a7
File Interpreter ABI Platform Actions
toolang-0.4.0a7-py3-none-any.whl Python 3 none any Details for toolang-0.4.0a7-py3-none-any.whl

Total release size: 4.3 MB

Release files / toolang-0.4.0a7.tar.gz

Download URL toolang-0.4.0a7.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
4b080daf7b20ba203abec6b23e51feaa4731bc9d5598ffdc9f3ea03a7acdb79b
BLAKE2b-256 checksum
How to use checksums
34563c80f3e700074dbe68c4d40e2f939c586aba4bdb845f6f6986f5ffb5a8c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / toolang-0.4.0a7-py3-none-any.whl

Download URL toolang-0.4.0a7-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f6dd25759d98a4cf61b8bf421ef3406b411e8a5629e4418880ecf00b65c4ca8f
BLAKE2b-256 checksum
How to use checksums
f0793d23b73c1bb22292edb24a0d3dc866d97c79cdafdd481fa16b26e9122f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Security for toolang 0.4.0a7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for toolang-0.4.0a7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page