# agentic-context-engine

> agentic-context-engine is an open-source agent framework for multi-agent frameworks. Open-source engine that lets LLM agents learn strategies from their own past runs. It is available on API, CLI, Self-hosted, Linux, macOS and Windows.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** API, CLI, Self-hosted, Linux, macOS, Windows
- **Website:** https://www.kayba.ai
- **Repository:** https://github.com/kayba-ai/agentic-context-engine
- **GitHub stars:** 2,619
- **License:** Apache-2.0
- **Categories:** [multi-agent frameworks](https://ai-powered.com/categories/multi-agent-frameworks), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Agents that repeat the same mistakes session after session can be given a memory of what worked and what failed. This open-source Python library keeps a persistent Skillbook of strategies that is updated after each task, so the next attempt starts from lessons already learned rather than from scratch.

A Reflector component reads execution traces and writes small Python programs to search them for patterns and isolate failing steps, then a SkillManager adds, refines or removes strategies. Runners are provided for LiteLLM models, LangChain chains, browser-use automation and the Claude Code CLI, and existing agent logs can be turned into strategies without re-running tasks.

It suits developers building or maintaining agents who want improvement without fine-tuning or a vector database. The same engine also powers Kayba's hosted service, which handles the investigation and fix workflow for production agents.

## Features

- **Persistent Skillbook:** Strategies are stored and updated across tasks so learned behaviour carries into later runs.
- **Trace reflection:** A Reflector analyses execution traces to extract what succeeded and what failed.
- **Multiple runners:** Ready-made runners cover LiteLLM, LangChain, browser-use and Claude Code tasks.
- **Learn from existing logs:** Strategies can be extracted from pre-recorded agent traces without re-running tasks.
- **Composable pipeline:** Learning steps can be arranged into custom pipelines with explicit inputs and outputs.
- **Setup and CLI tools:** An interactive setup command, model search and connection validation are included.

## Good for

- Make a browser automation agent cheaper to run as it accumulates successful strategies
- Feed corrections to a chat agent so it stops repeating the same factual errors
- Extract lessons from logs of an existing LangChain agent without rerunning tasks
- Use Claude Code with a learning loop for large autonomous code migrations

## FAQ

### Do I need fine-tuning or a vector database to use agentic-context-engine?

No. The library states that it requires no fine-tuning, no training data and no vector database.

### Which LLM providers are supported?

Models are accessed through LiteLLM model strings, and PydanticAI routing covers 100+ providers including OpenAI, Anthropic, Google, Bedrock and Groq.

### Is there a hosted version?

Yes. Kayba is the managed service built on the same engine, which investigates production errors and ships fixes as pull requests.

### Is agentic-context-engine free?

Yes. agentic-context-engine is open source, so you can use and self-host it for free.

### What are the best alternatives to agentic-context-engine?

The closest alternatives to agentic-context-engine are llm_agents, Agentlas-OS, lagent, smolagents and atomic-agents.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [llm_agents](https://ai-powered.com/agents/llm-agents): llm_agents is an open-source agent framework for ai models and llm tooling.
- [Agentlas-OS](https://ai-powered.com/agents/agentlas-os): Agentlas-OS is an open-source agent for ai models and llm tooling.
- [lagent](https://ai-powered.com/agents/lagent): lagent is an open-source agent framework for multi-agent frameworks.
- [smolagents](https://ai-powered.com/agents/smolagents): smolagents is an open-source agent framework for multi-agent frameworks.
- [atomic-agents](https://ai-powered.com/agents/atomic-agents): atomic-agents is an open-source agent framework for ai models and llm tooling.
- [OpenProgram](https://ai-powered.com/agents/openprogram): OpenProgram is an open-source agent framework for ai models and llm tooling.
- [hindsight](https://ai-powered.com/agents/hindsight-2): hindsight is an open-source agent framework for knowledge and memory.
- [AgentVerse](https://ai-powered.com/agents/agentverse-2): AgentVerse is an open-source agent for multi-agent frameworks.

---
Source: https://ai-powered.com/agents/agentic-context-engine
