Low-Cost LLMs and Multi-Agents: Building a Personal Annual Content Review Tool

    Annual platform reports often lack personal insight, relying on generic statistics and word clouds. This article explores how to build a personalized annual content review tool using low-cost, long-context LLMs and multi-agent systems. It covers the local data pipeline architecture, an Agent-driven development workflow, a layered prompt strategy for deep text analysis, and key engineering practices to maintain minimal costs while generating evidence-based narrative reports.

    Why Redesign the “Annual Review”?

    In recent years, annual reports from major platforms have largely followed the same formula: counting published posts, generating word clouds, highlighting high-frequency tags, and applying fixed templates to produce nearly identical commentary for everyone. While these reports look flashy, they fail to answer a few genuinely valuable questions:

    • How has my way of thinking changed this year? Which of my previous views have I overturned?
    • Which topics have I invested the most in, and has the quality of my output improved over time?
    • What pitfalls have I fallen into, and which ones did I stumble into again later?

    The answers to these questions can only emerge from reading every piece of original text, every shift in perspective, and every repeatedly discussed issue. To achieve this, the model must read the full text, not just statistical summaries.

    Meanwhile, the industry landscape has shifted: inference costs have dropped to near negligible levels, and long-context semantic understanding capabilities are sufficiently robust. Analytical tools that once required a team and a dedicated project can now be built by a single person in their spare time using AI coding tools and agent orchestration frameworks. Rather than waiting for platforms to deliver better summaries, it is better to build one yourself.

    Overall Solution: A Reusable Local Analysis Pipeline

    The core philosophy of this tool is “data localization + model-based analysis + report generation.” The overall architecture can be abstracted into four layers:

    1. Data Collection Layer: Uses the native content export capabilities of content platform APIs to pull public answers, articles, and other text data. This includes handling authentication, pagination, rate limits, and resumable execution.
    2. Storage Layer: All raw content, intermediate analysis results, and final reports are stored locally in a SQLite database, without relying on any external services.
    3. Analysis Layer: Executes staged analysis using low-cost, long-context models—first extracting insights piece by piece, then aggregating across pieces, and finally generating a narrative review.
    4. Presentation Layer: A local web interface supports filtering by time range and topic dimensions, and visualizes key conclusions.

    A few important design constraints should be defined before starting:

    • Zero Hard Third-Party Dependencies: Ensure that anyone can run it out of the box without a complex deployment chain.
    • Credential Security: API credentials are stored in the OS keychain/credential manager and are never left in plaintext configuration files.
    • Data Stays Local: Only text analysis requests are sent to the model service; raw content and reports always remain on the local machine.

    Development Method: Feeding Docs to Agents and Iterating in Six Rounds

    The most reusable experience from this project is the “Human + Agent” development organization method. The entire process is divided into four steps:

    Step 1: Interface Alignment. Feed the open platform API documentation directly to the Agent. Let it align authentication methods, pagination parameters, rate limit rules, and failure retry logic on its own, and generate a resumable fetching script. The human’s responsibility is to verify boundary conditions rather than writing code line by line.

    Step 2: Planning First. Use planning instructions to have the Agent output the tool architecture, UI interactions, and product boundaries, clearly defining what features to build and what to skip, forming an actionable to-do list.

    Step 3: Multi-Agent Parallelism. Launch multi-agent collaboration via goal instructions: four tracks advance in parallel—frontend UI, backend scheduling queue, unit test regression, and Prompt architecture. Each agent works around the same task list, with humans only intervening at key decision points.

    Step 4: Fast Convergence. Each iteration takes a “runnable deliverable” as the acceptance criteria: run the fetcher → run the analysis → run the report → polish interactions → complete tests → handle edge cases. In about six iterations, the product went from an idea to a smooth, usable tool.

    The schematic fetching and database insertion logic is as follows (pseudocode, specific interfaces omitted):

    1. def sync_all_content(exporter, db):
    2. cursor = db.get_sync_cursor() # Breakpoint cursor
    3. for batch in exporter.fetch_batches(after=cursor):
    4. for item in batch:
    5. db.upsert_content(
    6. item.id, item.type, item.created_at,
    7. item.title, item.plain_text, item.url
    8. )
    9. db.save_sync_cursor(batch.next_cursor)
    10. respect_rate_limit() # Sleep according to doc limits
    11. def analyze_piece(model, db, piece_id):
    12. text = db.get_plain_text(piece_id)
    13. result = model.complete(PROMPT_PER_PIECE, text)
    14. db.save_piece_summary(piece_id, result)
    15. def build_report(model, db, year):
    16. summaries = db.get_piece_summaries(year)
    17. return model.complete(PROMPT_AGGREGATE, summaries)

    Prompt Architecture: Making the Report Grow from Your Own Words

    The key to analysis quality does not lie in how fancy a single Prompt is written, but in layering:

    • Per-Piece Layer: For each piece of content, extract core viewpoints, sentiment, discussion targets, and whether there is a revision of views, while preserving locatable quote fragments from the original text.
    • Aggregation Layer: Cross-reference statistics on topic evolution, recurring pitfalls, and changes in viewpoints over time to identify the trajectory of “shifting from stance A to stance B.”
    • Narrative Layer: Convert structured conclusions into a first-person review, requiring every assertion to be accompanied by evidence from the original text, eliminating empty platitudes.
    • Self-Check Layer: Have the model perform consistency checks on the report, removing unsupported judgments.

    This layered design also offers an engineering benefit: intermediate results are cacheable. The full text only needs to be read once at the per-piece layer; subsequent report iterations do not require rerunning expensive upstream steps.

    Engineering Details and Pitfalls Checklist

    • Pagination and Limits: Ensure idempotent writes are implemented (using content ID as the primary key for upsert), otherwise resumable execution will cause duplicate data.
    • Rich Text to Plain Text: Exported content often contains Markdown/HTML. Clean it uniformly before storing it in the database to prevent noise from interfering with the analysis layer.
    • Long Text Splitting: When a single piece is too long, split it by semantic paragraphs and maintain the relationship, merging them again during aggregation.
    • Cost Control: Use low-cost models for per-piece analysis; only use stronger models for the final narrative polishing phase, keeping overall costs extremely low.
    • Regression Testing: Write minimal unit tests for parsers, cursor progression, and report templates to prevent an Agent modification in one area from breaking another.

    The Bigger Takeaway: Redefining Workflows

    The scale of this project itself is not large, but it validates a more important judgment: when models are cheap enough, context is long enough, and Agent orchestration is smooth enough, “One person + a group of Agents” can handle the workload of what used to require a small team. Humans no longer write code line by line, but shift to defining problems, setting boundaries, and reviewing deliverables; Agents handle spreading out parallel tasks.

    If you also have a pile of small analytical tools that you’ve “always wanted to build but never had time for”—content reviews, reading note clustering, ticket root cause analysis, log summaries—try this paradigm: feed docs to Agents, plan first, run multi-agents in parallel, and converge within six iterations. The real payoff isn’t just the tool itself, but experiencing firsthand how much efficiency can improve once your workflow is restructured.