# Agentic RL: Token-In, Token-Out Done Right (TITO)

- **ID:** 978
- **Kind:** post
- **URL:** https://huggingface.co/spaces/qgallouedec/tito
- **Authors:** Quentin Gallouédec, Kashif Rasul
- **Venue:** Hugging Face Spaces
- **Publisher:** Hugging Face Spaces
- **Published:** 2026
- **Source:** huggingface
- **Access:** https://qgallouedec-tito.hf.space/ / https://huggingface.co/spaces/qgallouedec/tito
- **License:** unknown (HF Space article)
- **License family:** Not stated (auto-classified)
- **Tags:** tito, agentic-rl, chat-template, tokenization, huggingface, gallouedec, rasul
- **Topics:** agentic RL, chat templates, tokenization, multi-turn RL
- **Added:** 2026-10-02
- **Page:** https://papers.projxon.ai/entries/978

## Summary

Interactive HF Space article (qgallouedec/tito) arguing multi-turn agentic RL silently breaks when decode→parse→re-tokenize drifts tokens so gradients hit sequences the policy never sampled. Fix: keep a token buffer; never re-encode decoded samples; tokenize tool deltas via prefix-preserving chat-template property. Surveys 18/19 open families as prefix-preserving for tool messages; documents Qwen3 Jinja one-line fix and GLM stop-token placement pitfalls. Alternative is per-family renderers libraries.

## Attributes

- **Purpose:** Explain correct multi-turn/tool RL: never re-encode sampled tokens (TITO invariant)
- **Scale:** HF Space research article; likes=7 at API check; Docker SDK
- **Domain:** agentic RL, chat templates, tokenization, multi-turn RL
- **Time period:** Article May 28, 2026; Space lastModified 2026-06-19; Discord 2026-05-28
- **Author type:** industry

## From the source (fetched 2026-10-03)

- **Repository:** qgallouedec/tito (Hugging Face)
- **Created:** May 13, 2026 (Hugging Face)
- **Last updated:** Jun 19, 2026 (Hugging Face)
- **Likes:** 7 (Hugging Face)

## Research notes

- Primary: HF Space API + live article content. Subdomain qgallouedec-tito.hf.space. Not a dataset; blog/demo article. Discord posted Space URL.

## Similar entries

- [The ultimate guide to multi-harness RL](https://papers.projxon.ai/entries/839) (post, #839)
- [MiMo-V2.6-RL-oss (Agentic RL Environments)](https://papers.projxon.ai/entries/1063) (dataset, #1063)
- [AgentEnv (Scale AI) — open framework for building RL agent environments](https://papers.projxon.ai/entries/1276) (code, #1276)
- [mimo-v2.6 RL (live training metrics dashboard)](https://papers.projxon.ai/entries/994) (other, #994)
- [Prime Sandboxes: MicroVMs for Agentic RL Training at Scale](https://papers.projxon.ai/entries/1037) (thread, #1037)
- [GLM-5: from Vibe Coding to Agentic Engineering](https://papers.projxon.ai/entries/532) (paper, #532)
