Code health
QualityLayer checks code on your computer and gives the findings to your agent and its reviewers. Code health covers complexity and duplication; security scans cover secrets, vulnerable or malicious packages, unsafe workflows and risky code. Findings never stop the work.


What happens as you work
Open full size ↗
Open full size ↗
Code is edited
At the end of each turn, edited files get a structure check and a secrets scan.Your agent gets the findings
It reads the source and explains the consequence before changing anything.It fixes or reviews each one
Fixes get the relevant tests; an intentional pattern keeps its review reason.
Checks never start another agent turn; findings reach your agent when the conversation next continues.
Security scans
In Verify, the scans read what the task changed, beside your project checks. Each reads only the files it knows:
| Scan | Reads | Tool |
|---|---|---|
| Secrets | Every changed file | Betterleaks |
| Dependencies | A changed lockfile | OSV-Scanner |
| GitHub workflows | A changed workflow or action | zizmor |
| Code | Changed JavaScript, TypeScript and Python | OpenGrep, with QualityLayer's rules |
The Security review starts from the findings; the Independent review rules on them. A scan with no file to read is not needed. A scan that could not read a file says not checked, never clean.
Verify scans the task's registered commits and its recorded edits to tracked files; another task's changes stay outside. Untracked files are not scanned there, but the secrets scan after each agent turn still reads them. Secrets found in the task's records are removed before commit.
What a finding means
| Finding | What your agent looks for |
|---|---|
| Complex function | Branches or responsibilities that make a change hard to follow |
| Duplicated code | Copies that could drift apart; broader duplication checks run when you ask |
| Possible secret | A key or password in a file; a real one is moved out and rotated |
| Advisory | A package version with a known vulnerability or known malware |
| Previously seen | A finding the tool already reported; it still needs review |
| Acknowledged | A finding kept with a specific reason; the code has not been repaired |
A finding needs a new review when its function, the analyzer configuration or its duplicate changes, or when its metric goes up.
Ask for a broader check
Try "Check this project's duplication", "Review the complexity of the files we changed" or "Scan this branch for secrets." Your agent can also run your project's enabled linters.