Convex Agents Context

Installation
SKILL.md

Purpose

By default, the Agent includes recent messages as context. This skill covers customizing that behavior for advanced patterns like cross-thread search, memory injection, summarization, and filtering.

When to Use This Skill

  • Limiting context window to prevent token overflow
  • Searching across multiple threads for relevant context
  • Injecting memories or user profiles into every prompt
  • Summarizing long conversations before continuing
  • Filtering out sensitive or irrelevant messages
  • Adding few-shot examples to guide LLM

Configure Default Context Options

const myAgent = new Agent(components.agent, {
  name: "My Agent",
  languageModel: openai.chat("gpt-4o-mini"),
Related skills

More from sstobo/convex-skills

Installs
GitHub Stars
23
First Seen