cd /news/ai-agents/prestashop-added-an-ai-onboarding-sy… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-16670] src=dev.to pub= topic=ai-agents verified=true sentiment=↑ positive

PrestaShop Added an AI Onboarding System Directly to Its Repo

PrestaShop added a hierarchical `.ai/` folder to its core repository, creating an AI agent onboarding system versioned directly alongside the code. The system includes 57 domain contexts, 22 component contexts, pre-computed indexes for CQRS queries, routes, entities, and hooks, plus pointer files for tools like Claude Code, Cursor, and GitHub Copilot that auto-load the context with zero developer configuration. The project requires that any AI-generated code contributions meet the same quality standards as human-written code.

read3 min publishedMay 28, 2026

The PrestaShop core README now contains an instruction you'd never seen in an open source project of this scale: "If using AI tools to write code, make sure your agent has read the .ai/CONTEXT.md

file."

TL;DRβ€” If you only have 30 seconds: PrestaShop added a.ai/

folder to its core repo with 57 domain contexts, 22 component contexts, pre-generated indexes, and reusable skills. It's an AI agent onboarding system, versioned directly alongside the code. It's an approach I should have adopted earlier on my own modules.

.ai/

Folder Actually Is The first time I saw this folder on the PrestaShop develop branch, I assumed it was an experiment. It's far more structured than that.

The .ai/

is a hierarchical context system for AI agents. The full structure:

.ai/
β”œβ”€β”€ CONTEXT.md        ← global entry point
β”œβ”€β”€ STRUCTURE.md      ← canonical template for writing new contexts
β”œβ”€β”€ GOTCHAS.md        ← common pitfalls and tricky patterns
β”œβ”€β”€ MULTISTORE.md     ← multistore-specific guidance
β”œβ”€β”€ Domain/           ← 57 domain contexts (Cart, Order, Product...)
β”œβ”€β”€ Component/        ← 22 component contexts (CQRS, Grid, Form...)
β”œβ”€β”€ skills/           ← reusable task templates
└── generated/        ← pre-computed indexes (CQRS, routes, entities, hooks)

This isn't extra documentation. It's a context-feeding system designed for agents that will actually modify the code.

The classic problem with AI agents on a large repo: they don't know what to read first. PrestaShop solves this with pointer files at the repository root.

Each tool reads its own entry file, which redirects to .ai/CONTEXT.md

:

Tool Auto-read file
Claude Code CLAUDE.md
Cursor .cursor/rules/prestashop-context.mdc
GitHub Copilot .github/copilot-instructions.md
Windsurf .windsurfrules
Gemini CLI GEMINI.md
Verdict
βœ… Zero config for the developer

The navigation flow:

Tool reads CLAUDE.md
  β†’ CLAUDE.md points to .ai/CONTEXT.md
    β†’ CONTEXT.md lists available domains and components
      β†’ Agent loads .ai/Domain/Cart/CONTEXT.md when relevant

No manual setup. You open the project, and the agent automatically reads the right context based on which files are open.

Each domain CONTEXT.md

follows a standardized template defined in .ai/STRUCTURE.md

. For the Cart domain, for example:

This is exactly what you'd put in a system prompt when configuring an agent to work on a module. The difference: here it's versioned, shared, and maintained by the core team.

The 22 component contexts cover cross-cutting infrastructure: CQRS, Grid, Form, Hooks. These are the areas where an agent mistake propagates across the entire codebase β€” hence the extra care put into these files.

The generated/

subfolder contains four pre-computed indexes:

cqrs.md

β€” all existing CQRS commands and queriesroutes.md

β€” routes indexentities.md

β€” entities indexhooks.md

β€” hooks indexWhy does this matter? An agent adding an Admin API endpoint needs to know which CQRS queries already exist. Without this index, it hallucinates class names or re-proposes things that already exist. With the pre-computed index, it can check what's already there before proposing anything.

It's the same principle as the context-memory

agent I built for my own projects β€” except here the PrestaShop team maintains these indexes as part of the project's normal development workflow.

The usage documentation is clear on this point: AI-generated code submitted as a contribution must meet the same quality standards as any other contribution.

Concretely, that means verifying the generated code:

ObjectModel

in new codeThis isn't a free pass. It's accelerated onboarding. The difference matters.

Let me be direct: PrestaShop's .ai/

folder looks like what technical documentation for agents should always have been β€” hierarchical, versionable, tool-agnostic. Does it replace a solid understanding of the codebase? No. Does it make an AI agent significantly more reliable on a project of this complexity? Absolutely.

I'll be adapting this approach on my own commercial modules. If you contribute to the PrestaShop core or build AI tooling on top of the ecosystem, read the CONTEXT.md before letting your agent touch the code.

Nicolas Dabène — PrestaShop & Laravel developer, custom solutions.

── more in #ai-agents 4 stories Β· sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/prestashop-added-an-…] indexed:0 read:3min 2026-05-28 Β· β€”