Add PITH Inter-Agent Payload Compressor skill#1303
Open
VjAlbert wants to merge 7 commits into
Open
Conversation
Contribute → Open pull request
- SKILL.md, LICENSE.txt, README.md -> skills/video-analyzer/ - process_video.py, detect_characters.py, build_json_report.py -> skills/video-analyzer/scripts/
PITH compresses verbose agent-to-agent handoff payloads using Zipf word-density scoring with Benford's Law as a structural integrity validator. Fills the gap between Caveman (output compression) and LLMLingua (input compression): the Agent→Agent communication layer. - Zipf proxy: word length ≥7 chars = rare vocabulary = keep - Benford gate: MAD validation prevents over-compression - Preserves code blocks, JSON, URLs, file paths untouched - 30-60% token savings on typical verbose agent outputs - Zero external dependencies, works offline Closes: add PITH skill Topics: skillsmp skill-md-skillsmp agent-skills claude-skills
- SKILL.md: expanded origin + how-it-works sections, JSON output docs - README.md: full mathematical foundations, installation section, 5 benchmarks - compress.py: annotated version with inline section headers - tests/evals.json: 8 test cases (was 4) — added json_preservation, aggressive_compression, url_preservation, benford_validation
Aligns with anthropics/skills repo structure where all skills live under skills/<name>/. Added LICENSE.txt (MIT) matching the upstream skill format (license field in SKILL.md frontmatter).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces PITH (and reorganizes video-analyzer into the skills directory structure), two complementary skills for the Anthropics skills repository.
PITH — Inter-Agent Payload Compressor
What it does:
PITH compresses the payloads exchanged between agents in a multi-agent pipeline, filling a gap that existing compression tools leave untouched. While Caveman compresses user-facing output and LLMLingua compresses user input, PITH targets the intermediate results—tool outputs, reasoning traces, context handoffs—that accumulate token waste across agent chains.
Key Features:
Technical Foundation:
Compression Modes:
Usage Examples: