> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entire.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Search in Entire.io

> Search past agent work and indexed source code from the Search page in Entire.io.

## Open Search

Once you are [logged in to Entire](/cli-reference/login), open **Search** from the sidebar.

<Note>
  You must be logged in to use Search, including when searching public repositories.
</Note>

You can also:

* press `/` to open Search directly
* press `Command-K` on macOS or `Ctrl-K` elsewhere, enter a query, and choose the Search action

With an empty query, Search shows your recent searches.

<div style={{ position: "relative", paddingTop: "64.82593037214886%" }}>
  <iframe
    src="https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/219a2056884194efc13d81cbf62ac47e/iframe?muted=true&loop=true&autoplay=true&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2F219a2056884194efc13d81cbf62ac47e%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600&controls=false"
    loading="lazy"
    style={{
  border: "none",
  position: "absolute",
  top: 0,
  left: 0,
  height: "100%",
  width: "100%",
}}
    allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
    allowFullScreen
  />
</div>

## Choose Repositories

By default, Search includes every indexed repository you can access. Use the **Repository** filter to search one or more specific repositories.

You do not need a local clone to search a repository in Entire.io. The repository must be available to your Entire account and indexed. If it does not appear in the filter, you cannot search it from Entire.io yet.

<div style={{ position: "relative", paddingTop: "64.82593037214886%" }}>
  <iframe
    src="https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/308a350721216d59b2c0de9738887b12/iframe?muted=true&preload=true&loop=true&autoplay=true&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2F308a350721216d59b2c0de9738887b12%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600&controls=false"
    loading="lazy"
    style={{
  border: "none",
  position: "absolute",
  top: 0,
  left: 0,
  height: "100%",
  width: "100%",
}}
    allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
    allowFullScreen
  />
</div>

## Enter a Query

Enter a phrase, question, function name, error message, or other text.

The examples below come from the indexed [Entire CLI repository](https://entire.io/gh/entireio/cli). They show how Search behaves, but this repository may not appear in your **Repository** filter.

### Find Past Work

To find related past work, enter a short phrase or ask a natural-language question.

Semantic search matches the content of past work, so describe what you are looking for rather than giving an instruction. A query like `git optimization` works better than `show me all of the latest git optimizations`: words such as "show me all of the" do not appear in the work itself and dilute the match. To find recent work, use the date filter instead of words like "latest".

```text Short phrase example theme={null}
history import when enabling Entire
```

```text Natural-language question example theme={null}
how did we decide to make history import explicit when enabling Entire?
```

<div style={{ position: "relative", paddingTop: "64.74820143884892%" }}>
  <iframe
    src="https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/eaad14748da5e290e50ab49a795163cb/iframe?muted=true&preload=true&loop=true&autoplay=true&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2Feaad14748da5e290e50ab49a795163cb%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600&controls=false"
    loading="lazy"
    style={{
  border: "none",
  position: "absolute",
  top: 0,
  left: 0,
  height: "100%",
  width: "100%",
}}
    allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
    allowFullScreen
  />
</div>

### Find Text in Source Code

Use the **Code** tab when you know text that appears in a source file, such as a function name, error message, or configuration option:

```text Literal text example theme={null}
import-history
```

<div style={{ position: "relative", paddingTop: "100%" }}>
  <iframe
    src="https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/77aca6eccb54fcce3ffc4eb03963cf3d/iframe?muted=true&preload=true&loop=true&autoplay=true&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2F77aca6eccb54fcce3ffc4eb03963cf3d%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600&controls=false"
    loading="lazy"
    style={{
  border: "none",
  position: "absolute",
  top: 0,
  left: 0,
  height: "100%",
  width: "100%",
}}
    allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
    allowFullScreen
  />
</div>

## Review Results

After you enter a query, choose a tab to review one kind of result:

* **Commits** show related Git commits.
* **Sessions** show related agent conversations.
* **Code** shows lines containing literal matches from indexed source files.

<div style={{ position: "relative", paddingTop: "64.82593037214886%" }}>
  <iframe
    src="https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/fba896fe03a80025c14ae11c14d6ec6a/iframe?muted=true&preload=true&loop=true&autoplay=true&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2Ffba896fe03a80025c14ae11c14d6ec6a%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600&controls=false"
    loading="lazy"
    style={{
  border: "none",
  position: "absolute",
  top: 0,
  left: 0,
  height: "100%",
  width: "100%",
}}
    allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
    allowFullScreen
  />
</div>

## Filter Results

Filter past-work results by repository, date, or branch, and sort them by relevance, date, author, or title. Code results can be filtered by repository.

Select a commit or session to open it. In **Code**, expand a file to view its matching lines.

<div style={{ position: "relative", paddingTop: "64.82593037214886%" }}>
  <iframe
    src="https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/ee512cd4ff42118cdb73050b41916dba/iframe?poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2Fee512cd4ff42118cdb73050b41916dba%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600"
    loading="lazy"
    style={{
  border: "none",
  position: "absolute",
  top: 0,
  left: 0,
  height: "100%",
  width: "100%",
}}
    allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
    allowFullScreen
  />
</div>

## Continue with

<CardGroup cols={2}>
  <Card title="Search in the CLI" icon="terminal" href="/guides/search/search-in-cli">
    Run both search modes from your terminal.
  </Card>

  <Card title="Search Past Work and Code" icon="route" href="/learn/search-past-agent-work">
    Practice both kinds of search with one guided tutorial.
  </Card>
</CardGroup>
