Codebase Analysis
Codebase analysis reads your application’s code and does two things. It draws the Application Map: the pages, routes and API endpoints in your app and how they connect. And it uses AI to propose test flows, one for each important thing a user does in your app. You review each proposal before it becomes a test.
How the scan works
1. Reading the code
FlowGuard reads either a copy of your repository in the cloud, or the folder on your computer through the agent. The framework is detected (.NET, React, Angular, Vue, Next.js). Folders such as node_modules, bin, obj, dist and build are skipped, and settings and key files (appsettings.json, environment.ts, .env, .config, .pem and .key files) are never read.
2. The Application Map
FlowGuard's own code reads your .ts and .cs files on its servers and finds the routes, pages, API endpoints and the links between them. No AI is used for the map, and each item on it points back to the file it was read from.
3. AI proposals
FlowGuard sends Claude (through Anthropic's commercial API or Pintor Project's Azure AI Foundry capacity) a list of your file names and the first part of a selection of important files, such as controllers, routes and services. From the agent that is up to 20 files and 1,500 characters of each; from a cloud copy, up to 50 files and 10,000 characters of each. Claude proposes flows: one per critical user journey, ordered by risk. You review each proposal in the dashboard.
4. Acceptance
Accepted proposals become real Flow records. Rejected proposals are logged so the next scan doesn't re-suggest them. Modified proposals teach the model your conventions.
What FlowGuard receives
With the agent, the map scan uploads your .ts and .cs files whole, and the flow scan sends the AI the file list and the excerpts described above. With a repository address, FlowGuard copies the repository to its servers and reads it for both.
Never read: settings and key files such as appsettings.json, environment.ts, .env, .config, docker-compose, .pem and .key files, and folders such as node_modules, bin and obj.
Running a scan
Open the application in FlowGuard, go to Codebase Analysis and click Update analysis. You can start a scan in two ways:
- Repository URL: give the address of your repository, the branch, and an access token if the repository is private. FlowGuard copies the code in the cloud, draws the map and proposes flows. The page shows progress while it works, and you can leave the page in the meantime.
- Local agent: choose Build the Application Map or Propose test flows, copy the command shown for your computer and run it on a computer where the agent is installed. Run both to get the map and the proposals. Change the
--pathline to the folder that holds your code.
The commands and how to install the agent are in Agent Setup.
Where the scan is weakest
Apps with heavy server-side rendering and dynamic component composition (e.g. CMS-driven pages, micro-frontend shells) give the scanner less to chew on. Recording flows in Chrome is the better starting point for those — let the AI fill in checkpoints and assertions afterwards.