The Editorial Agent is a local-first AI assistant that watches a folder, reads incoming .pdf and .docx documents, intelligently chunks them, reviews each part using GPT-4o, and generates a detailed editorial feedback report — all fully automated.
- Designed for teachers, authors, curriculum designers, and editors
- Helps polish drafts, books, lesson plans, or study material
- Offers structured, human-grade editorial feedback
- No manual uploading — just drop a file and let the agent do the work
input_documents/ → 🔍 chunked and reviewed → output_reports/
↓
logs/editor_logbook.csv
editor_agent.py– Orchestrates the full floweditor_chunker.py– Breaks long documents into smart chunkseditor_reviewer.py– Sends each chunk to OpenAI with a powerful editorial prompteditor_report_writer.py– Compiles a polished Word doc with feedback
git clone https://github.com/yourusername/editorial-agent.git
cd editorial-agentpip install -r requirements.txtCreate a .env file:
OPENAI_API_KEY=sk-...your-key-here...python scripts/editor_agent.pyDrop files into input_documents/ and watch them get processed. Reports are saved to output_reports/.
See sample_output/report_example.docx
- Reviewing K-12 textbooks
- Improving instructional design for teachers
- Editing fiction or non-fiction drafts
- Flagging clarity or grammar issues in training content
- Export to PDF
- Live web interface
- Team dashboard for tracked feedback
- Built-in style guides
MIT — use it, build on it, share it.
This project was built step-by-step using AI. See agent_building_guide.md for how to create your own AI agent from scratch.
Let the agent edit while you create.