# Search

`search(query)` does a case-insensitive text search across all of the user's files and returns the matching lines.

- Search before asking the user a question they may already have answered.
- Use short, literal terms: `vegetarian`, `timezone`, `Friday`. It matches text, not meaning, so try synonyms if nothing comes back.
- Search for your platform name to find notes you or the user left for you.
- Use `read_file` on a matching file when you need the surrounding context.

Full docs index: https://hugy.ai/agents/index.md
