Skip to main content
Use this tutorial when you find surprising code and need to know whether it is intentional, who changed it, and what context should be preserved before you refactor. In this tutorial, you will use entire blame, entire why, and entire investigate to answer:
Why does /leaderboard open the leaderboard directly instead of going through the game menu?

Prerequisites

Before you start, make sure you have:

Set Up the Repo

Planetfall is a sample game repo with a rich history of checkpoints. Clone it to get started:

Scenario

You are new to the codebase, and you have been asked to clean up the leaderboard experience. While browsing the app, you notice there are two ways to open the leaderboard: players can click Leaderboard from the game menu, but /leaderboard also opens the leaderboard directly. Before changing either path, you need to know whether the direct route is intentional or leftover routing code. The code below handles the direct /leaderboard route:
src/main.js:278-281

Trace the Attribution

Before deciding whether the direct route is duplicate routing code, start with the code history.
To find out why /leaderboard opens the leaderboard directly, run entire blame for line 279, where the app switches into the standalone leaderboard route:
The output shows that line 279 last changed in a mixed-attribution commit labeled [MX], meaning the commit included both agent-attributed and human-attributed changes:
The direct route points to a checkpointed commit. Next, find out why the change was made.

Find the Reason

Run entire why on line 279:
The output gives you a brief overview of the line’s history, including the checkpoint, session, commit, and original prompt:
The output also suggests a follow-up command. Run entire checkpoint explain with --generate to get the checkpoint’s intent and outcome:
You should see an explanation like this:

Investigate the Decision

You learned why the route was added, but you still need to understand how the current code supports that decision. Use entire investigate to inspect the route, the menu path, and the leaderboard panel together. Create a short seed doc with the evidence you found:
Run the investigation:
On first run, Entire may ask which agents should participate. Pick the agents configured for your Entire setup.
entire investigate is experimental. It appears under labs while the workflow is still being refined.

Read the Findings

Browse saved investigations:
Then print a run:
In this example, entire investigate found that the direct route was intentional:
You started with a surprising line of code, traced who changed it, found the checkpoint context, and used entire investigate to confirm what the route supports. Now you know /leaderboard is intentional and what behavior to preserve before refactoring it.

Troubleshooting

Update Entire by following the updating guide. Make sure you are on Entire 0.7.7 or higher.
Make sure you cloned the sample repo with its checkpoint metadata branch. Run git branch -r | grep 'entire/checkpoints/v1' to confirm the remote checkpoint branch is present.
That can be a valid result. Some lines come from commits that were not linked to Entire session context. Use Git history, tests, and entire investigate to continue from there.
That is expected on first run. Pick the agents configured for your Entire setup. You can re-open the picker later with entire investigate --edit.

Continue with

Search Past Agent Work

Search checkpoints and sessions by meaning, phrase, or prior context.

checkpoint Command Reference

List, explain, search, and inspect checkpoints from the CLI.