agentic-context-engine
CLAUDE.md2.6k starsChanged 8 months agoApache-2.0View on GitHub
Anti-patterns to reject: - Writing a function that calls multiple steps manually instead of composing them in a Pipeline - Inline reflection/evaluation logic instead of creating a ReflectStep or EvaluateStep - Ad-hoc ThreadPoolExecutor usage instead of async_boundary and max_workers on steps - Standalone scripts that duplicate pipeline functionality without using the pipeline engine - Bypassing requires/provides contracts by accessing context fields not declared in requires If a task seems like it cannot fit the pipeline model, explain why to the…
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about kayba-ai/agentic-context-engine
- A Hacker News story“Show HN: Open-source implementation of Stanford's self-learning agent framework”Hacker News · Oct 18, 2025 · 10 points
- A Hacker News story“Show HN: LLM agents that write Python to analyze execution traces at scale”Hacker News · Mar 7, 2026 · 5 points
- A Hacker News story“Show HN: Open-source agent learning layer: 30% to 100% success on browser agents”Hacker News · Nov 29, 2025 · 3 points
- thoroc/context-radar“Freshness: agentic-context-engine (ACE) v0.12.0 -> v0.13.0”GitHub · Sep 27, 2026
- emilesilvis/sddobservatory.com“Add project: Agentic Context Engine”GitHub · Jul 19, 2026
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub and Hacker News (12 times).
On GitHub · 9
- Sep 27, 2026Freshness: agentic-context-engine (ACE) v0.12.0 -> v0.13.0 — thoroc/context-radar0 reactions
- Jul 19, 2026Add project: Agentic Context Engine — emilesilvis/sddobservatory.com0 reactions
- Mar 31, 2026ACE: upgrade reflector/curator prompts to match kayba-ai reference implementation quality — windoliver/koi0 reactions
- Mar 14, 2026feat: add ACE self-improving agent framework — BaptTF/openclaw-lea-config0 reactions · 1 comment
- Jan 1, 2026ACE integration — NoSaaS-me/Vlt-Bridge0 reactions
4 more on GitHub
- Dec 27, 2025Implement Agentic Context Engineering — Open-Superintelligence-Lab/auto-ai-researcher0 reactions
- Oct 29, 2025ACE Integration: Auto-Improving Skills & Agents with Demo Cases — nexi-lab/nexus0 reactions
- Oct 23, 2025Update README.md with Agentic Context Engine Entry — kyrolabs/awesome-langchain0 reactions · 1 comment
- Oct 22, 2025Add Agentic Context Engine (ACE) - Self-improving agents framework — kyrolabs/awesome-langchain0 reactions · 4 comments
On Hacker News · 3
- Oct 18, 2025Show HN: Open-source implementation of Stanford's self-learning agent framework10 points · 5 comments
- Mar 7, 2026Show HN: LLM agents that write Python to analyze execution traces at scale5 points
- Nov 29, 2025Show HN: Open-source agent learning layer: 30% to 100% success on browser agentssays it tested it3 points
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- kayba-pipelineSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read docs/design/PIPELINE_DESIGN.md to understand the Step → Pipeline → Branch model.
- Very specific: line 13
Use StepContext.replace() for immutable context updates — never mutate context directly.
- Very specific: line 14
Put integration-specific data in metadata, not new context fields, unless the field is shared across multiple pipelines.
- Distinctive: line 23
If a task seems like it cannot fit the pipeline model, explain why to the user before proceeding — do not silently circumvent it.
- Very specific: line 27
Read the relevant design docs (docs/design/ACE_ARCHITECTURE.md, docs/design/PIPELINE_DESIGN.md) thoroughly.
- Distinctive: line 30
Wait for the user to explicitly accept before proceeding.
- Very specific: line 33
Before working on code in ace/, read docs/design/ACE_ARCHITECTURE.md to understand the current architecture.
- Very specific: line 34
Before working on code in pipeline/ or ace/core/, read docs/design/PIPELINE_DESIGN.md to understand the pipeline engine.
- Very specific: line 43
If you need to work with collected traces from Logfire, read agent-guides/logfire.md
- Very specific: line 69
Test files: tests/test_*.py.
- Distinctive: line 73
Add tests for new features.
- Very specific: line 77
Do NOT add Co-Authored-By trailers to commit messages
- Distinctive: line 97
NEVER USE FALLBACKS OR IMPLEMENT THINGS I NEVER ASKED FOR.
- Distinctive: line 99
Keep your answers concise and to the point.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Repository Guidelines
Pipeline-First Development (MANDATORY)
All new functionality MUST be implemented as pipeline Steps composed via the Pipeline engine. Do NOT write standalone scripts, ad-hoc loops, or inline logic that bypasses the pipeline. Before writing any code:
- Read
docs/design/PIPELINE_DESIGN.mdto understand the Step → Pipeline → Branch model. - Implement logic as a
Stepclass withrequires/providesdeclarations and a__call__(self, ctx) -> ctxmethod. - Compose steps using
Pipeline().then(...)and.branch(...)— never manual for-loops or direct function chaining. - Use
StepContext.replace()for immutable context updates — never mutate context directly. - Put integration-specific data in
metadata, not new context fields, unless the field is shared across multiple pipelines.
Anti-patterns to reject:
- Writing a function that calls multiple steps manually instead of composing them in a Pipeline
- Inline reflection/evaluation logic instead of creating a ReflectStep or EvaluateStep
- Ad-hoc
ThreadPoolExecutorusage instead ofasync_boundaryandmax_workerson steps - Standalone scripts that duplicate pipeline functionality without using the pipeline engine
- Bypassing
requires/providescontracts by accessing context fields not declared inrequires
If a task seems like it cannot fit the pipeline model, explain why to the user before proceeding — do not silently circumvent it.
Core Code Protection
Do NOT modify core modules (ace/core/, pipeline/) without explicit user approval. Before proposing any change to these directories:
- Read the relevant design docs (
docs/design/ACE_ARCHITECTURE.md,docs/design/PIPELINE_DESIGN.md) thoroughly. - Evaluate whether the change is truly required or if it can be achieved outside the core (e.g., in an integration, step, or example).
- Clearly explain the proposed change and its justification to the user before making any edits.
- Wait for the user to explicitly accept before proceeding.
Documentation Maintenance
Before working on code in ace/, read docs/design/ACE_ARCHITECTURE.md to understand the current architecture.
Before working on code in pipeline/ or ace/core/, read docs/design/PIPELINE_DESIGN.md to understand the pipeline engine.
Docs MUST be kept in sync with code. Any change that alters a public API, renames a concept, adds/removes a module, or changes execution flow requires a corresponding update to the relevant docs. Do not merge code changes that make the documentation inaccurate.
Key design docs:
docs/design/ACE_ARCHITECTURE.md— ACE architecture: layers, core concepts, roles, steps, runners, integrationsdocs/design/ACE_REFERENCE.md— ACE code reference: full implementations, API signatures, usage examplesdocs/design/ACE_DECISIONS.md— design decisions and rejected alternatives (ACE, pipeline, migration)docs/design/PIPELINE_DESIGN.md— pipeline engine: steps, StepProtocol, Pipeline, Branch, concurrency- If you need to work with collected traces from Logfire, read
agent-guides/logfire.md
Project Structure
ace/— core library: roles (PydanticAI-backed), skillbook, steps, runners, providers, RR, integrations, observabilitypipeline/— generic pipeline engine thataceis built on (seedocs/design/PIPELINE_DESIGN.md)ace-eval/— evaluation framework (submodule, separate repo)tests/— unit/integration tests (pytest)examples/— runnable demos grouped by integrationagent-guides/— internal development guides for LLM agents; not part of the public docs sitedocs/— guides and reference materialdocs/design/ACE_ARCHITECTURE.md— architecture and concepts (keep in sync with code)docs/design/ACE_REFERENCE.md— code reference and examples (keep in sync with code)docs/design/ACE_DECISIONS.md— design decisions and rejected alternativesdocs/design/PIPELINE_DESIGN.md— pipeline engine design doc (keep in sync with code)
Commands
uv sync— install all dependenciesuv run pytest— run tests (excludesintegrationandrequires_apimarkers by default)uv run pytest -m unit/-m integration/-m slow— run by markeruv run black ace/ tests/ examples/— format codeuv run mypy ace/— type check
Coding Style
- PEP 8 with Black formatting (line length 88)
- Type hints and docstrings for public APIs
- Python 3.12 target
- Test files:
tests/test_*.py; functions:test_*; classes:Test*
Testing
- Pytest is the primary runner
- Add tests for new features; include regression tests for bug fixes
Commits
- Conventional Commits:
feat(scope): subject,fix(scope): subject - Do NOT add
Co-Authored-Bytrailers to commit messages - PRs should include description, test results, and relevant docs updates
ACE Roles (quick reference)
| Role | Responsibility | Key Class |
| Agent | Executes tasks using skillbook strategies | Agent |
| Reflector | Analyzes execution results | Reflector |
| SkillManager | Updates the skillbook with new strategies | SkillManager |
Integration Runners
| Runner | Framework | Use Case |
ACELiteLLM | LiteLLM (100+ providers) | Simple self-improving agent |
ACELangChain | LangChain | Wrap chains/agents with learning |
ACEBrowserUse | browser-use | Browser automation with learning |
ACEClaudeCode | Claude Code CLI | Coding tasks with learning |
NEVER USE FALLBACKS OR IMPLEMENT THINGS I NEVER ASKED FOR.
Keep your answers concise and to the point. If you don't know something, say you don't know instead of making assumptions or fabricating information. Always ask clarifying questions if the user's request is ambiguous or lacks necessary details.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

