You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 53d9db7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,14 @@
2
2
3
3
## Project Structure & Module Organization
4
4
5
-
This is a Python 3.11+ package using a `src/` layout. Core code lives in `src/codex_self_evolution/`: `cli.py` and `csep.py` expose command-line entry points, `hooks/` handles Codex lifecycle hooks, `review/`handles stop-review providers, `compiler/`promotes suggestions into memory/recall/skills, and `managed_skills/`publishes generated skills. Tests live in `tests/`, with fixtures under `tests/fixtures/`. Documentation and implementation notes live in `docs/` and `notes/`. README images are kept under `docs/assets/` as SVG sources plus committed PNG renderings. Plugin manifests are present in both `src/codex_self_evolution/plugin_bundle/.codex-plugin/` and `plugins/codex-self-evolution/.codex-plugin/`; keep them aligned when changing hook metadata.
5
+
This is a Python 3.11+ package using a `src/` layout. Core code lives in `src/codex_self_evolution/`: `cli.py` and `csep.py` expose command-line entry points, `hooks/` handles Codex lifecycle hooks, `session_recall/`archives and searches historical sessions, `session_reflection/`handles background memory/skill review, and `plugin_bundle/`packages the Codex plugin. Generated plugin skills are mirrored under both `skills/` and `plugins/codex-self-evolution/skills/`. Tests live in `tests/`. Documentation and implementation notes live in `docs/`. README images are kept under `docs/assets/`. Plugin manifests are present in both `src/codex_self_evolution/plugin_bundle/.codex-plugin/` and `plugins/codex-self-evolution/.codex-plugin/`; keep them aligned when changing hook metadata.
6
6
7
7
## Build, Test, and Development Commands
8
8
9
9
-`python -m pip install -e .` installs the package locally with `codex-self-evolution` and `csep` console scripts.
10
10
-`python -m pip install -e '.[dev]'` adds contributor tooling such as `pytest`, `build`, and `twine`.
11
11
-`python -m pytest -q` runs the full test suite; CI runs this on Python 3.11 and 3.12.
12
12
-`make test PYTHON=python3.11` runs the same pytest command through the Makefile.
13
-
-`make preflight PYTHON=python3.11` runs `compile-preflight` against the local `data/` state directory.
14
13
-`python -m build` builds source and wheel distributions.
15
14
-`scripts/install.sh` installs the local CLI with `uv` and refreshes the Codex plugin cache.
16
15
@@ -20,7 +19,7 @@ Use 4-space indentation, type hints where they clarify interfaces, and small std
20
19
21
20
## Testing Guidelines
22
21
23
-
Use pytest. Name tests `test_*.py` and test functions `test_*`. Add focused coverage beside the behavior being changed, especially for storage state transitions, hook payload handling, CLI flags, and compiler promotion logic. Provider smoke tests require real credentials and are not part of public CI.
22
+
Use pytest. Name tests `test_*.py` and test functions `test_*`. Add focused coverage beside the behavior being changed, especially for storage state transitions, hook payload handling, CLI flags, session recall behavior, session reflection validation, and diagnostics/status output. Provider smoke tests require real credentials and are not part of public CI.
Copy file name to clipboardExpand all lines: README_en.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ After a few days with Codex, the real drag is usually not the big task. It is th
39
39
40
40
| Capability | When it writes | How the next session uses it |
41
41
| --- | --- | --- |
42
-
| Stable Memory | After the trigger policy fires, session reflection writes `USER.md` / `MEMORY.md`|`SessionStart` injects it into Codex context |
42
+
| Stable Memory | After the trigger policy fires, session reflection writes `MEMORY.md` / `memory/refs/`|`SessionStart` injects `MEMORY.md` into Codex context |
43
43
| Session Recall | The `Stop` hook archives transcripts into local SQLite/FTS, and the bundled `csep-session-recall` skill teaches Codex how to search | `csep recall "needle1|needle2"` searches historical evidence like `rg`, scoped to the current repo unless `--global` is explicit |
44
44
| Reflection Skills | The reflection worker writes `~/.codex/skills/csep-reflect-*`| Codex loads them through the native skills loader |
45
45
| Runtime Status | Hooks, config, logs, reflection jobs, and recall DB are read-only inspectable |`csep status` shows the current runtime state |
@@ -162,11 +162,12 @@ Default runtime root:
162
162
└── projects/
163
163
└── -Users-you-code-repo/
164
164
└── memory/
165
-
├── USER.md
166
-
└── MEMORY.md
165
+
├── MEMORY.md
166
+
└── refs/
167
+
└── ...
167
168
```
168
169
169
-
Each repo gets a bucket based on its absolute path. Application repos stay clean; runtime state stays in the user's home directory.
170
+
Each repo gets a bucket based on its absolute path. `MEMORY.md` is the only hot context injected by default; `refs/` stores long-form material that agents can open on demand. A legacy `USER.md`, if present, is kept on disk but ignored by the current runtime.
170
171
171
172
## Safety Boundaries
172
173
@@ -175,6 +176,7 @@ Each repo gets a bucket based on its absolute path. Application repos stay clean
175
176
- Provider secrets do not go into the repo. Put them in `~/.codex-self-evolution/.env.provider`.
176
177
- Runtime state does not get written into application repos.
177
178
- Skills outside the `csep-reflect-*` namespace are not accepted as generated artifacts.
179
+
- Memory writes are accepted only for the current repo bucket's `MEMORY.md` and `memory/refs/**/*.md`.
178
180
- The child thread's natural-language claim is not trusted; the parent process validates `receipt.json`.
179
181
- Foreground hooks do not run long model work, so Codex can exit normally.
0 commit comments