ASHAR RAI MUJEEB

PDF Proofreader

A CrewAI workflow for proofreading and styling long documents.

PDF Proofreader preview

Project presentation

Notes from the original project deck, kept with the decisions and trade-offs.

01 CREWAI EDITOR
2024 • AI AGENTS

CREWAI EDITOR

Orchestrating a digital newsroom of expert agents to proofread at scale.

CrewAI Python Multi-Agent Systems Automation
Use arrow keys or buttons below to navigate
02 The Cost of Complexity
PART I: THE PROBLEM 02 / 09

The Cost of Complexity

This wasn't a startup idea; it was a tuition fee. I built this to understand the "Hidden Taxes" of agentic workflows: latency, token costs, and orchestration fragility.

Orchestration Hell

Getting three LLMs to agree on a diff is harder than managing three human interns.

Token Burn

Learning CrewAI revealed how quickly context windows fill up when agents "talk" to each other.

03 Digital Newsroom
PART II: THE SOLUTION 03 / 09

Digital Newsroom

Elevator Pitch:
A CLI-based multi-agent system where specialized AI personas (Grammarian, Stylist, Fact-Checker) critique documents in parallel.

Approach Pros Cons Verdict
Single LLM (ChatGPT) Cheap & Fast. Lacks nuance; prioritizes speed over rigor. Baseline
Human Editor High Agency. Expensive ($50/hr); Slow turnover. Too Slow
Agent Crew Multi-perspective critique. High Token Cost. Selected
Specialized Agents
  • The Grammarian: Validates syntax.
  • The Stylist: Enforces brand voice.
  • The Manager: Compiles final diffs.
04 CrewAI Framework
PART III: TECHNOLOGY 04 / 09

CrewAI Framework

Defining "Personas" to constrain LLM behavior.

  • Role: Defines the agent's expertise.
  • Goal: The specific outcome (e.g., "Find 5 errors").
  • Backstory: Prompt context to enforce persona (e.g., "You hate passive voice").
editor = Agent(
  role='Senior Editor',
  goal='Fix tone inconsistencies',
  backstory="""You are a veteran editor at wired.com.
  You prefer punchy, active sentences.""",
  verbose=True,
  allow_delegation=True
)

task = Task(
  description=f"Critique this section: {text_chunk}",
  agent=editor
)
05 The Hallucination Loop
PART IV: LEARNINGS 05 / 09

The Hallucination Loop

Agent Conflict
"Without a strict Manager agent, the 'Stylist' would rewrite a sentence to be punchy, and the 'Grammarian' would rewrite it back to be formal, creating an infinite loop."

Solution: Implementing a hierarchical process where agents submit proposals, but only the Manager agent has write access to the final document.

06 The "Lesson"
PART V: RESULTS 06 / 09

The "Lesson"

Time Saved

~80%

Reduction in "first pass" editing time.

Token Cost

HIGH

Taught me the value of frugal prompting.

Outcome

Learned

Deep dive into CrewAI architecture.

07 Terminal Demo
PART VI: VISUALS 07 / 09

Terminal Demo

📟

(CLI Output Visualization)

08 Stack Details
APPENDIX 08 / 09

Stack Details

Framework

CrewAI

Agent orchestration & task delegation.

LLM

GPT-4o

High reasoning capability for nuance.

Input

PyPDF2

Text extraction and chunking.

09 STATUS: ARCHIVED

STATUS: ARCHIVED

A successful experiment in multi-agent workflows.

Back to Playground
© 2024 Ashar Rai Mujeeb
PREFERENCES

Appearance & sharing

Accent

SHARE THIS PORTFOLIO

KEYBOARD

Get around quickly.

Contact
Z C
Change theme
Z N
Random accent
Z X
Download CV
C V
Report a problem
Z R
This menu
/
Close dialog
Esc