context-chef-core

Community

Compile AI agent context without drift.

AuthorMyPrototypeWhat
Version1.0.0
Installs0

System Documentation

What problem does it solve?

ContextChef helps you stop AI agent context from drifting and overflowing by compiling your system prompt, compressed history, dynamic state, and (optionally) memory and tool handling into a provider-ready payload for each LLM call.

Core Features & Use Cases

  • History compression (Janitor): keeps conversations within the model’s context window via token-aware preservation and LLM-based summarization when needed.
  • Tool management (Pruner): reduces hallucinated or irrelevant tool calls by filtering tool sets for the current task.
  • Dynamic state with Zod (XML injection): prevents state drift by validating user/task state and injecting it efficiently for recency bias.
  • Provider-adapter compilation: produces correctly formatted payloads for OpenAI, Anthropic, or Gemini without rewriting prompts per provider.
  • Optional memory + VFS offloading: persist key facts across turns and truncate/offload oversized tool results to keep responses usable.

Quick Start

Ask the AI to integrate @context-chef/core into your existing TypeScript/JavaScript agent loop by detecting your provider, installing the package, wiring compile() per turn, and enabling history compression plus dynamic Zod state injection.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: context-chef-core
Download link: https://github.com/MyPrototypeWhat/context-chef/archive/main.zip#context-chef-core

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.