openai/harmony

Renderer for the harmony response format to be used with gpt-oss

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 23 minutes ago
Added to GitGenius on September 15th, 2026
Created on July 31st, 2025
Open Issues & Pull Requests: 70 (+0)
GitHub issues: Enabled
Number of forks: 310
Total Stargazers: 4,505 (+0)
Total Subscribers: 17 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.2 hours
Mean response time: 10.7 days
90th percentile: 13.0 days
Tracked items: 49

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 61% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 45
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 319 days
Stale 30+ days: 44
Stale 90+ days: 41

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Harmony is a renderer for the harmony response format designed to work with OpenAI's gpt-oss open-weight models.

The harmony response format defines how gpt-oss models structure their outputs, enabling the model to write to multiple channels for chain-of-thought reasoning, tool calling, and regular responses. It also supports tool namespaces, structured outputs, and instruction hierarchies. The format mimics OpenAI's Responses API, making it familiar to developers who have used that API. Gpt-oss models require the harmony format to function correctly, so this library provides a shared implementation for both rendering and parsing that maintains token-sequence fidelity across both operations.

Developers building custom inference solutions for gpt-oss should use this library to ensure correct formatting. Those using gpt-oss through existing APIs or providers like HuggingFace, Ollama, or vLLM do not need to interact with it directly, as their inference solution handles the formatting. The tool offers consistent formatting through a unified codebase, performance through a Rust implementation, and first-class Python support with typed stubs and feature parity with the Rust version.

The project maintains parallel test suites for Rust and Python to ensure parity between implementations. Development uses Rust for core rendering and parsing logic, exposed to Python through PyO3 bindings, with a build process using maturin that creates native extensions. The repository includes comprehensive documentation for both Rust and Python usage, along with contributing guidelines and a clear repository layout for developers working locally.