Skip to main content

⚡ tokenloop

A lightweight, modular, model-agnostic agent loop and token-streaming framework designed for maximum performance and zero bloat.

Features

  • Modular Execution Loop
    A clean, unopinionated event loop built on the Unix philosophy. Step through prompts, model inferences, and tool executions predictably without heavy state abstractions.

  • Model-Agnostic Provider Support
    Bring your own provider. Seamlessly switch between local models, cloud APIs, or custom backends with zero code refactoring.

  • Skills Support Add Local Skills with Validation tokenloops responsibilty

  • First-Class Tool Calling
    Effortlessly register native functions or structured Python/Rust/Go methods as executable agent tools with automatic schema generation.

  • Model Context Protocol (MCP) Integration
    Out-of-the-box client support for MCP servers, allowing your agents to dynamically discover and consume external resources and tools.

  • Human-in-the-Loop (HITL) Checkpoints
    Inject asynchronous approval hooks before executing critical or sensitive tool calls, ensuring absolute safety and human oversight.

  • Intelligent Context Compression
    Built-in utilities to prune, summarize, and compress long conversation histories to keep token windows tight and latency low.

  • AGUI & Real-Time Token Streaming
    First-class support for streaming tokens and structured UI events simultaneously, powering responsive agent-driven user interfaces.

  • Multi-Language Ergonomics
    Consistent, idiomatic APIs available natively across Python, Rust, Go, and Node.js.

  • Zero Bloat Architecture
    Extremely lightweight core footprint with zero unnecessary dependencies, giving you total control over performance.

Metadata

Release files for tokenloop 0.1.2

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

Source distribution (sdist)

Source distribution for tokenloop 0.1.2
File Size Uploaded
tokenloop-0.1.2.tar.gz 129.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tokenloop 0.1.2
File Interpreter ABI Platform
tokenloop-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 193.6 kB

Release files / tokenloop-0.1.2.tar.gz

Download URL tokenloop-0.1.2.tar.gz
Size 129.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ac04796a52315e5b974b9b7718b8ec738872bccd7cd42e710afc653863eed695
BLAKE2b-256 checksum
How to use checksums
1e15219c4894fb3ddc673ed7790ad3420e25cfaf5d2069e7e354800b0f122a1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.24

Release files / tokenloop-0.1.2-py3-none-any.whl

Download URL tokenloop-0.1.2-py3-none-any.whl
Size 63.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b074010ba7f9db73f953ce7bd4ffdba05062d1e965e91a24638a6c574eb0f305
BLAKE2b-256 checksum
How to use checksums
7172cbf82d951086ede3fe9d0f0a2f433426cb981f13bcd926cd91fc11648248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.24

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.0

2 release files

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