Getting CSBP running in a Codex setup takes only a few minutes. You will place three files in a recommended directory, add one bootstrap line to yourDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/XxYouDeaDPunKxX/CSBP-Codex-Shared-Best-Practice/llms.txt
Use this file to discover all available pages before exploring further.
AGENTS.md, and then verify that Codex acknowledges the layer at session start. Once CSBP is active, Codex reads the entry point first every session, then loads the runtime practice file — and only opens the compiler when you explicitly ask for practice formation work.
Create the directory layout
Place all three CSBP files inside your Copy the files from the CSBP repository exactly as released. Do not modify
.codex/memories/ directory. This keeps them co-located and clearly separate from project source files.CSBP-entry-point.txt or shared-best-practice-compiler.txt — they are fixed system-definition layers.Wire the entry point into AGENTS.md
Open your This ensures a fresh Codex session reads the entry point first, activates CSBP for that session, and then loads the runtime practice file. Do not rely on filename inference alone — the entry point must be read explicitly.
.codex/AGENTS.md and add a bootstrap instruction that tells Codex to read CSBP-entry-point.txt at the start of every session, before any other CSBP file is consulted.The exact phrasing depends on your host environment contract, but the minimal bootstrap line looks like this:Initialise shared-best-practice.txt
On first install, As practices are formed and approved, promoted blocks are appended below the header using the fixed block shape.
shared-best-practice.txt should contain only the file header that ships with the CSBP repository — no practice blocks yet. That is the correct empty state.When the runtime file has no active practices, Codex continues work normally without CSBP runtime guidance. There is nothing to configure. The compiler is not loaded during normal runtime; it is only opened when you ask for practice formation work.The shipped shared-best-practice.txt begins with a fixed header. On first install, with no practices yet promoted, the file contains only this header:Understand what an active practice block looks like
Once you have gone through at least one formation cycle, promoted practices will appear in Each field has a specific runtime function. The
shared-best-practice.txt in this shape:status field is checked first — deprecated blocks are skipped entirely. Then applies_when is evaluated against the current work context. If it matches, do is applied as the default action and avoid is used as the competing-pattern guard.The
id (in PNNN format) is assigned only at promotion, not during the proposal stage. Never assign a final runtime id to a practice that has not yet been approved by the operator.Verify CSBP is active
At the start of your next Codex session, ask Codex to confirm CSBP is loaded:A correctly configured session will produce a response like one of the following:If If If Codex does not acknowledge CSBP, check that the bootstrap line in
shared-best-practice.txt has active practices:shared-best-practice.txt is empty or has no active practices:AGENTS.md correctly references the path to CSBP-entry-point.txt and that the file exists at that path.Session load order
It helps to understand exactly what Codex loads and when:| Path | Files loaded | When |
|---|---|---|
| Runtime path (every session) | CSBP-entry-point.txt → shared-best-practice.txt | Session start |
| Formation path (on request only) | CSBP-entry-point.txt → shared-best-practice.txt → shared-best-practice-compiler.txt | When you ask for practice formation or maintenance work |
What not to do
- Do not modify
CSBP-entry-point.txtorshared-best-practice-compiler.txt— they are fixed system-definition layers. - Do not add practices to
shared-best-practice.txtwithout going through the compiler protocol and receiving operator approval. - Do not run CSBP alongside an automatic memory system that is doing the same job — two persistence layers create unclear authority.
The Three-File System
Understand the purpose of each file and why their jobs must stay separate.
Practice Formation
Learn how to raise a candidate practice and guide it through the compiler protocol.
Authority Model
See exactly how CSBP fits into the Codex authority stack.
Runtime Behavior
Understand how active practices are read, matched, and applied during work.