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 gh: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 gh:briceyan/dev NAME

Agent Names use 1–64 lowercase ASCII letters, digits, or underscores and start with a letter. See source and naming rules.

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 aid.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/aid.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/aid.too whats_for
too DIR/aid.too whats_new                     # Updates from the past week
too DIR/aid.too whats_new since=v0.2.0
too DIR/aid.too review -- "https://github.com/OWNER/REPO/pull/123"
too DIR/aid.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.

For resident and visiting agents, Chat, rerun, and fork/rewind start a shared server when needed, enabling only chat by default. Resident servers keep running; visiting servers exit after the last client leaves and all accepted work finishes. start keeps either placement running until stop; serve owns a foreground server. Start before Chat to enable background talk/chore drivers. Steer/cancel require a live owner. See execution ownership for details.

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 convo create [name]               # Create a group containing the configured human
too convo rules <id> -o MEMBERS.md    # Download shared conversation rules; revision on stderr
too [agent] home                      # Open a shell in agent home
too serve <ref>                       # Run an agent in the foreground
too start <agent-or-ref>              # Start or retain a background agent
too stop <agent-or-ref>               # Stop a running agent

too init <dir>                        # Create aid.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 [agent] top                       # Observe live trees and recent usage
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.0a9

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.0a9
File Size Uploaded Provenance Actions
toolang-0.4.0a9.tar.gz 3.3 MB With provenance Details for toolang-0.4.0a9.tar.gz

Built distribution (wheel)

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

Total release size: 4.6 MB

Release files / toolang-0.4.0a9.tar.gz

Download URL toolang-0.4.0a9.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6554ca70c21d31ce49632a057c2d04d198223438a9fafc910d65c41511ac7bfc
BLAKE2b-256 checksum
How to use checksums
b20c1079a9fc9cfa7a210dca01a61c92f603bf02137b2c4b3b6419621bcc0358
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 18, 2026.

Transparency log

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

Download URL toolang-0.4.0a9-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5b512e9e23fef77718e383604d65cfdc69020ca47876ba41c3ddce85f3c427ba
BLAKE2b-256 checksum
How to use checksums
7ee9aa8b430467dae89ff01acb48ff4edab4d05edb2918b58a991ddd2b69b2d2
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 18, 2026.

Transparency log

Security for toolang 0.4.0a9

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.0a9.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 18, 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