Skip to content

SuperInstance/context-compactor-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

context-compactor-v2

Next-generation text compression Cloudflare Worker — improved algorithms for fleet context management.

What This Gives You

  • Smarter compression — enhanced extractive and abstractive strategies over v1
  • Cloudflare Worker — edge-deployed, sub-millisecond cold start
  • KV-backed caching — avoids redundant compression on repeated inputs
  • Fleet-native — exposes /vessel.json for automatic fleet discovery

Quick Start

wrangler deploy

# Compress text
curl -X POST https://context-compactor-v2.<your-subdomain>.workers.dev/api/compact \
  -H "Content-Type: application/json" \
  -d '{"text": "Long document...", "strategy": "extractive", "ratio": 0.3}'

How It Fits

A Cocapn Fleet vessel. Successor to context-compactor.

Related repos:

License

Apache 2.0

About

Advanced context compaction — compress fleet context intelligently

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%