# `mix agent_db.search`
[🔗](https://github.com/manhvu/agent_db/blob/v0.1.0/lib/mix/tasks/agent_db.search.ex#L1)

Searches the context tree.

    mix agent_db.search TERM [--mode keyword|vector|hybrid] [--scope URI] [--top-k N] [--json]

Options:

  * `--mode` - search mode (default `keyword`).
  * `--scope` - a `viking://` URI to limit the search.
  * `--top-k` - maximum results (default `10`).
  * `--json` - print results as JSON instead of one URI per line.
  * `--no-compile` - do not compile the project before running.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
