Sergeant open-source engineering review system.
Project description
Sergeant
Sergeant (SRG) is an open-source software engineering review system created by THETECHGUY DIGITAL SOLUTIONS.
Sergeant helps developers inspect repositories, review pull requests, verify engineering standards, and produce evidence-based reports. It fits existing developer workflows and provider choices instead of locking a project into one model or platform.
Sergeant is not another one-shot coding assistant. It is a reviewer: it checks work, challenges assumptions, collects proof, and reports what should happen before code is merged or released.
PASS
NEEDS WORK
BLOCK
Who Sergeant is for
- Individual developers who want a second engineering review before shipping.
- Open-source maintainers reviewing pull requests and project changes.
- Software teams that care about standards, evidence, and repeatable review flow.
- AI-assisted development workflows where generated code still needs independent review.
- Self-hosted or model-agnostic environments that should not depend on one provider.
Core principles
- Evidence before opinion.
- Standards before assumptions.
- Review before merge.
- Verification before release.
- Human judgment remains final.
- Finish, then prove.
- Claims must match implementation.
Sergeant can work beside Claude, Codex, Copilot, Cursor, Gemini, local LLMs, or OpenAI-compatible providers. Those tools may help write code. Sergeant stays focused on independent review and evidence.
Engineering workflow
Understand
↓
Review
↓
Challenge
↓
Verify
↓
Freeze
↓
Prove
↓
Ship
The first step matters: Sergeant should understand the objective, architecture, and intended standard before deciding whether something is wrong.
Sergeant V2 Command Center
The complete Command Center is the operating interface for the 0.3 release line.
Commander
↓
Mission
↓
Officers
↓
Weapon Manifest
↓
Evidence
↓
Verification
↓
Commander Verdict
↓
Audit Trail
The VS Code extension provides a compact activity-bar launcher and a full editor Command Center. The JetBrains preview uses the same Command Center through JCEF and falls back to a native Swing panel when JCEF is unavailable.
The interface includes:
- Commander dashboard and live workspace state.
- Mission Planner with repository, changed-file, release, battle, final-proof, IDE, and custom missions.
- Mission briefing, priority, permission, loadout, provider, officer, and weapon controls.
- Live mission progress and runtime evidence.
- Evidence views for static, runtime, UI, documentation, battle, and optional external review.
- Evidence Locker with report history, open, copy, export, and refresh actions.
- Officer deployment and armoury views.
- Settings for providers, writer safety, permissions, IDE awareness, GitHub, battle testing, debug, and advanced controls.
- Review Doctrine, Post-V2 Roadmap, and Guide pages.
Writer safety boundary
Writer mode is deliberately constrained:
- Disabled by default.
- Draft patches only.
- Human approval required.
- Never auto-merge.
Review doctrine
Static Evidence
↓
Runtime Evidence
↓
UI Evidence
↓
Docs Verification
↓
Cross Verification
↓
Confidence
↓
Commander Verdict
Sergeant does not copy another reviewer's conclusion. It gathers comparable evidence, investigates disagreements, and lets the Commander reason from the evidence.
Operational status
Status: Standing By
Release line: 0.3
Current version: 0.3.2
Command Center: Complete
VS Code: Supported
Open VSX: Supported
PyPI: Supported
JetBrains: 0.3.2-preview
Proof status: Verified
Battle status: Passed
Current capability set
Repository and engineering review
- Repository inspection and understanding.
- Pull-request and change-set review.
- Current-file and changed-file review.
- Architecture and regression-risk checks.
- Static analysis signals.
- Security and safety-boundary checks.
- Documentation drift checks.
- Evidence consensus and standards verification.
- Verified learning and squad-style review intelligence.
Developer workflow
- CLI review flow.
- App bridge contract.
- IDE Bench contract for VS Code, PyCharm, JetBrains, and AI handoff.
- Full VS Code Command Center.
- JetBrains Command Center preview.
- Read-only GitHub PR comment ingestion.
- Live GitHub review bridge.
- Local, self-hosted, and OpenAI-compatible provider choices.
Proof and battle validation
- Battle-test fixtures and validator.
- Static review-signal comparison.
- Live PR patch fetch for battle comparison.
- Battle comparison harness against Sergeant output.
- CI and clean-clone proof.
- App bridge and IDE contract proof.
- Browser-rendered Command Center proof at desktop and compact IDE widths.
- PyPI wheel/source validation, VSIX packaging, and JetBrains plugin packaging.
Installation
Python / CLI
Install from PyPI:
python -m pip install sergeant-reviewer==0.3.2
Or install from source:
git clone https://github.com/jaydumisuni/Sergeant.git
cd Sergeant
python -m pip install -e .
Requires Python 3.10 or newer.
VS Code
Install Sergeant from the Visual Studio Marketplace or Open VSX. For a local package:
npx @vscode/vsce package --no-dependencies
code --install-extension sergeant-reviewer-0.3.2.vsix --force
After installation, open Sergeant from the activity bar. Use Open Full Command Center for the complete V2 interface.
Available commands:
Sergeant: Open Full Command CenterSergeant: Review WorkspaceSergeant: App Bridge ReviewSergeant: Review Current FileSergeant: Review Changed FilesSergeant: Build V2 MissionSergeant: Run Proof SuiteSergeant: Run Final ProofSergeant: Verify StandardSergeant: Validate Battle TestsSergeant: IDE Bench ContractSergeant: Open Last ReportSergeant: Copy Last ReportSergeant: Export Last Report
JetBrains IDEs
The 0.3.2-preview plugin targets the 2025.2 / build 252 line and provides the shared Command Center in supported IntelliJ-platform IDEs, including IntelliJ IDEA, PyCharm, WebStorm, Android Studio, Rider, CLion, DataGrip, GoLand, PhpStorm, RustRover, RubyMine, and related products.
The JetBrains plugin invokes the installed Sergeant CLI. Install the CLI first:
python -m pip install sergeant-reviewer==0.3.2
When necessary, set SERGEANT_CLI to the executable path.
Quick start
Review the current repository:
sergeant review . --pretty
main-review remains a backwards-compatible CLI alias.
Run an app bridge review:
sergeant app-review . --mode pull_request --files "src/app.py,tests/test_app.py" --pretty
Build a V2 mission packet:
sergeant v2-mission . --mission-type pull_request_review --mode pull_request --files "src/app.py,tests/test_app.py" --pretty
Run the proof suite and final proof:
sergeant proof-suite . --pretty
sergeant final-proof . --pretty
Verify the standard:
sergeant verify-standard --pretty
A clean self-check returns:
{
"status": "verified",
"next_actions": []
}
Fetch read-only live GitHub PR comments:
sergeant live-github-comments owner/repo 12 --pretty
Run live GitHub comments through the review bridge:
sergeant live-github-review owner/repo 12 . --pretty
Show the IDE handoff contract:
sergeant ide-bench-contract --pretty
Validate battle fixtures:
sergeant battle-tests --pretty
Run a live battle comparison:
sergeant battle-compare battle-tests/psf-requests-7502.json --token YOUR_READ_ONLY_GITHUB_TOKEN --pretty
battle-compare fetches real PR patch metadata, writes patch text into a temporary review workspace, runs Sergeant against it, and compares the output against expected findings. It is read-only and does not execute target-repository code.
Battle testing
Current fixtures include:
psf/requests#7502— focused regression and test-clarity case.pallets/flask#5812— larger architecture and lifecycle case.django/django#19610— URL query-string merge case.
Battle proof has three layers:
- Static fixture proof — committed fixtures, review signals, expected findings, and coverage.
- Battle-aware evidence rules — deterministic rules learned from committed fixture patterns.
- Live battle comparison — real PR patch metadata compared with Sergeant findings.
GitHub Battle Tests: Passed
Repository Battles: Passed
Pull Request Battles: Passed
Review Comparison: Passed
Evidence Validation: Passed
Third Fixture: Passed
Live battle comparison reviews patch text in a temporary workspace. It does not execute target code, and its agreement score remains a transparent keyword-overlap comparison rather than an LLM-judged semantic benchmark.
Proof suite
CI Proof: Passed
Clean Clone Proof: Passed
App Bridge Proof: Passed
IDE Contract Proof: Passed
Mocked GitHub Proof: Passed
Battle Proof: Passed
Command Center Browser Proof: Passed
VSIX Packaging: Passed
Python Distribution Proof: Passed
JetBrains Packaging: Passed
Release Proof: Passed
Public boundary
This repository contains reusable review infrastructure:
- Review engine and static analysis.
- Battle-aware evidence rules for committed fixtures.
- Evidence consensus and verified learning framework.
- Squad-style review intelligence.
- App and IDE contracts.
- Read-only GitHub ingestion.
- Live PR diff fetch for battle comparison.
- Battle-test validation.
- VS Code and JetBrains Command Center integrations.
Private project rules, customer evidence, deployment secrets, and write-token operations do not belong in the public repository.
Safety boundary
Sergeant refuses to:
- Execute untrusted pull-request-controlled code.
- Run shell commands supplied by PR content.
- Automatically modify project code.
- Write or merge patches as part of review.
- Use privileged write tokens during analysis.
- Silently fake success after a failed live fetch.
- Treat external reviewers as final authority.
Sergeant terminology
| Sergeant term | Meaning |
|---|---|
| Standing By | Ready for the next review |
| Orders Received | Review request accepted |
| Deploy Review Squad | Start the review process |
| Evidence Collected | Findings and proof gathered |
| Report Ready | Review completed |
| Attention Required | Action is recommended |
| Evidence Locker | Saved reports or review history |
| After Action Report | Detailed review report |
| Verified | Confirmed by evidence |
| Unable to Verify | More evidence is needed |
The terminology is intended to make Sergeant disciplined, organized, accountable, and clear—not to turn engineering review into a game.
Post-V2 roadmap
The completed V2 core remains focused on:
Commander → Mission → Officers → Weapon Manifest → Evidence → Verdict → Audit Trail
Later work is deliberately separated:
- Mission templates and live monitoring.
- Review replay and collaboration.
- Multi-repository operations.
- Shared knowledge-base integration.
- Analytics and recurring-issue trends.
- Plugin / Weapon SDK.
- Wider language and ecosystem battle testing.
Contributing
Contributions, issue reports, feature requests, and engineering discussions are welcome. Sergeant values evidence-based changes, reproducible results, clear reasoning, respect for existing architecture, standards compliance, and useful signals over noisy output.
Identity
Sergeant / SRG is created by THETECHGUY DIGITAL SOLUTIONS.
Observe. Analyze. Verify.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sergeant_reviewer-0.3.2.tar.gz.
File metadata
- Download URL: sergeant_reviewer-0.3.2.tar.gz
- Upload date:
- Size: 85.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c0e5f199ab3aa3061798d29cc66e3c045cc0e43b1ee7bae2ab283049ee9dbf6
|
|
| MD5 |
da1d905ab21dac44a1ca998764146bcf
|
|
| BLAKE2b-256 |
e8d0710196d7a646c9d78ac91e1bb5da33deeb3acbf4ada3a9fd21e9c8f29200
|
Provenance
The following attestation bundles were made for sergeant_reviewer-0.3.2.tar.gz:
Publisher:
publish-pypi.yml on jaydumisuni/Sergeant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sergeant_reviewer-0.3.2.tar.gz -
Subject digest:
2c0e5f199ab3aa3061798d29cc66e3c045cc0e43b1ee7bae2ab283049ee9dbf6 - Sigstore transparency entry: 2156992454
- Sigstore integration time:
-
Permalink:
jaydumisuni/Sergeant@bfee9cd5c04056e01f74c4b8be4cea9a4f680ec0 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/jaydumisuni
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@bfee9cd5c04056e01f74c4b8be4cea9a4f680ec0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sergeant_reviewer-0.3.2-py3-none-any.whl.
File metadata
- Download URL: sergeant_reviewer-0.3.2-py3-none-any.whl
- Upload date:
- Size: 78.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0f1ed2c74a2d898fc9b404114df8aba3e1da9575d1062200bf987a71150960
|
|
| MD5 |
7279e2f703878a9c09d4ce8b2446d546
|
|
| BLAKE2b-256 |
7553702c0ef53b2efd6ff9b1ef6513b1fedf84ecbebcab67eaa19b7429d0d4f2
|
Provenance
The following attestation bundles were made for sergeant_reviewer-0.3.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on jaydumisuni/Sergeant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sergeant_reviewer-0.3.2-py3-none-any.whl -
Subject digest:
1d0f1ed2c74a2d898fc9b404114df8aba3e1da9575d1062200bf987a71150960 - Sigstore transparency entry: 2156992513
- Sigstore integration time:
-
Permalink:
jaydumisuni/Sergeant@bfee9cd5c04056e01f74c4b8be4cea9a4f680ec0 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/jaydumisuni
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@bfee9cd5c04056e01f74c4b8be4cea9a4f680ec0 -
Trigger Event:
workflow_dispatch
-
Statement type: