Unlocking PhD-Level Project Analysis: A Deep Dive into Our Latest LLM-Powered Workflow
We just shipped a monumental update, introducing a 7-step Deep Project Analysis workflow that leverages advanced LLM techniques for unparalleled project insights, alongside a suite of significant platform enhancements.
It's one of those moments in development where you hit "commit," push to main, and lean back with a profound sense of accomplishment. Today marked the completion of a major milestone: not only did we roll out a comprehensive, 7-step "Deep Project Analysis" workflow, but we also wrapped up a demanding 5-phase enhancement plan for the platform. Everything is typecheck clean, committed, and live. Let's unpack what went into this beast of an update.
The Quest for Deep Project Understanding
Our primary goal was ambitious: to build a "Deep Project Analysis" workflow capable of performing a PhD-level repository examination across 15 critical dimensions. Think of it as having an entire team of highly specialized consultants dissecting your codebase, documentation, and operational patterns, all powered by AI.
This new workflow is a meticulously crafted, 7-step journey designed to extract, analyze, synthesize, and report on every facet of a project, culminating in an actionable plan.
Inside the Deep Project Analysis Workflow: 7 Steps to Clarity
Each step in this workflow is a distinct phase, leveraging different LLM capabilities and strategies:
- Structural Reconnaissance (
dpaRecon): Using a cost-effective model likegoogle/Gemini Flash, this step performs a forensic scan of the repository. It maps out the file tree and inventories dependencies, providing the foundational context for deeper analysis. - Dimension Mapper (
dpaDimensionMap): Here, anotherGemini Flashinstance organizes our 15 analysis dimensions into self-contained briefs. This ensures that the subsequent deep analysis is focused and structured. - Deep Dimension Analysis (
dpaDeepAnalysis): This is where the magic truly happens. Leveraginganthropic/Sonnetfor its superior reasoning capabilities, this step "fans out" from the Dimension Map. Each of the 15 dimensions is analyzed individually, following a rigorous methodology: evidence gathering, pattern recognition, gap analysis, risk assessment, and detailed recommendations. - Cross-Dimensional Synthesis (
dpaSynthesis): With the individual dimension analyses complete, aSonnetmodel then takes over to synthesize these findings. It detects convergence points, resolves contradictions, identifies cascading risks, and uncovers overarching trends using the project's historical memory and accumulated wisdom. - Expert Panel Review (
dpaExpertReview): This crucial review step is designed for human-in-the-loop validation, but it's also where ourcomparePersonasfeature shines. We can pit different AI personas (like our new PhD-level IT documentation expert, Sage Emmerich) against each other to debate and validate the accuracy, coverage, prioritization, and actionability of the findings. - Project Memory Report (
dpaReport): The culmination of the analysis, this comprehensive report (generated bySonnet, capable of handling up to 16k tokens) provides a project identity card, health scores for each dimension, prioritized findings (P0/P1/P2), identified architectural patterns, a tech debt register, a risk register, and a deployment readiness checklist. - Action Plan (
dpaActionPlan): Finally, we generate a sprint-organized action plan (also bySonnet, up to 12k tokens) complete with exact file paths, implementation steps, and validation criteria. This transforms insights directly into executable tasks.
This entire workflow is now available as a built-in template, ready to bring unprecedented clarity to any project.
Beyond Deep Analysis: The 5-Phase Enhancement Plan
Alongside the Deep Project Analysis, we also shipped a significant 5-phase enhancement plan, refining various aspects of the platform:
- Enhanced Reporting: Our
report-generator.tsnow includes a detailed footer with duration, token usage, cost, energy consumption, and model details, offering full transparency into workflow execution. - Robust Admin Controls: We've upgraded admin API keys with fallback providers and integrated a comprehensive model catalog into the admin page, giving users more control and visibility.
- Workflow Bundle Export: Users can now export entire workflow bundles as
jszipZIP files or individual Markdown downloads, complete with Mermaid charts, making sharing and archiving a breeze. - Project Overview Health: The new project overview provides instant health checks, a stats bar, and editable settings fields, offering a quick pulse on project status.
- Intelligent Notes Enrichment: Our
note-enrichment.tspipeline now injects LLM-derived wisdom and actionable points directly into project notes, transforming passive observations into dynamic insights. - Expert Teams & Personas: We've introduced
PersonaTeamandPersonaTeamMembermodels, along with aTeamPickercomponent, allowing users to define and leverage specialized AI teams within workflows. This includes our newly mintedSage Emmerichpersona, a PhD-level IT documentation expert. - G-Eval Quality Scoring: A non-blocking, 4-dimension LLM-as-Judge system (
quality-scorer.ts) now provides automated quality scoring for generated outputs. - Automated Quality Gates: Post-step hooks in
quality-gates.tsnow enforce automated checks for security, documentation, and other critical aspects, ensuring higher quality outputs by default.
The Brains Behind the Operation: Applied LLM Research
This massive undertaking wasn't just about coding features; it was about applying cutting-edge LLM research findings directly into our product:
- Chain-of-Thought Prompting: We've seen 13-16% improvements in code analysis accuracy by structuring prompts to encourage step-by-step reasoning.
- Prompt Sweet Spot: Our prompt designs are optimized for the 150-300 word instruction range, maximizing LLM performance.
- Fan-out & Self-Consistency: The Deep Dimension Analysis leverages a sequential fan-out for detailed per-dimension analysis, while
generateCountproduces multiple outputs for self-consistency, leading to more reliable findings. - Hierarchical Summarization: This technique helps prevent the "lost in the middle" problem common with long contexts, ensuring key details aren't overlooked.
- Tiered Model Strategy: We strategically employ
google/Gemini Flashfor quick, cost-effective reconnaissance and scanning, reservinganthropic/Sonnetfor deep analysis and high-quality generation where nuanced understanding is paramount. comparePersonas: Fully implemented, this feature allows us to generate and compare multiple persona alternatives against a baseline, enriching review steps like our Expert Panel Review.
Lessons Learned: The Zsh Globbing Gotcha
No development sprint is without its quirks. One particular moment of head-scratching came from a seemingly innocuous git add command.
The Challenge: When trying to git add files with parentheses or brackets in their paths (common in Next.js's app router, e.g., src/app/(dashboard)/...), zsh would throw a no matches found error.
The Solution: This is a zsh-specific issue where parentheses and brackets are treated as glob characters. The workaround is simple but crucial: always use single quotes around paths containing these characters: git add 'src/app/(dashboard)/...'. A quick reminder that shell nuances can sometimes be the trickiest part of a commit!
What's Next? Validating the Power
With the code pushed and the database schema updated, our immediate next steps involve rigorous manual testing:
- Creating a new workflow using the "Deep Project Analysis" template, linking a GitHub repo, and verifying all 7 steps execute correctly.
- Confirming that the fan-out in "Deep Dimension Analysis" correctly splits and processes all 15 dimensions.
- Testing the
comparePersonasdebate on the "Expert Panel Review" step with Sage Emmerich and other personas. - Ensuring the final "Project Memory Report" is structured, complete, and insightful.
We're incredibly excited about the potential of these new capabilities to transform how projects are understood, managed, and improved. This is a huge leap forward in bringing sophisticated, AI-driven project intelligence directly into the hands of developers and project managers.