The local AI agent ecosystem just got a serious upgrade with the release of Shandu 4.0, a deep research tool that refuses to hallucinate citations. Unlike typical RAG wrappers that dump snippets into a single prompt, Shandu operates as a multi-stage pipeline that decomposes queries into 3-8 sub-questions and executes them in parallel across web and scholarly indexes. The standout feature is the post-write citation audit, where an auditor agent verifies every cited sentence against the actual extracted text, stripping out any unsupported markers before the report is finalized.
Architecture and Verification Pipeline
Shanduβs design prioritizes evidence over verbosity. The system splits planning, retrieval, verification, writing, and auditing into explicit stages backed by deterministic Python checks. Subagents scrape full pages and PDFs rather than relying on search snippets, classifying each source by credibility (peer-reviewed, official, vendor, etc.). If a quote cannot be found verbatim on the page, the claim is dropped in code. The research loop stops dynamically once coverage is strong or the budget cap is reached, preventing the padding of narrow factual queries with corporate filler.
Local Execution and Model Flexibility
Running locally on BlackGeorge, Shandu 4.0 supports any model via LiteLLM, including deepseek/deepseek-flash, anthropic/claude-sonnet-5.5, and openai/gpt-6.2-astra. Users can override specific rolesβsuch as pairing a cheap extractor with a stronger writerβto optimize costs. The tool offers both a terminal UI with live progress blocks and a web GUI at http://127.0.0.1:7860. All runs are persisted to ~/.shandu/storage/runs/, allowing users to inspect past evidence, resume failed iterations, or rewrite reports with different models without re-searching.
Key Takeaways
- Shandu 4.0 uses a multi-agent pipeline to break down complex queries into parallel sub-tasks.
- A dedicated CitationAuditor verifies every claim against source text, removing unsupported citations.
- The tool supports dynamic report lengths, adapting to evidence density rather than fixed templates.
- It integrates with LiteLLM, allowing flexible model selection and role-specific cost optimization.
- All data is stored locally, enabling run inspection, resumption, and report rewriting without new API costs.
The Bottom Line
For developers tired of LLMs confidently citing non-existent sources, Shandu 4.0 offers a necessary layer of deterministic rigor. It proves that local agents can handle complex, multi-step research workflows without sacrificing accuracy for speed. The MIT-licensed project represents a maturation of the local agent stack, moving beyond simple chat interfaces toward structured, verifiable knowledge synthesis.