[Ecosystem] Cross-language context engineering: Meet ContextChef in TypeScript
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go, typescript
- Domain
- documentation
Research direction
Read the contextwindow README and review the proposed ContextChef project link in the issue. The request has had no comments for 200 days, so first confirm maintainers still want the cross-link; if approved, done means the README links to ContextChef and its TypeScript/JavaScript ecosystem.
Written by the indexing model from the issue text.
Description
Hi @rhettg and the contextwindow team,
I'm the author of ContextChef, a context compiler for TypeScript/JavaScript AI agents. I recently came across contextwindow and noticed we're solving a closely related problem — managing LLM conversation context with compression and tool handling — but targeting different language ecosystems.
As of April 2026, ContextChef is at v3.0.3 (core) / v1.1.0 (AI SDK middleware). Its current scope includes:
- History compression: tokenizer-based or reportTokenUsage trigger, summarization via configurable small model, mechanical compaction for zero-cost pruning
- Tool pruning: flat tag-based filtering or two-layer namespace architecture (stable core tools + on-demand toolkit loading) to prevent tool hallucinations
- Multi-provider compilation: same prompt structure compiles to OpenAI / Anthropic / Gemini with automatic cache breakpoints, prefill, and tool call format adaptation
- VFS offloading: auto-truncate large tool outputs, store originals behind
context://URIs for on-demand retrieval - Cross-session memory: key-value store with TTL, injected as XML on compile
- Snapshot & Restore: full internal state capture for branching and rollback
- Vercel AI SDK middleware: drop-in integration with zero code changes
I think our two projects are complementary rather than competing:
| contextwindow (Go) | ContextChef (TypeScript) | |
|---|---|---|
| Language | Go | TypeScript/JavaScript |
| Compression | Summary model | Summary model + mechanical compaction + circuit breaker |
| Tool management | Tool calling support | Dynamic pruning + namespace lazy-loading |
| Persistence | SQLite (built-in) | In-memory (pluggable storage adapters) |
| Provider support | OpenAI, Gemini, Claude | OpenAI, Anthropic, Gemini (format adapters) |
| State injection | — | Zod schema → XML injection |
| Positioning | Low-level Go library | Context compiler with modular pipeline |
Go and TypeScript are probably the two most popular languages for building AI agents today. I believe cross-linking our projects would help developers discover the right tool for their stack.
Would you be open to:
- Cross-linking our projects in each other's READMEs so users can find the implementation that matches their language
- Sharing design notes on compression strategies — your SQLite persistence model is something we've been considering, and our namespace-based tool pruning might be interesting for contextwindow's roadmap
Happy to point to specific implementation areas if any of this is of interest.
Best,
MyPrototypeWhat
- Dominant language
- Go
- Stars
- 103
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from superfly/contextwindow
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
superfly/contextwindow#18 ·
All issues in superfly/contextwindow
Similar issues
-
Architecture boundaries selftest passes with the source description construction rule disabledPossibly taken @denisvmedia claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
goreleaser/goreleaser#7385 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/vsphere-csi-driver#4483 ·
Maintainers usually reply within 1 day
-
cli
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
genealogix/glx#1634 · 1 reaction ·
Maintainers usually reply within 2 days
-
Query service sends an empty traceresponse header on untraced requestsPossibly taken @pingxin403 claimed this today. Openbug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
jaegertracing/jaeger#10342 · 2 comments ·
Maintainers usually reply within 1 day