Open-source, offline, bias-aware academic integrity checker: plagiarism, AI content detection, LLM watermark detection, citation integrity & network analysis, stylometric authorship profiling, semantic coherence analysis, and batch classroom scanning.
pip install aegis-integrity==3.4.0 Copy PIP instructions
Real CLI output on a synthetic sample paper (docs/demo/sample_paper.txt). Both DOIs in it are invented, and AEGIS flags them.
Pick the way you want to use AEGIS. All three run on your own computer.
1. In your browser (easiest). Install once, then open the web app:
pip install "aegis-integrity[ml]" aegis ui Drag in a PDF, Word, LaTeX or text file, choose Full check, Private / offline, References only or Style & formatting, and get a plain-language report: an overall rating, what to look at, every reference with its verification result, and a downloadable full report. A Compare two papers tab and a My comparison library tab cover self-plagiarism and building the corpus. On Windows, install.bat sets everything up and start-aegis.bat opens the web app with a double-click.
2. Inside Claude Code. Install the package with the mcp extra, then add the plugin:
pip install "aegis-integrity[mcp,ml]" /plugin marketplace add sunilgentyala/aegis-integrity /plugin install aegis-integrity@aegis-integrity Then ask in plain words ("check references in ~/drafts/paper.pdf", "is this ready for an Elsevier journal?"), or use the /integrity-check and /submission-check skills.
Author, developer, architect and scientist: Sunil Gentyala (HCLTech, IEEE Senior Member). AEGIS is licensed under the GNU AGPL-3.0-or-later. Copies and derivatives (including network services) must stay under the AGPL, publish their source, keep the LICENSE and NOTICE files and credit Sunil Gentyala as the original author. Please cite it using CITATION.cff.
3. In Claude Desktop. Install the package as in option 2, download aegis-integrity- .mcpb from the Releases page and open it. In the extension settings, choose the Python where AEGIS is installed. Any other MCP client can run the aegis-mcp command directly.
Not sure what works on your machine? Run aegis doctor. It lists every capability, whether it's ready, and the one command that fixes it. aegis doctor --warm-up downloads the AI models ahead of time so your first full check doesn't wait on them.
aegis-mcp exposes seven tools to Claude Code, Claude Desktop and any MCP client.
Listed and claimed by the maintainer on Glama and mcprush. See what each listing status means.
AEGIS is local-first and the MCP server runs over stdio. Documents never leave your machine; only reference metadata goes to Crossref/OpenAlex.
Report vulnerabilities privately: see SECURITY.md.
If AEGIS helped you, a star on GitHub helps other researchers find it. Bug reports, sample papers that break it and pull requests are worth more: see the open issues labelled good first issue.
Every major integrity tool has blind spots. AEGIS v3.3 aims to close fourteen of them simultaneously.
Based on each vendor's public documentation and pricing pages as of August 2026. "Not public" means the capability isn't documented publicly by that vendor -- not a confirmed absence. Corrections welcome.
Resolves every DOI via the Crossref REST API and cross-checks author, year, and title. A peer-reviewed study found ChatGPT fabricated up to 55% of references depending on model version (Walters & Wilder, Scientific Reports, 2023).
Verdicts: VALID | MISMATCH | HALLUCINATED | UNRESOLVABLE | NO_DOI
AEGIS ships two distinct capabilities here, and they should not be confused:
See Watermark Detection: Capabilities and Limitations below before relying on any watermark output.
Analyzes the full reference list for structural anomalies that single-citation DOI checking misses:
Targets the bias documented by Liang et al. (Stanford, 2023): GPT detectors misclassified more than half of non-native-authored TOEFL essays as AI-generated, one detector flagging up to 98%, while native-English essays were scored accurately. Defines per-language threshold multipliers for 15 languages, but this part is experimental: the language is detected from the text, which is "en" for nearly all English submissions, so the non-English multipliers rarely fire (see the v3.1.1 changelog note). Do not treat AEGIS as having solved ESL false positives; keep a human in the loop. Paragraph-level scoring pinpoints injected AI sections rather than giving one document-level verdict.
Signals: GPT-2 perplexity, burstiness, cross-perplexity ratio, stylometric ensemble, GPT-4/GPT-5-era lexical-tell density (v2.5 -- transition/elevation vocabulary disproportionately common in ChatGPT/GPT-4/GPT-5-family output, which GPT-2 perplexity alone under-detects against fluent frontier-model text).
Detects AI-polished text that passes perplexity filters because it was post-processed by a humanizer. Targets the "too smooth to be human" signature:
SBERT dense retrieval + CrossEncoder reranking catches concept-level paraphrase where no exact words are shared. Traditional BM25/TF-IDF-only tools miss this entirely.
Model: paraphrase-MiniLM-L6-v2 (80 MB, CPU-friendly). Index: FAISS IndexFlatIP. Requires a corpus you load first (--corpus) -- there is no built-in web/database crawl to compare against.
Dual index: word 3-gram (verbatim copy) and character 5-gram (obfuscation via typos or character substitution). 128 MinHash permutations; sub-linear query time over large corpora via LSH banding. Also requires a loaded corpus -- same scope note as above.
60-dimensional feature vector per segment (10 scalar + 50 function-word dimensions). Segments with Burrows' Delta > 0.40 from the document baseline are flagged as potential ghostwritten sections. Catches professional essay mills that mix human and AI writing.
Three-layer detection: character 5-gram Jaccard (verbatim), word 3-gram Jaccard (near-verbatim), SBERT cosine >= 0.88 (cross-language paraphrase recycling). Risk levels follow COPE text recycling guidelines (15% / 30% thresholds).
Detects essay mill operations and shared AI source documents by analyzing a set of submissions simultaneously:
Scopes citation and duplicate-submission checking to six publishers authors most commonly ask about: IEEE, ACM, Elsevier, IET, IETE, BCS. No outside tool (this one included) can query those publishers' actual full-text plagiarism databases -- Crossref's Similarity Check corpus that backs Turnitin/iThenticate is restricted to paying member organizations, and Scopus/IEEE Xplore's public APIs are metadata- or abstract-only even with a key. What this module does instead, entirely via free Crossref metadata:
Configurable via --target-publishers IEEE,ACM,... (CLI) or PipelineConfig.venue_target_publishers (Python API); defaults to all six.
Checks the structural integrity of numbered equations: consecutive numbering (catches duplicates, gaps, and out-of-order numbers), dangling in-text references to equation numbers that don't exist (a common leftover from renumbering during revision), orphaned equations that are numbered but never referenced, and a set of notation conventions sourced from actual publisher style manuals -- exponential notation (5E03 vs. 5×10³), decimal leading zeros, percentage-range formatting, and doubly-parenthesised references. Equations are extracted from LaTeX source (\begin{equation}/align/eqnarray/...), from Word's native OMML math XML (python-docx doesn't expose this at all -- Paragraph.text silently skips every equation in a .docx), or via text-pattern heuristics for PDF/TXT. Pure Python, no ML dependency. This is a compliance/quality signal, not a misconduct signal -- it never affects overall_risk.
An offline, dependency-light grammar/usage checker: contraction detection ("don't" in formal text), US/UK spelling-consistency detection across 30+ word pairs, subject/verb agreement heuristics ("the data is" vs. "the data are"), common usage errors ("comprised of", "could of", "less samples" vs. "fewer samples", decade/acronym apostrophe misuse), and readability metrics. Runs fully in-process on regex + optional spaCy POS tagging (already an AEGIS dependency) -- no Java runtime, no external grammar service, no new hard dependency. Also a compliance/quality signal, never part of overall_risk.
Runs the math and grammar findings above against six publishing bodies' own sourced style guidance, checked SEPARATELY rather than one generic merged rule set -- so a document that's fine by ACM's conventions but violates an IEEE-specific one (or vice versa) is visible per venue instead of averaged away:
Results are PASS / NEEDS_REVIEW / NOT_ENOUGH_DATA -- advisory, never FAIL. These are style conventions, not academic-integrity findings; AEGIS does not claim to be a venue's editorial desk. Run via aegis guidelines paper.pdf --venues IEEE,ACM,BCS,IET,ISACA,ELSEVIER (fast, no ML models at all) or opt in from aegis analyze ... --guidelines all.
Markdown input strips YAML front matter and fenced code blocks while retaining heading text.
submission (PDF / DOCX / TEX / TXT / Markdown) | v DocumentParser -- PyMuPDF / python-docx / TexSoup / striprtf | ┌────┴──────────────────────────────────────────────────────────────┐ │ AEGISPipeline v3.0 │ │ │ │ NGramDetector word 3-gram + char 5-gram MinHash LSH │ │ SemanticDetector SBERT + FAISS + CrossEncoder reranker │ │ AIContentDetector[v2.5] GPT-2 perplexity+burstiness+ESL+tell │ │ CitationIntegrityDetector Crossref REST API (DOI resolution) │ │ StylometricAnalyzer Burrows' Delta; 60-dim feature vector │ │ SelfPlagiarismDetector SBERT + n-gram vs. prior works │ │ LLMWatermarkDetector [v2.1] experimental, no real key │ │ CitationNetworkAnalyzer[v2] self-cite inflation; OpenAlex │ │ SemanticCoherenceAnalyzer[v2] discourse connectors; uniformity │ │ BatchAnalyzer [v2] classroom-level essay mill detection │ │ TargetPublisherVerifier[v2.4] IEEE/ACM/Elsevier/IET/IETE/BCS │ │ MathFormulaChecker [v3.0] equation numbering/refs/notation │ │ GrammarLanguageChecker[v3.0] contractions/spelling/agreement │ │ GuidelineComplianceChecker[v3.0] IEEE/ACM/BCS/IET/ISACA/Elsevier │ └────────────────────────────┬──────────────────────────────────────┘ | AnalysisReport | HTML report (self-contained, offline-viewable) Installation Minimal (no ML models -- citation, stylometric, watermark, coherence, math, grammar, and per-venue guideline compliance; all pure-Python):
pip install -e ".[ml,nlp,bib]" python -m spacy download en_core_web_sm Docker (recommended for production / air-gapped environments):
docker compose up --build # Web app at http://localhost:8000/ ; API at the same address (bound to localhost only by default) # Swagger UI at http://localhost:8000/docs The container runs as a non-root user and its healthcheck needs no extra tools. By default the compose file only publishes the API on the host's loopback interface. Before exposing it beyond localhost (a different host binding, a reverse proxy, etc.), set AEGIS_API_KEY -- otherwise every route except /health is unauthenticated.
install.bat Quick Start Command-line # Full analysis (all 14 detectors): aegis analyze paper.pdf --html report.html # Fast, offline-only scan: math + grammar + per-venue guideline compliance, # checked SEPARATELY for each requested venue -- no ML models at all: aegis guidelines paper.pdf --venues IEEE,ACM,BCS,IET,ISACA,ELSEVIER --html guidelines.html # Fold guideline compliance into the full analysis instead: aegis analyze paper.pdf --guidelines all --html report.html # Disable the experimental watermark heuristic entirely: aegis analyze paper.pdf --watermark-mode disabled # Against a reference corpus: aegis analyze paper.pdf --corpus ./prior_papers/ --html report.html # Self-plagiarism check against own prior publications: aegis analyze paper.pdf --prior-works ./my_previous_papers/ --html report.html # Pairwise comparison (conference vs. journal version): aegis compare conference_draft.pdf journal_submission.pdf # Batch / classroom analysis (essay mill detection): aegis batch ./submissions/ --html batch_report.html # Build a persistent index for a large corpus: aegis index build ./corpus_dir/ --index-dir ./aegis_index/ aegis analyze paper.pdf --index-dir ./aegis_index/ --html report.html # Start the REST API server: aegis serve --host 0.0.0.0 --port 8000 Python API from aegis.core.pipeline import AEGISPipeline, PipelineConfig from aegis.detectors.watermark_detector import WatermarkMode cfg = PipelineConfig( citation_email="you@university.edu", run_watermark_detector=True, # v2.0 watermark_mode=WatermarkMode.EXPERIMENTAL, # default; never affects overall_risk run_citation_network=True, # v2.0 run_coherence_analyzer=True, # v2.0 ) pipeline = AEGISPipeline(config=cfg) # Load a reference corpus (optional) pipeline.load_corpus([("Smith2023", open("smith2023.txt").read())]) # Load your own prior publications (optional) pipeline.load_prior_works([("My2022Conf", open("my2022.txt").read())]) report = pipeline.analyze("submission.pdf") print(report.overall_risk) # LOW | MEDIUM | HIGH | CRITICAL # v2.0 new fields print(report.watermark_result) # WatermarkResult print(report.citation_network_result)# CitationNetworkResult print(report.coherence_result) # CoherenceResult # v3.0 new fields -- compliance/quality signals, never part of overall_risk print(report.math_result) # MathAnalysisResult print(report.grammar_result) # GrammarAnalysisResult print(report.guideline_results) # {"IEEE": GuidelineComplianceResult, ...} # (empty unless PipelineConfig.guideline_venues is set) from aegis.report.generator import ReportGenerator gen = ReportGenerator("./reports") gen.generate_html(report) # Batch classroom analysis (v2.0) from aegis.detectors.batch_analyzer import BatchAnalyzer analyzer = BatchAnalyzer() batch = analyzer.analyze( doc_names=["alice.pdf", "bob.pdf", "carol.pdf"], doc_texts=[text_alice, text_bob, text_carol], ai_scores=[0.72, 0.69, 0.71], ) print(batch.overall_risk) # CRITICAL if essay mill detected print(batch.suspicious_pairs) REST API # Upload for analysis: curl -X POST http://localhost:8000/analyze \ -F "file=@paper.pdf" -F "format=json" # Add to reference corpus: curl -X POST http://localhost:8000/corpus/add \ -F "file=@reference.pdf" -F "label=Smith2023" # Build search index: curl -X POST http://localhost:8000/corpus/build # Pairwise comparison: curl -X POST http://localhost:8000/compare \ -F "file_a=@journal.pdf" -F "file_b=@conference.pdf" # Batch classroom analysis: curl -X POST http://localhost:8000/batch \ -F "files=@a.pdf" -F "files=@b.pdf" -F "files=@c.pdf" Report Fields (v2.1) detector_status distinguishes "this detector found nothing" from "this detector didn't run" -- a 0.0 score alone is ambiguous between a disabled detector, a missing corpus, and a genuinely clean result. citation_summary.assessment is "INCONCLUSIVE" (rather than a confident risk level) when fewer than 5 references were detected or verification coverage is below 80% -- a single low-confidence reference should never read as "100% of citations are fabricated."
{ "overall_risk": "HIGH", "scores": { "plagiarism": 0.12, "ai_content": 0.71, "citation_issue_rate": 0.22, "style_inconsistency": 0.08, "self_recycling_pct": 4.2 }, "flags": ["AI content detected: AI_LIKELY (score=0.71)", "..."], "network_activity": { "document_content_transmitted": false, "citation_check_mode": "online", "citation_network_mode": "online", "external_services_contacted": ["Crossref", "OpenAlex"] }, "detector_status": { "ngram": {"status": "completed", "reason": null}, "semantic": {"status": "disabled", "reason": null}, "ai_content": {"status": "completed", "reason": null}, "citation": {"status": "completed", "reason": null}, "self_plagiarism": {"status": "unavailable", "reason": "no prior works loaded"}, "...": "one entry per detector -- completed | disabled | unavailable | failed" }, "ai_detection": { "document_verdict": "AI_LIKELY", "ai_fraction": 0.62, "paragraph_scores": [...] }, "citation_summary": { "total_references": 22, "references_with_identifier": 20, "references_verified": 19, "verification_coverage": 0.864, "assessment": "ASSESSED", "risk_level": "MEDIUM" }, "citation_integrity": [...], "citation_network": { "self_citation_rate": 0.08, "predatory_journal_count": 0, "missing_doi_rate": 0.14, "flags": [] }, "watermark": { "mode": "experimental", "status": "completed", "verdict": "NO_STATISTICAL_ANOMALY", "evidence_status": "experimental", "affects_overall_risk": false, "tokens_evaluated": 842, "z_score": 0.41, "confidence": 0.0, "limitations": ["This is a keyless heuristic...", "..."] }, "coherence": { "verdict": "AI_POLISHED", "ensemble_score": 0.63, "discourse_connector_density": 5.2, "sentence_length_cv": 0.29 }, "stylometric": {...}, "self_plagiarism": {...} } Configuration Copy .env.example to .env and set:
All settings can also be passed as PipelineConfig arguments in the Python API.
AEGIS's watermark analysis is experimental by default and does not affect the overall integrity risk score. Before relying on any watermark output, understand:
pip install pytest pytest tests/ -v The test suite runs without network calls or ML model downloads.
1. Local-first processing. AEGIS never uploads your manuscript anywhere -- analysis runs entirely on your own machine. Citation checks may query Crossref/OpenAlex with reference metadata (titles, authors, DOIs), never the document itself, and only when online verification is enabled.
2. Reduced false-positive bias against international researchers. Liang et al. (Stanford, 2023) found GPT detectors misclassified more than half of non-native-authored TOEFL essays as AI-generated. AEGIS applies per-language calibration across 15 languages to reduce this bias.
3. Closes gaps not publicly documented elsewhere. Citation cartels, essay mills, and AI-polished text that passes perplexity filters are not publicly documented as covered by mainstream tools. AEGIS also includes an experimental, informational-only LLM watermark heuristic not commonly found in open-source alternatives -- see its capabilities and limitations.
4. Explainable, not a black box. Every flag cites the exact sentence, the source it was matched against, and the metric that triggered it, so a human reviewer can verify or dismiss it -- rather than a single opaque score. AEGIS results are a supporting signal for human review, not a determination of misconduct.
5. Built for research institutions. REST API for LMS integration, Docker for air-gapped deployment, batch mode for classroom scanning, persistent indices for journal editorial systems.
6. Free, forever. AGPL-3.0 open source. No per-submission fees, no seat licenses, no vendor lock-in -- commercial tools require an institutional license or paid API credits. AEGIS costs compute time only.
A prebuilt container image is published to the GitHub Container Registry:
docker pull ghcr.io/sunilgentyala/aegis-integrity:latest docker run --rm -p 8000:8000 -v aegis-data:/data ghcr.io/sunilgentyala/aegis-integrity How to Cite If you use AEGIS in your research, please cite the software:
@software{gentyala2026aegis, author = {Gentyala, Sunil}, title = {{AEGIS}: Offline, Bias-Aware Academic Integrity Checker}, year = {2026}, version = {3.4.0}, url = {https://github.com/sunilgentyala/aegis-integrity} } Machine-readable metadata is in CITATION.cff; GitHub shows it under "Cite this repository".
GNU AGPL-3.0-or-later from v3.4.0. See LICENSE. Releases up to v3.3.2 were published under the MIT License (kept in LICENSE-MIT-historical.txt) and remain available under those terms. Network use of a modified AEGIS requires offering its source to users under the AGPL.
Sunil Gentyala Independent Research | HCL America Inc., Dallas TX, USA
Contact: sunil.gentyala@ieee.org GitHub: sunilgentyala LinkedIn: linkedin.com/in/sunil-gentyala Website: sunilgentyala.github.io/aegis-integrity
Packaging release for the official MCP Registry. No detection behaviour changes.
Security hardening release. No detection behaviour changes.
Follow-up audit fixes from testing against real manuscripts, plus CI/security hardening. Second consecutive minor bump for behavioral fixes, not a patch:
Behavioral and security fixes from an independent audit -- not documentation-only, so this is a minor version bump rather than a patch:
All 2 files in this release have provenance metadata.
GNU Affero General Public License v3 or later (AGPLv3+) (AGPL-3.0-or-later)
academic integrity plagiarism detection AI content detection citation verification ghostwriting detection LLM watermark stylometrics essay mill self-plagiarism OpenAlex
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




