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
Copy file name to clipboardExpand all lines: SELF_IMPROVEMENT.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ The loop is not just "suggest ideas". It is:
37
37
- Create a work branch first. Use a descriptive branch name.
38
38
- Keep **one task per commit**.
39
39
- Before every commit, explicitly work through `.codex/workflows/precommit.md`.
40
-
- Before every commit, review README `# Code Search Rules`and `# コードベース検索ルール`; strengthen them if AI behavior should change.
40
+
- Before every commit, review the authoritative [Search and Indexing Rules](AGENT_GUIDE.md#search-and-indexing-rules); strengthen `AGENT_GUIDE.md` or the relevant workflow if AI search behavior should change.
41
41
- After every commit, rebuild `cdidx` from the latest local source, run `dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json`, and refresh `.cdidx/codeindex.db` with that freshly built binary only when the check does not report `index_matches_workspace: true`.
42
42
- Prefer the lightest truthful refresh mode: use `--files` only for known in-place edits or new files, use `--commits HEAD` after a normal commit because it tracks renames/deletes from git history, use `--changed-between <old-ref> <new-ref>` after branch switches when both refs are known, and reserve `cdidx . --json` for full-workspace scans after history-moving operations or cases where repo-wide stale files must be purged. `cdidx . --json` is not a forced rebuild and may report `mode:"incremental"` while skipping unchanged files; if `status --check --json` still reports stale after that scan, escalate to `dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll index . --rebuild --yes --json`.
43
43
- Prefer the **locally built latest binary** (`dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll`) over an older globally installed `cdidx` whenever the repository code has changed. **Never fall back to a global `cdidx`** — the global version may have an older DB schema, missing query features, or stale extraction logic that silently produces wrong results. This is enforced at the Claude Code harness level via the repo-tracked `.claude/settings.json`, which denies the full set of shell code-search and file-discovery commands: `rg`, `grep`, `egrep`, `fgrep`, `zgrep`, `rgrep`, `ripgrep`, `ag`, `ack`, `ack-grep`, `git grep`, `find`, `locate`, `mlocate`, `mdfind`, and `cdidx`. Use the built-in Grep / Glob tools or the locally built binary instead.
@@ -210,9 +210,9 @@ Before committing, explicitly review:
210
210
2. TESTING_GUIDE.md
211
211
3. CHANGELOG.md — New entries normally go under bilingual fragments in `changelog.d/unreleased/`; only release-preparation PRs edit `CHANGELOG.md` directly. See `AGENT_GUIDE.md` and `.codex/workflows/precommit.md` for the full rules.
212
212
4. README.md
213
-
5.README `# Code Search Rules` / `# コードベース検索ルール`
213
+
5.`AGENT_GUIDE.md`, especially [Search and Indexing Rules](AGENT_GUIDE.md#search-and-indexing-rules)
214
214
6. DEVELOPER_GUIDE.md
215
-
7.`AGENT_GUIDE.md` and `.codex/workflows/precommit.md`
215
+
7.`.codex/workflows/precommit.md`
216
216
8. This file (`SELF_IMPROVEMENT.md`)
217
217
9. PR description, if a PR already exists
218
218
@@ -367,7 +367,7 @@ Read `SELF_IMPROVEMENT.md`, inspect the current repo with cdidx itself, identify
-**Self-improvement checks now reference the authoritative search policy (#4672)** — replaced references to removed README headings with the current `AGENT_GUIDE.md` Search and Indexing Rules and precommit workflow.
0 commit comments