claudeseal

package
v0.1.5708 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package claudeseal carries Claude's signed reasoning through a Responses client (mysterious_dove_96933 on Discord).

Claude signs each thinking block and seals a redacted_thinking block whole, and Anthropic wants both back as they came on the next request of a tool loop. A Responses client such as Codex, with store off, keeps only what a reply's reasoning items carry, and of those only encrypted_content is opaque. So magpie writes the block there: "magpie- claude1:" and the block's JSON in base64, which only magpie reads. Sent to OpenAI it would be refused as invalid_encrypted_content, so the gateway drops it before any Responses upstream, and a rollout is made portable by dropping it there (sessions.PortCodexRollouts).

Index

Constants

View Source
const Mark = "magpie-claude1:"

Mark begins the encrypted_content of a reasoning item carrying a Claude block.

Variables

This section is empty.

Functions

func Is

func Is(encrypted string) bool

Is reports whether encrypted is one magpie sealed.

func Open

func Open(encrypted string) (block json.RawMessage, ours bool)

Open is the block an encrypted_content carries: ours is false for one magpie didn't seal, and block nil for one of magpie's that can't be read.

func Seal

func Seal(block []byte) string

Seal is the encrypted_content carrying block, a Messages content block (thinking with its signature, or redacted_thinking).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL