Backend transaction, side-effect, and upgrade-context system for AI-assisted projects.
RepoSense turns repositories into evidence-backed engineering facts, side-effect maps, and upgrade-ready context. RepoSense turns repositories into auditable engineering facts, deterministic patterns, and grounded engineering insights.
Language: English | 简体中文
AI can generate a first backend version quickly. The harder part usually starts in the second and third version: maintainability, upgrade confidence, and safe handoff context.
Teams often cannot clearly see:
- which APIs write data,
- where transaction boundaries are observed or missing,
- where queue dispatch and consume signals appear,
- where cache state changes happen,
- which side effects may affect the next AI-assisted change,
- what upgrade context should be handed to the next assistant or engineer.
RepoSense addresses this by converting code into evidence-backed Facts, deterministic Patterns, and grounded Insights that can be replayed and reviewed.
- Which backend APIs trigger writes and side effects?
- Where are transaction signals observed or not observed?
- Which side effects may affect the next change?
- What changed between two runs?
- Is this repository ready for the next AI-assisted upgrade?
- What context should be handed to the next AI-assisted upgrade?
Code Repo
-> Facts
-> Patterns
-> Insights
\
-> Learn
Context Pack turns these outputs into explicit upgrade context for the next AI-assisted maintenance or upgrade cycle.
RepoSense performs conservative, evidence-backed detection. It helps expose backend transaction, side-effect, and upgrade-context signals, but it does not guarantee full backend correctness or safe upgrades.
Run from repository root (PowerShell on Windows):
powershell -ExecutionPolicy Bypass -File tools/demo_run.ps1report.htmlbackend_verifier_report.jsonandbackend_verifier_report.mdpatterns.jsonandpattern_summary.jsonai_summary.mdai_risks/risks.mdai_explain/*/explain.md(at least one)exports/context_pack.ziprun_manifest.json
- Findings / Events / Evidence
report.jsonandreport.htmlevent_graph.jsonapi_surface.json- Context Pack export
- SARIF export
- Quality Gate
- Baseline & Diff
- Run Manifest
- Learn local site (
learn/index.html) - Deterministic pattern outputs:
patterns.json/pattern_summary.json
- Local, evidence-backed, limited AI-derived outputs:
ai summaryai risksai explainai ask(constrained)
- Guided repair playbooks
- Multi-run history and trend workspace
- Team collaboration workspace
- Enterprise/compliance reporting templates
- Long-term upgrade advisor
Context Pack is the handoff layer for the next AI-assisted change.
It packages API surface, backend events, findings, evidence, quality gate, baseline diff, and run manifest into a reproducible context bundle.
- Not a general AI code chat.
- Not a proof of full backend correctness.
- Not a tool that guarantees all transactions are correct.
- Not a tool that lets models freely roam your entire repository by default.
- Analysis: extracts Findings, Events, and Evidence from code repositories.
- Learn: Concepts -> Cases -> Evidence for grounded learning.
- AI Insights:
summary,risks,explain,askon top of Facts + Patterns. - Studio: local run viewer for reports, risks, explain, and evidence/snippet links.
- Evidence-first
- Deterministic
- Facts first, source on demand
RepoSense AI outputs follow a grounded contract: Facts-only by default, constrained source drill-down only when needed, and explicit confirmed / inferred / unknown separation.
- docs/DEMO_QUICKSTART.md
- docs/ARCHITECTURE.md
- docs/reports/BACKEND_VERIFIER_REPORT.md
- docs/context-pack/CONTEXT_PACK_SPEC.md
- docs/AI_GROUNDED_PRINCIPLES.md
- Full docs index: docs/INDEX.md
Release screenshots are tracked in docs/assets/ASSET_INDEX.md.
Canonical release screenshots are captured from:
.reposense_release_demo/current/- Regenerate with:
powershell -ExecutionPolicy Bypass -File tools/release_demo.ps1
Current stable screenshot targets include:
- Overview
- Backend Events
- API Surface
Learn / AI Risks / AI Explain screenshots are captured from the same canonical release demo run.
RepoSense generates local, evidence-backed reports for backend transaction, side-effect, and upgrade-context inspection.
More screenshots and release assets are tracked in docs/assets/ASSET_INDEX.md.
RepoSense optimizes for cost, stability, and auditability. Default reasoning is Facts-only; source drill-down is on-demand and evidence-constrained.
RepoSense outputs not only Findings, but also Events, Event Graph, Evidence references, deterministic Patterns, and grounded Insights.
RepoSense is Facts-first, deterministic, and evidence-backed. Outputs can be replayed and audited via run artifacts.
Learn is not a static docs page. It is a Concepts -> Cases -> Evidence learning path for grounded engineering understanding.
Current OSS coverage centers on Python, TypeScript/JavaScript, Java, and SQL signals. See docs/LANGUAGE_SUPPORT_MATRIX.md for the exact current matrix.
python -m unittest -v- License: LICENSE
- Contributing: CONTRIBUTING.md
- Security: SECURITY.md


