agentleFS
kayba-aikayba-ai/agentic-context-engine/AGENTS.md

agentic-context-engine

AGENTS.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

Dec 2025: 1 mentionJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 3 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the kayba-ai/agentic-context-engine repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about kayba-ai/agentic-context-engine

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

4 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.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
  1. Very specific:

    Read docs/design/PIPELINE_DESIGN.md to understand the Step → Pipeline → Branch model.

    line 10
  2. Very specific:

    Use StepContext.replace() for immutable context updates — never mutate context directly.

    line 13
  3. Very specific:

    Put integration-specific data in metadata, not new context fields, unless the field is shared across multiple pipelines.

    line 14
  4. Distinctive:

    If a task seems like it cannot fit the pipeline model, explain why to the user before proceeding — do not silently circumvent it.

    line 23
  5. Very specific:

    Read the relevant design docs (docs/design/ACE_ARCHITECTURE.md, docs/design/PIPELINE_DESIGN.md) thoroughly.

    line 27
  6. Distinctive:

    Wait for the user to explicitly accept before proceeding.

    line 30
  7. Very specific:

    Before working on code in ace/, read docs/design/ACE_ARCHITECTURE.md to understand the current architecture.

    line 33
  8. Very specific:

    Before working on code in pipeline/ or ace/core/, read docs/design/PIPELINE_DESIGN.md to understand the pipeline engine.

    line 34
  9. Very specific:

    If you need to work with collected traces from Logfire, read agent-guides/logfire.md

    line 43
  10. Very specific:

    Test files: tests/test_*.py.

    line 69
  11. Distinctive:

    Add tests for new features.

    line 73
  12. Very specific:

    Do NOT add Co-Authored-By trailers to commit messages

    line 77
  13. Distinctive:

    NEVER USE FALLBACKS OR IMPLEMENT THINGS I NEVER ASKED FOR.

    line 97
  14. Distinctive:

    IF IT'S STRAIGHFORWARD, IMPLEMENT IT STRAIGHFORWARD.

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

This file provides guidance to coding agents working 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:

  1. Read docs/design/PIPELINE_DESIGN.md to understand the Step → Pipeline → Branch model.
  2. Implement logic as a Step class with requires/provides declarations and a __call__(self, ctx) -> ctx method.
  3. Compose steps using Pipeline().then(...) and .branch(...) — never manual for-loops or direct function chaining.
  4. Use StepContext.replace() for immutable context updates — never mutate context directly.
  5. 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 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 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:

  1. Read the relevant design docs (docs/design/ACE_ARCHITECTURE.md, docs/design/PIPELINE_DESIGN.md) thoroughly.
  2. Evaluate whether the change is truly required or if it can be achieved outside the core (e.g., in an integration, step, or example).
  3. Clearly explain the proposed change and its justification to the user before making any edits.
  4. 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, integrations
  • docs/design/ACE_REFERENCE.md — ACE code reference: full implementations, API signatures, usage examples
  • docs/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, observability
  • pipeline/ — generic pipeline engine that ace is built on (see docs/design/PIPELINE_DESIGN.md)
  • ace-eval/ — evaluation framework (submodule, separate repo)
  • tests/ — unit/integration tests (pytest)
  • examples/ — runnable demos grouped by integration
  • agent-guides/ — internal development guides for LLM agents; not part of the public docs site
  • docs/ — guides and reference material
    • docs/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 alternatives
    • docs/design/PIPELINE_DESIGN.md — pipeline engine design doc (keep in sync with code)

Commands

  • uv sync — install all dependencies
  • uv run pytest — run tests (coverage enforced --cov-fail-under=25)
  • uv run pytest -m unit / -m integration / -m slow — run by marker
  • uv run black ace/ tests/ examples/ — format code
  • uv 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-By trailers to commit messages
  • PRs should include description, test results, and relevant docs updates

ACE Roles (quick reference)

RoleResponsibilityKey Class
AgentExecutes tasks using skillbook strategiesAgent
ReflectorAnalyzes execution resultsReflector
SkillManagerUpdates the skillbook with new strategiesSkillManager

Integration Runners

RunnerFrameworkUse Case
ACELiteLLMLiteLLM (100+ providers)Simple self-improving agent
ACELangChainLangChainWrap chains/agents with learning
ACEBrowserUsebrowser-useBrowser automation with learning
ACEClaudeCodeClaude Code CLICoding tasks with learning

NEVER USE FALLBACKS OR IMPLEMENT THINGS I NEVER ASKED FOR. IF IT'S STRAIGHFORWARD, IMPLEMENT IT STRAIGHFORWARD.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.