How satnamsingh1835/acadmic-writing-tool-sasta works
This repository combines a researcher-controlled literature-synthesis agent with ScholarFlow, an academic-writing editor and research library. The synthesis workflow turns documents into page-aware source records, then produces comparative outputs and validates claims; optional model synthesis is provenance-constrained. The editor accepts passages through the API, runs deterministic review, and can optionally request model rewriting with safeguards. The README also documents audits, research questions, and library features. Relationships for unsampled workflow and library internals are shown only where documented; source excerpts are partial.
Main entry points: api.py Web API · cli.py Research CLI · synthesis.py Synthesis engine · store.py Research store
Components 30
Research synthesis
- Research CLI
agent/cli.py - Source parsing
agent/parsing.py - Record extraction
agent/extractor.py - Source records
agent/models.py - Synthesis engine
agent/synthesis.py - Literature matrix
agent/synthesis.py - Concept map
workflows/concept_map.py - Debate map
workflows/debate_map.py - Historical synthesis
workflows/historical_synthesis.py - Gap analysis
workflows/gap_analysis.py - Research questions
workflows/research_questions.py - Citation and argument audits
workflows - Output validation
agent/validation.py - Model synthesis
agent/llm.py
Academic editor
- Web API
api.py - Editor service
editor_service.py - Academic review
academic_engine.py - Writing diagnostics
literature_review.py - Sentence suggestions
academic_suggestions.py - Revision receipts
revision_receipt.py - Browser editor
web/app.js
Research library
- Library interface
web/library.js - Research store
research_library/store.py - Literature discovery
research_library/discovery.py - Document access
research_library/documents.py - Metadata import
research_library/importers.py - Zotero integration
research_library/zotero.py
Shared services
- LLM provider
llm_tools.py
Other components
- Researcher
- External model service
Connections 35
- Researcher → Research CLI: runs workflows
- Research CLI → Source parsing: reads sources
agent/cli.py - Source parsing → Record extraction: provides text
agent/extractor.py - Record extraction → Source records: builds records
agent/extractor.py - Research CLI → Synthesis engine: runs analyses
agent/cli.py - Synthesis engine → Literature matrix: creates matrix
agent/synthesis.py - Synthesis engine → Concept map: creates map
- Synthesis engine → Debate map: creates map
- Synthesis engine → Historical synthesis: creates synthesis
- Synthesis engine → Gap analysis: analyzes gaps
- Research CLI → Research questions: runs workflow
- Research CLI → Citation and argument audits: runs audits
workflows/_runner.py - Research CLI → Model synthesis: requests synthesis
agent/cli.py - Model synthesis → LLM provider: gets provider
agent/llm.py - LLM provider → External model service: sends prompt
llm_tools.py - Model synthesis → Output validation: validates result
agent/pipeline.py - Researcher → Browser editor: edits passage
- Browser editor → Web API: sends requests
- Web API → Editor service: routes editing
api.py - Editor service → Academic review: runs local review
editor_service.py - Academic review → Writing diagnostics: analyzes prose
academic_engine.py - Academic review → Sentence suggestions: gets suggestions
academic_engine.py - Editor service → LLM provider: optionally requests rewrite
editor_service.py - Editor service → Revision receipts: builds receipt
editor_service.py - Browser editor → Library interface: opens library
- Web API → Research store: uses persistence
api.py - Web API → Literature discovery: uses discovery
api.py - Web API → Document access: uses documents
api.py - Web API → Metadata import: uses importers
api.py - Web API → Zotero integration: uses integration
api.py - Literature discovery → Research store: queries records
research_library/discovery.py - Document access → Research store: reads records
research_library/documents.py - Metadata import → Research store: imports records
research_library/importers.py - Zotero integration → Metadata import: uses importer
research_library/zotero.py - Zotero integration → Research store: uses persistence
research_library/zotero.py