[Ecosystem] Cross-language context engineering: Meet ContextChef in TypeScript
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go, typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 103
- Fork
- 6
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của superfly/contextwindow
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
superfly/contextwindow#18 ·
Tất cả issue của superfly/contextwindow
Issue tương tự
-
Architecture boundaries selftest passes with the source description construction rule disabledCó thể đã có người làm @denisvmedia đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
goreleaser/goreleaser#7385 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kubernetes-sigs/vsphere-csi-driver#4483 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
genealogix/glx#1634 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Query service sends an empty traceresponse header on untraced requestsCó thể đã có người làm @pingxin403 đã nhận hôm nay. Đang mởbug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
jaegertracing/jaeger#10342 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày