AGENTS.md: soften 6th rule — ccc is an option, not a mandate
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
852a65a6f6
commit
99d68a5135
1 changed files with 9 additions and 6 deletions
15
AGENTS.md
15
AGENTS.md
|
|
@ -38,12 +38,15 @@ Six rules; follow these and you won't break things:
|
||||||
5. **Prefer adding helpers to `libs/`** over duplicating logic across
|
5. **Prefer adding helpers to `libs/`** over duplicating logic across
|
||||||
bundles. Repo-wide helpers go in
|
bundles. Repo-wide helpers go in
|
||||||
[`libs/`](libs/AGENTS.md), reachable as `repo.libs.<x>`.
|
[`libs/`](libs/AGENTS.md), reachable as `repo.libs.<x>`.
|
||||||
6. **Search semantically.** This repo is indexed with
|
6. **`ccc` is available for semantic search.** This repo is indexed
|
||||||
[`ccc`](https://github.com/cocoindex-io/cocoindex-code) — try
|
with [`ccc`](https://github.com/cocoindex-io/cocoindex-code).
|
||||||
`ccc search '<concept>' --path '**'` before `grep` for
|
Reach for it on conceptual questions ("where is X used / which
|
||||||
"where is X / which bundle does Y" questions. Without
|
bundles do Y / what are the contexts of Z"), where a keyword
|
||||||
`--path '**'`, results are filtered to the current working
|
grep would miss indirect usage:
|
||||||
directory's subtree.
|
`ccc search '<concept>' --path '**'`. Pass `--path '**'` —
|
||||||
|
without it, results are filtered to the current working
|
||||||
|
directory's subtree. `grep`/`rg`/`find` remain fine for
|
||||||
|
exact-string lookups; pick whichever fits the question.
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue