Skip to main content

What Are Agents?

Agents are configurable AI jobs that review changes in a Trail and evaluate them using customizable instructions. They run in isolated cloud sandboxes, or on your own machine, and can produce summaries, identify code review findings, or report evaluation scores. Agents can evaluate different aspects of a change, such as Confidence, Risk, Security, and Drift. Each Agent can report a score and flag issues that need attention as Findings.
Project Agents are separate from file-based repository Runners configured in .entire/runners/. entire runner manages those files, while entire agent manages local coding-agent integrations. To manage project Agents from the CLI, use entire api. To run self-hosted Agents on your own machine, use entire project agent setup and serve.
Gates define the requirements that determine whether a Trail can merge. Once configured, your Agents will look something like this:

Code review and Security review flag a change, then pass once the fix is pushed.

How Agents Work

Each Agent’s trigger settings determine when it evaluates changes in its selected repositories. An enabled push trigger runs when its readiness condition and branch or path filters match an open change. The repository’s Auto build on push setting for Runners does not control project Agents. Each Agent uses its instructions and selected configuration to evaluate the changes. Entire displays the results on the Trail. Reviewers can use the scores to focus their review, investigate Findings, and push fixes for another evaluation. The available preset Agents include:
  • Code review: Reviews every push and flags what needs to be fixed.
  • Security review: Checks every change for anything that could lead to a security breach in your codebase.
  • Slop: Catches sloppy patterns and drift before you merge them on your main codebase.
Entire agent presets for code review, security review, and detecting sloppy patterns and drift

Preset agents available on the project's Agents page.

An Agent’s signal configuration determines how its result is represented and whether higher or lower values are better. You can read its rationale alongside the result and the underlying code. Here’s an example of how it looks:

An agent's verdict on a change, with its reasoning and findings.

Your coding agent can read the same verdicts from the Entire CLI.

Who Can Manage Agents

Who can create and edit Agents depends on where your project lives:
  • GitHub organization projects: Only GitHub organization owners can create and edit Agents. Other organization members, including those with write access to the repositories, can’t.
  • Entire projects: Anyone with write access to the project can create and edit Agents.
To let people manage Agents without making them GitHub organization owners, you can move the repositories into an Entire project. This makes Entire the repositories’ canonical Git source: Entire stops syncing with GitHub, and access comes from the Entire project instead of GitHub. See Convert a GitHub Mirror to a Repository on Entire for the requirements and steps.

Set Up Your First Agent

To create your first Agent:
  1. Navigate to your project on Entire.com.
  2. Open your project and go to Agents then click on Manage Agents.
  1. Choose an Agent from the list of presets and click Enable to start using it.

Creating a Custom Agent

If you want to create an Agent with your own configuration, follow these steps: Click New agent. Under Agent, give it a name and description. Select the harness, model, reasoning effort, and timeout. Then write the Instructions describing what the Agent should review and evaluate. For example, you can create a Migration Risk Agent to evaluate database migration changes. Under Agent, enter the following details:
  • Name: Migration Risk
  • Description: Evaluates database migration changes for potential deployment and rollback risks.
  • Harness, model, reasoning effort, and timeout: Select the configuration that meets your evaluation requirements.
Instructions:
Configure the signal the Agent reports by selecting its value type and polarity. The value type determines how the score is represented, while the polarity determines whether higher or lower values are better. Under Trigger, choose when the Agent runs. You can select Trail branch pushed, Run manually, or Recurring schedule. Under Repositories, select at least one repository where the Agent should run.
Leave the Active toggle enabled and click Create agent. After it is successfully created, you should see it under the Agents tab as in the image below.
Agents page listing an active custom agent with its repositories and selected model

A custom agent listed on the project’s Agents page.

Once configured, the Agent can evaluate changes, report a score, and flag issues as Findings.

Understand the Agent Configuration

Run Agents Only for Relevant Paths

In a monorepo, use path filters to run specialized Agents only when a change touches relevant files. For example, set frontend/** for a frontend review Agent so changes confined to other directories do not trigger it.
  1. Open the project’s Agents page and select the Agent you want to configure.
  2. Under When to run, click on Add filters.
  3. Then on Only when these paths change, enter a repository-relative pattern, such as frontend/**, and press Enter to add it.
  4. Save the Agent configuration.
An Agent’s push trigger matches when at least one changed path matches any of its patterns. Use * to match within a folder and ** to match across folders. For example, frontend/** matches files anywhere under frontend/, while **/*.go matches Go files across the repository. Path filters check files changed across the whole change, from its merge base to its head, rather than only the latest push. An empty path filter matches every change. The Agent’s repository selection, readiness condition, and branch filters still apply.
Manual runs ignore branch and path filters. Path filters control when an Agent runs; use its instructions to define what it should review.

