[Ecosystem] Cross-language context engineering: Meet ContextChef in TypeScript

未关闭
#14 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
go, typescript
领域
documentation

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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:

  1. Cross-linking our projects in each other's READMEs so users can find the implementation that matches their language
  2. 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

主要语言
Go
星标
103
派生
6
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

superfly/contextwindow 的其他 Issue

查看 superfly/contextwindow 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。