Code analysis of a case
An agent of Sequential reads the code of one of your GitHub repositories for a case. It gives a place in the code and one line about the cause. Code analysis is only for organisations that Sequential invites.
On this page
Code analysis is only for organisations that Sequential invites. When it is not on for your organisation, Settings shows no Code access part, and a case has no Analyse with the code button.
You must first connect the repository to the project. Code access then uses a second GitHub app, "Sequential Code Read". The app can read code. It cannot change code.
Turn on code access
-
Go to Settings › Project › Code access.
Result: The part shows each connected repository with the switch "Sequential may read this repository for a case", and what code access does. From 21 November 2026, with no connected repository, it shows two steps: "Do these two steps before you turn on code access:" "1. Connect the repository in the GitHub block above.", with the link Go to the GitHub block, and "2. Install the app "Sequential Code Read" (sequential-code-read) on the same repository on GitHub. For a repository of an organisation, an owner of the organisation does this.", with the button Install Sequential Code Read on GitHub. Under them: "The app can read code. It cannot change code."
-
If the repository does not have the app yet, click Install Sequential Code Read on GitHub above its switch. The install page opens in a new tab: github.com/apps/sequential-code-read. Install the app on the repository, then come back to this page.
Result: Until then the switch is closed, and the part says "Install "Sequential Code Read" (sequential-code-read) on this repository first. Then come back to this page." When you come back, it says, for example, ""Sequential Code Read" (sequential-code-read) is installed on acme/shop. Now turn on "Sequential may read this repository for a case"." If Sequential does not see the app yet: "Sequential does not see "Sequential Code Read" (sequential-code-read) on acme/shop yet. On GitHub, check that the app is installed on this repository. If an owner of the organisation must approve it, wait for the approval. Then come back to this page."
-
Turn on Sequential may read this repository for a case.
Result: A dialog asks "Analyse open cases automatically". Answer Yes or No.
-
Click Continue on GitHub.
Result: "To turn this on, GitHub asks you to confirm that you are an admin of this repository now."
-
Confirm on GitHub.
Result: Back in Sequential: "GitHub confirmed that you are an admin of the repository. The switch is on."
Only an owner or an admin of the Sequential organisation can turn code access on or off. You must also be an admin of the repository on GitHub. Sequential reads code only in a private repository. It does not read an archived repository.
Before the switch, the part says what code access does, in these words:
- "For one case, an agent of Sequential reads files of this repository at the newest commit of the default branch. Each file that it opens goes to an AI provider as text."
- "An analysis only reads. It does not change the repository, and Sequential does not run your code or your tests."
- "An analysis takes up to 5 minutes and reads up to 60 files. A project can have 10 analyses a day, automatic ones included."
Analyse a case
On the case page, an owner or an admin clicks Analyse with the code. From 23 November 2026, the button shows at the stages New and Handed off, and at Fix linked while Sequential's own draft is open. At other stages, the page shows only an analysis that already exists. If two or more repositories of the project have code access, first select the repository under Repository. Next to the button, the page shows the analyses of the project today, for example "3 of 10 today".
While the analysis waits, the block says "Waiting to start". While it runs, it says what it reads, for example "Reading acme/web at 1a2b3c4 · 14 files read · started 14:02 by Ana". An owner or an admin can click Cancel. An analysis takes up to 5 minutes. Sequential does not start an analysis of a dismissed case: "This case is dismissed. Reopen it to analyse it."
The result of an analysis
The block Code analysis on the case page shows the newest analysis. It starts with the result. The repository, the file and the lines in the examples below are made up.
Sequential uses one of two sets of words for the result. Sequential sets which one your organisation gets. Every analysis shows the words of the set that is on when you read it, an older analysis too.
Found the code
Most organisations get these words.
- The agent found the code. For example: "The agent found this case's code in acme/web: src/cart/total.ts, lines 40 to 52, function addItem." The lines and the function show only when the agent gives them.
- The agent could not tell. "The agent could not tell if this case's code is in acme/web." On the page of the analysis, it adds: "Sequential shows a place in the code only when the agent found the code."
- Not in this repository. "The agent did not find this case's code in acme/web. The code can be in another repository. This is not a verdict of noise." It never names a place.
A place to look first
Organisations that Sequential sets get these words.
- A place to look first. The agent gives a file, with the lines and the function when it has them. For example: "The agent gives a place to look first in acme/web: src/cart/total.ts, lines 40 to 52, function addItem." Under it: "Sequential did not run this code. The cause of the case can be in another place." These words are the same when the agent found the code and when it was not sure. The place is where to start to read. It does not show that the cause is there.
- No place. "The agent could not tell if this case's code is in acme/web."
- Not in this repository. "The agent did not find this case's code in acme/web. The code can be in another repository. This is not a verdict of noise." It never names a place.
The file and the lines are a link to the file on GitHub, at the commit that the agent read.
Under the result:
- In the agent’s words: one line from the agent about the cause. It can quote a short part of your code. When Sequential does not show the line, the analysis says why, for example "Sequential does not show the cause, because it has a web address, an email address or an @ name in it. A new analysis writes a new cause."
- What the agent read, for example "Sequential did not run the code. It read 14 of 300 files. It did not read other repositories. Read at 1a2b3c4."
- How long it took, when it ended, and the link See the steps of this analysis.
- Who started it: "Analysed automatically." or, for example, "Started by Ana."
- Was this right? with Yes and No. An owner, an admin or a member can answer. The answer rates the analysis.
The steps of an analysis
Click See the steps of this analysis to open the page of that analysis. It shows the result again, and:
- Steps of the agent: what the agent read or searched for, in order. Each step has a label, for example "Read a file", "Searched the code" or "Read the history of a file". "Sequential does not show what the tools gave back." "A file in this list was read. This does not show that the case's code is in that file."
- The search texts are the agent's words. Sequential checks them before it shows them. A text that does not pass shows as "text withheld".
- Sequential keeps the first 120 steps only. The steps show when the analysis ends. For an older analysis, the page can say "Sequential did not keep the steps of this analysis."
- Analyses of this case: each kept analysis of the case, with its result. With the words "Found the code": "Found the code", "Did not find the code" or "Could not tell". With the words "A place to look first": "A place to look first" for an analysis with a place, "Did not find the code", or "Could not tell" for an analysis with no place.
Automatic analysis
When you turn on code access, you answer "Analyse open cases automatically". The part says:
- "Sequential analyses new cases with the code of this repository. Nobody needs to click. An analysis starts about 30 minutes after Sequential opens the case. Sequential opens a case up to 15 minutes after the session that makes it a case. That is the first session with a failed request or an error in your own code, or else the third session, from at least 2 people."
- "Each analysis sends the files that the agent opens to the AI provider."
- "Sequential makes at most 8 automatic analyses a day for all projects of your organisation. At most 4 of them are for cases that happened to only one person. A case that does not get its turn waits for up to 7 days."
- "The older cases use the same daily limit."
- "Sequential also analyses the older open cases that have no analysis yet. These are the cases that opened before you turned this on, and the new cases that did not get their turn in 7 days. New cases go first. Then errors and failed requests, then the other cases. In each group, the cases that the most people met go first."
- "Sequential does not analyse an older case automatically when an analysis of it ran before, also one that failed."
- "An analysis that Sequential stops by itself, for example for an update of Sequential or after an error on its side, does not count. Sequential then tries the case one more time. An analysis that reaches its own limit, for example 5 minutes, still counts."
- "You can turn this off and keep the button "Analyse with the code". Then Sequential starts no automatic analysis. An analysis that is running finishes."
The 3 sessions must be in the last 7 days. See Limits.
Only one repository of a project can have automatic analysis. Sequential analyses a case automatically only when the case is open, at the stage New, not muted, and still happens. A case that a person already analysed is not analysed automatically. If an automatic analysis did not start in 10 minutes or could not reach GitHub, before the AI provider got a request, Sequential runs it one more time, 60 minutes later or more. From 21 November 2026, the same holds for an analysis that Sequential stopped by itself, for an update of Sequential or after an error on its side, also after the AI provider got a request. An analysis that reached its own limit, for example 5 minutes, gets no second try. If Sequential could not start it, for example because another analysis was running, it tries again later. The day starts at 00:00 UTC.
From 21 November 2026, automatic analysis also works through the older open cases. An older case opened before you turned this on, or it was a new case and its 7 days ended. Sequential analyses an older case automatically only when it is open, at the stage New, not muted, not likely noise, still happens, and has no analysis, also no failed one. The case page then says that it waits for its turn. In each group, after the cases that 2 or more people met, come the cases that only your server reported, by how often they occurred, then the cases that happened to only one person, the oldest first. An older case gets no second try, except after an analysis that Sequential stopped by itself. An analysis that Sequential stopped by itself still uses a place of the day's limit, and its one more try uses another. If a person deletes the analysis, Sequential does not try the case again by itself. Only one analysis runs at a time for each organisation.
When automatic analysis is paused on Sequential's side, the part says "Automatic analysis is paused right now. Sequential starts no automatic analysis until it is on again." Sequential keeps your answer.
To stop it, click Turn off automatic analysis. "Sequential stops analysing cases of this repository automatically. An analysis that is running finishes. The button "Analyse with the code" stays." No analysis is deleted.
What the agent reads
The agent reads one repository. It reads files at the newest commit of the default branch. It gets the fix brief of the case, after Sequential checks it for instructions to an AI. It gets nothing else of the case. It reads no other repository, and no issue or pull request.
The AI provider receives:
- the files that the agent opens, up to 60
- the names of the files and folders that it lists or finds
- lines that its searches find in other files of the repository, with a few lines around them. For example, a search for a name gives the lines where the code defines or uses that name
- when the agent compares two commits of the repository, for example two releases that the brief names, the lines that changed between them
- for the history of a file, the date and the first line of each commit message, with no name or email
Which of these tools the agent has depends on settings that Sequential sets for your organisation.
Sequential never gives the agent the files on a fixed list:
- names that start with
.env, and every file in a folder whose name starts with.env - names that end with
.pem,.key,.p12or.pfx - names that start with
id_rsa, alsoid_rsa.pub, and the private SSH keysid_ed25519,id_ecdsaandid_dsa, but not their.pubhalf - Terraform state (
.tfstate) - common lockfiles, for example
package-lock.json,yarn.lockandgo.sum - some credential files by name, for example
.npmrc,.netrc,.git-credentials,.pgpassand.aws/credentials claude.mdandagents.md- the folders
.claude,.cursor,node_modules,vendor,third_party,distandbuild - names with
.min.in them - a copy of one of these files, for example
server.pem.bak
Other files that hold secrets can be read. A file larger than 1 MB is not read.
Before text goes to the AI provider, Sequential replaces each line that has the shape of a secret with "[line with a secret withheld]". The part says: "Sequential masks text that has the shape of a secret before it sends a file. This does not find every secret." and "A secret in a file that the agent reads reaches the AI provider."
What Sequential keeps
"Sequential keeps the file name, the lines, the function name, a commit id and one line about the cause, for 400 days. It keeps no file contents." It also keeps the steps of the agent, with its search texts, and counts, for example the files read. The line about the cause and the search texts can quote a short part of your code. The 400 days start when the analysis starts.
Sequential keeps the results of the 5 newest finished analyses of a case. When an analysis finishes with a result, Sequential clears the results of the older ones.
Delete an analysis, or turn code access off
On the case page, an owner or an admin clicks Delete all analyses. Sequential asks: "Delete all analyses of this case? Sequential deletes their file names, lines, function names, commit ids, causes and steps, and stops an analysis that runs. A delete here does not delete at the AI provider." After the delete, the page says "The analyses of this case are deleted." Sequential keeps the counts and the time of each analysis, who started it and the repository, for 400 days. The audit log keeps whether the agent found the code. The delete works also while code analysis is paused.
Sequential also clears every analysis of a repository in a project, and cancels the one that runs, when:
- an owner or an admin turns off code access. Sequential asks: "This deletes every code analysis of this repository in this project."
- an owner or an admin disconnects the repository from the project
- the repository becomes public, or is removed on GitHub
- the Sequential GitHub app (usesequential) is uninstalled or suspended on GitHub
- Sequential sees that the app "Sequential Code Read" is not installed on the repository, or is suspended. Sequential sees this at the next analysis of the repository, or at its daily check, usually within a day. The analysis then says, for example, "The app "Sequential Code Read" is not installed on the repository now. Sequential turned code access off."
Turning off only automatic analysis deletes nothing.
Who can read an analysis
"Every owner, admin and member of this project can read the file names and one line about the code, also a person with no access to the repository on GitHub." A viewer sees only "An analysis of the code exists. An owner, admin or member of this project can read it." A viewer does not see the link to the steps of an analysis.
"Sequential's support staff can read an analysis when they look at your project. Each such read is logged." See Changes by Sequential support.
The AI providers
In Settings › Project › Code access, before the switch, the part also says: "The AI provider keeps what it gets for up to 30 days, and up to 2 years if the provider's safety systems flag it. It does not use it for training. The line that the agent writes about the cause, and the search texts and paths that the agent types in its steps, also go to a second AI provider: the provider that judges your sessions. It checks them for instructions to an AI. They can quote your code."
The first AI provider is the one that runs the code agent. Before each analysis, the provider that judges your sessions also checks the quoted passages of the case's brief, or Sequential uses an earlier answer.
"A delete here does not delete at the AI provider." See AI and third parties.
Limits
| Limit | Value |
|---|---|
| Time of one analysis | 5 minutes |
| Files that one analysis opens | 60 |
| Analyses a day, for a project and for its organisation | 10, automatic ones included |
| Automatic analyses a day, for a project and for its organisation | 8 |
| Automatic analyses a day for cases that happened to only one person, for the organisation | 4 |
| Automatic tries of one case | 2 (for an older case 1, or 2 after an analysis that Sequential stopped by itself) |
| When an automatic analysis starts | about 30 minutes after the case opens, up to 7 days |
| An older case: it opened before automatic analysis was on, or its 7 days as a new case ended | in its turn, after the new cases (errors and failed requests first), within the same daily limit |
| Analyses that run at the same time | 1 for each organisation |
| Steps that Sequential keeps | 120 |
| Kept analyses of a case | 5 |
| How long Sequential keeps an analysis | 400 days |
When the analyses of today are used, Sequential does not start one and says, for example, "The analyses of today are used for this project. You can start one tomorrow."
Messages of a code analysis (8)
| Message | Where | What it means | What to do |
|---|---|---|---|
| "Another analysis of your organisation is running. Try again when it ends." | Analyse with the code | One analysis runs at a time for an organisation. | Try again when it ends. |
| "No repository of this project has code access now. An owner or admin turns it on in Settings." | Analyse with the code | Turn on code access first. | — |
| "This case is dismissed. Reopen it to analyse it." | Analyse with the code | Reopen the case. | — |
| "The analysis took more than 5 minutes. Sequential stopped it." | Code analysis, on a case | The analysis reached its time limit. | — |
| "The analysis used all its steps before it had an answer." | Code analysis, on a case | The analysis reached its step limit. | — |
| "The repository has too many files for an analysis." | Code analysis, on a case | Sequential reads a repository of up to 50,000 files and folders. | — |
| "The repository is public now. Sequential turned code access off." | Code analysis, on a case | Sequential reads code only in a private repository. | — |
| "Sequential cannot show this analysis. It did not finish, it was deleted, or it is not an analysis of this case." | The page of an analysis | Go back to the case. | — |