Dicklesworthstone

Toon Bend — AI skill for Claude Code

AI community

Byte-for-byte port of the toon CLI (toon_rust: JSON <-> TOON, the token-efficient format for LLM context) to Bend 2. Golden-tested against the pinned original on 4 executor lanes (interpreter, native.

How to install Toon Bend

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Dicklesworthstone/toon_bend and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Toon Bend does

Byte-for-byte port of the toon CLI (toon_rust: JSON <-> TOON, the token-efficient format for LLM context) to Bend 2. Golden-tested against the pinned original on 4 executor lanes (interpreter, native C at 1 and N threads, JavaScript), 368 machine-checked laws, a software binary64, zero unsafe.

Alternatives in AI

  • Clawcodex — Token efficient Claude Code full Python rebuild 875 ★
  • Claude Fable 5 System Prompt Clean — the optimized, token-efficient version of the leaked Claude Fable 5 / Mythos 5 system prompt 475 ★
  • The Pair — Open-source AI pair programming for desktop: a Mentor + Executor agent cross-check each other's code to catch 358 ★

README

toon_bend - TOON in Bend 2

[![Bend 2](https://img.shields.io/badge/bend-2.0.16-7c3aed.svg)](https://github.com/bendlang/bend) [![Original](https://img.shields.io/badge/port%20of-toon__rust%200.2.4-orange.svg)](https://github.com/Dicklesworthstone/toon_rust) [![TOON Spec](https://img.shields.io/badge/spec-v3.0-fef3c0)](https://github.com/toon-format/spec) [![License: MIT](https://img.shields.io/badge/License-MIT%2BOpenAI%2FAnthropic%20Rider-blue.svg)](./LICENSE)

**[The original: toon_rust](https://github.com/Dicklesworthstone/toon_rust)** | **[The TOON project](https://github.com/toon-format/toon)** | **[TOON Specification](https://github.com/toon-format/spec)**

A byte-for-byte port of the `toon` command line tool (`toon_rust` 0.2.4) to [Bend 2](https://github.com/bendlang/bend): the same stdout, the same stderr and the same exit code as the pinned original on every captured case, on every Bend executor lane, with the properties that hold for every input stated as laws and checked by Bend's proof checker.

**Credit:** `toon_rust` is a Rust port of the original [TOON TypeScript implementation](https://github.com/toon-format/toon) by the [toon-format](https://github.com/toon-format) team; the format specification is maintained at [toon-format/spec](https://github.com/toon-format/spec). This repository ports the Rust tool's observable behavior, oddities included, and changes nothing about the format.

Quick Build

git clone https://github.com/Dicklesworthstone/toon_bend && cd toon_bend
git clone https://github.com/bendlang/bend /tmp/bend && git -C /tmp/bend checkout --detach 15ae0c8
export BEND_NO_TELEMETRY=1
bun /tmp/bend/bend2/main.ts port/main.bend -o toon      # bun >= 1.4, clang >= 14
echo '{"users":[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]}' | ./toon -- --encode
# or, with the original's exact command line (the launcher passes `--` for you and repairs clo