> ## 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 from Your Agent

> Use the search Skill so your agent can find past work or text in indexed source files.

Use the `search` Skill when you want your agent to find past work or locate text in indexed source files.

Describe what you are looking for, and the Skill chooses the appropriate search, reviews the results, and summarizes the most relevant matches.

## Before You Start

Make sure you have [Skills installed](https://github.com/entireio/skills#install) and are [logged in to Entire](/cli-reference/login) in the environment where your agent runs.

## See Search in action

<div style={{ position: 'relative', paddingTop: '60.9375%', width: '100%', overflow: 'hidden', borderRadius: '0.5rem' }}>
  <iframe src="https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/4ff2b738a2634b5fb1a7e8c92d15bb60/iframe?loop=true&autoplay=true&poster=https%3A%2F%2Fcustomer-0x5hsk8lh27fm00g.cloudflarestream.com%2F4ff2b738a2634b5fb1a7e8c92d15bb60%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600" title="Search Skill demo" frameBorder="0" allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture" allowFullScreen style={{ position: 'absolute', inset: 0, width: '100%', height: '100%', border: 0 }} />
</div>

## Ask Your Agent

Run your agent from the repository you want to search.

<Note>
  The `search` Skill can also search across repositories you can access in Entire, even if they are not cloned to your computer.
</Note>

The examples below assume your agent is running from a local clone of the [Entire CLI repository](https://github.com/entireio/cli).

Unlike a query you type into Search directly, requests to your agent can be phrased as instructions — the Skill translates them into effective search queries for you.

### Find Past Work

Ask about a previous decision, feature, bug, or other work you want the agent to find:

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

### Find Text in Source Code

Ask where a function, error message, configuration option, or other text appears in the source:

```text theme={null}
find where the --import-history option is implemented
```

## Review Results

The Skill summarizes the most relevant matches. For past work, it can inspect a checkpoint transcript when more context is needed. For source code, it returns file paths and matching snippets. Ask a follow-up question to explore a particular result.

<Tip>
  In clients that expose installed Skills as slash commands, you can also invoke the Skill directly with `/search`, followed by what you want to find.
</Tip>

## Continue with

<CardGroup cols={2}>
  <Card title="Search in the CLI" icon="terminal" href="/guides/search/search-in-cli">
    Run history or code search yourself.
  </Card>

  <Card title="Make Your Agent Use Entire" icon="wand-sparkles" href="/learn/skills">
    Install Skills and learn the main agent workflows.
  </Card>
</CardGroup>
