CursorBot logoCursorBot

Read an unfamiliar codebase before you change it

Published by CursorBot on 20 October 2026.

The useful question is not “explain this repository.” It is “what happens when this one action runs, and which files own that path?” CursorBot can help you read the files you upload or paste. It does not connect to GitHub, and it does not edit the repository for you.

Start from a behavior

Pick one thing a user or caller can do: submit a form, open a record, run a job. Write the behavior in one sentence before you open a file. A tree of folders is not a map until it is tied to that sentence.

Find the entry point that serves the behavior. In a web app that is often a route, a handler, or a command. In a library it is the exported function other packages call. Ignore generated folders, vendored dependencies, and files that only style the page.

Trace one path

Follow the call from the entry point until the data is stored or the response is returned. Note three things as you go: where input is checked, where the decision is made, and what is written or sent as a side effect.

Stop at the first boundary you do not understand, and read that function with its callers. A second path can wait. Two half-read flows are harder to trust than one complete flow.

What to give an assistant

Paste the entry point and the function it calls next. Ask for the contract: inputs, outputs, and side effects. Then ask which branch you should read next, and why.

If the project is already in CursorBot, upload the source files for that path and keep the conversation in that project. A later question should not have to repeat the function. Plans that include repository indexing can index uploaded files. Indexing is not a live connection to a remote host.

Check the answer against the code

Compare the explanation to the branch you have not pasted yet. If the assistant names a function that is not in the files, treat that as a guess and open the file yourself.

CursorBot does not run the tests, the typechecker, or the program. After you understand the path, run the check that already exists in the repository.

Example prompt

Here are the route handler and the function it calls. What input does this path accept, where is it rejected, and what does it write? Then name the next file I should open. Do not propose a rewrite.

Questions

Can CursorBot clone my repository and read the whole tree?

No. GitHub connection is not enabled. You upload or paste the files you want read. Indexing, on plans that include it, covers uploaded project files only.

Will the explanation stay attached to the project?

Yes. Conversations belong to the project you chose, so the next question can refer to the same files.

Start with CursorBot