Manage Agents from the CLI

Use entire api directly or ask your coding agent to run it to manage project Agents and retrieve their results. Your coding agent needs terminal access to the CLI and your Entire login.
These API endpoints are internal and may change without notice. Retrieve the current routes and fields with entire api --to cell /api/v1/openapi.json.

Prerequisites

Install the Entire CLI and sign in with entire login if you have not already. The examples below also use jq and uuidgen. Reading Agents requires access to the project. Creating or editing Agents requires permission to manage project agents and write access to the selected repositories. Custom Agents also require a payment method on the billing account.
Set your project path. Use et/<project> for an Entire project or gh/<owner> for a GitHub-backed project:
Replace the example project and repository names throughout with your own.

Look Up Repository and Environment IDs

Find the ID of a repository the Agent should evaluate. entire repo list --project accepts the project name or ULID:
List the project’s environments and choose the environment in which the Agent will run. Projects get a Repository sandbox environment once Agents are enabled:

List Presets, Models, and Existing Agents

Create an Agent

Save the following preset configuration as agent.json, replacing the repository and environment IDs with the values you found above:
"when": "ready" runs the Agent on pushes once a change is ready for review. In repositories without an approvals gate, open changes are treated as ready.For a custom Agent, omit preset and add name, harness (claude, codex or pi), model, instructions, timeout_ms, and signal. For example, a signal that reports whether issues were found uses:
Use this object as the value of signal in the custom Agent’s configuration. Select a model returned by the models endpoint for your chosen harness.Generate an idempotency key once for this creation request:
Create the Agent:
The Idempotency-Key header is required. Omitting it returns 422 validation failed. To retry the same creation request, rerun only the entire api command with the same key and unchanged agent.json. Do not regenerate the key for a retry.

Update or Archive an Agent

Both operations require the Agent’s current etag. Set the Agent ID, then retrieve it:
Update agent.json with the complete desired configuration, then replace the Agent’s configuration:
PUT performs a full replacement. Include all configuration you want to retain. Retrieve the current etag again before another update or before archiving:

Retrieve Runs, Verdicts, and Findings

List recent Agent runs in the project:
Set the repository name and the repository’s Change number (not the project Trail number) for the results you want to inspect:
Read the Trail’s Agent verdicts. For a boolean signal with lower_is_better polarity, true means issues were found (Fail), and false means Pass. This example prints other or missing signal values as See details:
Retrieve the findings behind those verdicts:

Run Agents on Your Own Machine

A self-hosted Agent runs on a machine you control instead of Entire’s cloud sandbox. You need billing set up, permission to manage the Entire project for setup, and git, git-remote-entire and a signed-in Claude Code on that machine.
  1. Create a custom Agent with "runs_on": "self_hosted" and "harness": "claude", and leave out environment_id. The first one also creates the project’s self-hosted environment.
  2. From a checkout of a repository the Agent reviews, create a service account that can run the project’s self-hosted Agents (reference):
  3. Create its secret, using the service account ID that setup printed. The secret is shown only once:
  4. Start the worker. Add --once to handle a single job and exit:
  5. Trigger a run: push to a change that is ready for review, or start a run by hand.
The worker picks up the job, checks out the change’s commit, and runs Claude Code read-only. Findings show up on the Trail as usual.

Agent Insights

Agent Insights helps you understand how coding agents use tokens across your Trails and repositories. You can track token consumption by activity, compare usage across models, and identify changes that required more agent effort than expected.

How to Enable Agent Insights

To start tracking agent token usage, go to the Plugins tab in your project and find the Agent Insights extension. Click Install, select the repositories on Entire where you want to enable Agent Insights, and click Install again.

View Token Usage in a Trail

Once it is enabled, open a Trail and navigate to Sessions to see a breakdown of token usage across agent activities, such as understanding code, building, checking, reworking, reviewing, and coordinating. Hover over the visualization to see the percentage of tokens spent on each activity. This helps you understand how the agent worked on a change and whether it spent more tokens implementing changes or making repeated fixes.

Token usage by activity in a Trail's Sessions section.

View Agent Insights in Repository Analytics

Open your repository’s existing Analytics page and scroll to the Agent Insights section. The Analytics page is available independently of the plugin. Enabling Agent Insights adds more detailed token usage metrics across merged Trails through three visualizations:
  • Token Volume by Model: Track daily token consumption grouped by the models used.
  • Tokens vs. Lines Changed: Compare token usage against the number of lines modified in each Trail. This helps identify which Trails consume the most tokens.
  • Tokens by Activity: Compare token usage across activities between the current and previous week to understand how agent behavior changes over time.
You can use these metrics to identify unusual token consumption, understand which activities require the most effort, and compare agent usage across Trails.

Agent Insights on the repository Analytics page.