
agentic-context-engine
Open-source engine that lets LLM agents learn strategies from their own past runs
agentic-context-engine is an open-source agent framework for multi-agent frameworks. It is available on API, CLI, Self-hosted, Linux, macOS and Windows.
- Pricing
- Open source
- Platforms
- API, CLI, Self-hosted
- GitHub stars
- 2.6K
- Last commit
- Language
- Python
- License
- Apache-2.0
Similar agents
About agentic-context-engine
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.
What it does
- 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
Pricing
Open source
Open-source engine under Apache-2.0; hosted Kayba service is sales-led
Prices change. Check kayba.ai before you buy.
agentic-context-engine 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.



