Skip to content
reaatechREAATECH

context-window-planner · packages

Every package shipped from reaatech/context-window-planner, published or pending.

2 packages

@reaatech/context-window-planner

v0.1.0
A TypeScript library providing typed context items, packing strategies, and tokenizer adapters for deciding what to include, summarize, or drop when fitting prompts into LLM context windows. It exports factory functions for six context item primitives (SystemPrompt, ConversationTurn, RAGChunk, ToolSchema, ToolResult, GenerationBuffer), four packing strategies (priority-greedy, sliding-window, summarize-and-replace, RAG relevance), and three tokenizer adapters (OpenAI/tiktoken, Anthropic approximate, mock), all orchestrated through a `ContextPlannerBuilder` class.
status
published
published
11 days ago

@reaatech/context-window-planner-cli

v0.1.0
A CLI that reads a JSON context-window planning request from stdin and writes a packing plan (included, summarized, and dropped items with token counts) to stdout.
status
published
published
11 days ago