This release is a pre-release and may not be stable for production use.
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 # List team members and 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.
Links
- Website: toolang.ai
- Docs: toolang.ai/docs
- Changelog: CHANGELOG.md
- GitHub: github.com/openhat-ai/toolang
Metadata
Release files for toolang 0.4.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toolang-0.4.0a4.tar.gz | 3.0 MB | With provenance | Details for toolang-0.4.0a4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toolang-0.4.0a4-py3-none-any.whl | Python 3 | none | any | Details for toolang-0.4.0a4-py3-none-any.whl |
Total release size: 4.2 MB
Release files / toolang-0.4.0a4.tar.gz
| Download URL | toolang-0.4.0a4.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0bb6e9b49d53444dba2e760441b7299d01939004eb1eda80e7445bd07c06b62
|
|
BLAKE2b-256 checksum How to use checksums |
57f69b3d7516d553a03730550506ea4cd73c9915dfff3b60eba94234d01e15b8
|
| 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 11, 2026.
Transparency logRelease files / toolang-0.4.0a4-py3-none-any.whl
| Download URL | toolang-0.4.0a4-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57e08f336723c2357b04c70b1e91fff2742099f51b6a540c0a4d65dacbb447e6
|
|
BLAKE2b-256 checksum How to use checksums |
f3d35c48591ee0480624623f7dd191dcb5ee0679b753385a4f1bcfd1848bb493
|
| 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 11, 2026.
Transparency logSecurity for toolang 0.4.0a4
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.
Attestation for toolang-0.4.0a4.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 11, 2026.
Transparency logA 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.