diff --git a/AGENTS.md b/AGENTS.md
index 518940396b..4da6c2df00 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -102,7 +102,7 @@ measured startup cost or import hazard it names; no behaviour; `tools/connectors
per variant and a name → variant table (`tools/environments/`, its table still in
`terminal_tool_backends.py`). Tool folders register from `tool.py`; tests mirror folders.
-- **Find code by topic:** `grep -rn "def name"
// /_*.py`, not the facade.
+- **Find code by topic:** `search_files` for `def name` in `/` and `_*.py`, not the facade.
- **Imports go at module top:** topic modules import one another, never the facade; a cycle means
a shared name belongs in a lower module. Patch where the name is looked up.
- **Size and complexity are ratcheted per unit:** new functions CC ≤ 20, ≤ 300 lines, nesting ≤ 6;
@@ -113,7 +113,7 @@ per variant and a name → variant table (`tools/environments/`, its table still
dispatch by table, not `if name ==` ladders; collaborators are objects, not mixins; no module
constant kept only for tests to patch.
- **No re-export shims for internal moves;** internal paths are not API. Moving a symbol means
- fixing its docs in the same PR (grep `website/docs`, `skills/`, every `AGENTS.md`).
+ fixing its docs in the same PR (search `website/docs`, `skills/`, every `AGENTS.md`).
## Rules that apply everywhere
diff --git a/agent/AGENTS.md b/agent/AGENTS.md
index d5ad7f4acc..4d75d2a653 100644
--- a/agent/AGENTS.md
+++ b/agent/AGENTS.md
@@ -43,7 +43,7 @@ Each phase of an iteration is its own sibling, so a change to (say) overflow han
call), `turn_context_compaction`, `turn_recovery`, `turn_recovery_autorecover`
(post-exhaustion wait-and-retry ladder), `turn_retry_state`,
`turn_stop_gates`, `turn_liveness`, `turn_usage`, `turn_final_response`, `turn_finalizer`,
-`turn_summary`. Find the phase with `grep -rn "def X" agent/turn_*.py`.
+`turn_summary`. Find the phase with `search_files` for `def X`, `file_glob="turn_*.py"`, in `agent/`.
Messages use OpenAI format `{"role": "system|user|assistant|tool", ...}`; reasoning content is stored
in `assistant_msg["reasoning"]`.
diff --git a/hermes_cli/AGENTS.md b/hermes_cli/AGENTS.md
index 79978db612..22c630303b 100644
--- a/hermes_cli/AGENTS.md
+++ b/hermes_cli/AGENTS.md
@@ -106,7 +106,7 @@ set/get/unset ` route any bare name registered in `OPTIONAL_ENV_VARS` / `_
- **Every `DEFAULT_CONFIG` key has a runtime reader, and every reader a registry entry.** Both drift
modes are silent: a registered key nothing reads (a knob that does nothing) and a reader of a key
never registered (never shown, never migrated; new roots also go in `_KNOWN_ROOT_KEYS`). For a new
- key: `rg -n '""' hermes_cli/config_defaults.py` AND `rg -n '' --glob '!tests' .` both hit,
+ key: `search_files` for `""` in `hermes_cli/config_defaults.py` AND for `` outside `tests/` both hit,
and one invariant test sets it in a temp `config.yaml` and asserts the behaviour through the loader
the consuming surface uses. Under multiplex the process env never overrides a profile's YAML.
- **Working directory:** CLI uses `os.getcwd()`; messaging uses `terminal.cwd`, bridged to
diff --git a/tui_gateway/AGENTS.md b/tui_gateway/AGENTS.md
index 694844ab49..ed2510ec41 100644
--- a/tui_gateway/AGENTS.md
+++ b/tui_gateway/AGENTS.md
@@ -87,9 +87,9 @@ enter `_session_profile_runtime_scope(session)` around `on_session_end`, the mem
`agent.close()` (their callers are unscoped reapers, Timers, atexit and pool threads); background
threads start via `agent.memory_provider.spawn_context_thread`, never bare `threading.Thread`;
children act for the served profile through `tools/environments/local.py::served_profile_child_env`
-(`hermes -p X` workers, `key_cmd` helpers, browser drivers), never `dict(os.environ)`. Grep for
-unscoped handlers before adding one: `rg -n "^(async )?def " tui_gateway/methods_*.py | rg -v
-_profile_scoped`. Probe with two on-disk homes and a `.env` name present only in the secondary:
+(`hermes -p X` workers, `key_cmd` helpers, browser drivers), never `dict(os.environ)`. Find
+unscoped handlers before adding one: `search_files` for `^(async )?def ` with
+`file_glob="methods_*.py"` in `tui_gateway/`, `context=1`, and check each for `_profile_scoped`. Probe with two on-disk homes and a `.env` name present only in the secondary:
call the method for that session and assert the secondary's value resolves and the launch
profile's does not, and that `os.environ` is unchanged afterwards.