# Search Your Documents with Checked Citations

> Ask your agent questions about your own files. A private local index finds passages by keyword and by meaning, and every quote in the answer is checked against its passage; anything that isn't there is marked unverified.

Search Your Documents with Checked Citations is a paid AI agent skill on Agensi by Iustin Prodan, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Iustin Prodan](https://www.agensi.io/creators/iustin-prodan)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.1.2
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/search-your-documents-with-checked-citations
- Tags: research-analysis, productivity

## What it does

- Indexes PDF, Word, Markdown, and text files into a private search list
- Finds information by matching exact words or the general meaning of your question
- Verifies every quote against the original file to ensure no details are made up
- Marks any claim as unverified if the quote or numbers do not match the document exactly
- Works across different languages including English and Romanian

## Who it's for

- **Students with heaps of lecture notes and textbooks:** Find exactly where a concept was explained across all your study materials. Try: "Find where my lecture notes explain TCP congestion control."
- **Small business owners with team handbooks and policies:** Get instant answers to staff questions based strictly on your company rules. Try: "What does our team handbook say about expenses and approvals?"
- **Freelancers managing multiple client reports and docs:** Search through different projects to find specific dates, budgets, or cause of errors. Try: "Which of my documents mention the 2026 budget, and what do they say?"

## About this skill

Second Brain gives your agent a private, searchable memory of your own files. It catches every citation that doesn't hold up before you rely on the answer.

**How it works.** Second Brain is an open-source tool that runs on your computer.
- It indexes PDF, DOCX, Markdown, text and HTML files into one local SQLite file, and splits them on their headings, so each passage keeps its context.
- Every question runs two searches and merges them:
  - **keyword search (BM25)** finds exact words: names, error codes, "Art. 1350";
  - **meaning search** (a local multilingual embedding model) finds passages that say the same thing in other words.
- Your agent reads the passages and writes the answer. Each claim carries a marker and a quote copied from a passage.
- **`check` holds every quote to the passage it names.** A citation to a passage that doesn't exist, or a quote that isn't in its passage, is dropped. Its claim is marked `[unverified]`, and the confidence is lowered.

**Tested** on three sample documents (lecture notes, a team handbook, an incident postmortem):
- "How much can I spend without asking anyone first?" found the expenses rule first, though the passage says "approval", not "asking".
- An answer with five citations, two of them wrong on purpose (60 days where the handbook says 90, and 1,000 EUR where it says 500), came back with the three right ones kept and both wrong claims marked `[unverified]`.
- A question in Romanian found the English passage it asked about.

**Numbers are held to the letter.** Every number in a quote must be in the passage exactly as written, so "a 30-second timeout" is caught when the postmortem says 5 seconds.

**Setup.** Second Brain is open source under the MIT license, on GitHub as YUStulinu/SecondBrain. It needs Node 22. The local embedding model is a one-time 120 MB download. No API key is needed, and your files never leave your computer.

## Requires

- Second Brain (YUStulinu/SecondBrain)
- Node.js 22+
- PDF, DOCX, Markdown or text files
- Optional: A 120 MB embedding model (one-time download)

For search by meaning only: the local embedding model (multilingual-e5-small, 120 MB), downloaded once with npm run setup:local. Without it, search runs on keywords only. Scanned PDFs need OCR first.

## Known limitations

Needs Second Brain installed; the skill does not install it. The check proves each quote and its numbers are in the passage; it does not judge whether a claim says the same as its quote. No OCR for scanned PDFs. A passage found only by meaning can rank lower after the merge, so the agent reads all eight results.

## Technical details

This skill requires the Second Brain open-source tool (Node.js) running locally. It uses SQLite for storage and a local 120MB multilingual embedding model for semantic search. It performs hybrid search combining BM25 and vector embeddings. The skill follows a strict flow: add, search, write JSON with markers, and run a check command to validate quotes character-for-character before displaying the final result.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Search Your Documents with Checked Citations skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which files can it search?

PDF, DOCX, Markdown, text and HTML. Point it at a folder: notes, manuals, papers, handbooks, a project's docs. Scanned PDFs need OCR first.

### How is it different from my agent just reading the files?

It indexes everything once and finds the right passages fast, by exact words and by meaning, even across languages. Then every quote in the answer is checked against its passage, so a wrong citation or a changed number is flagged instead of trusted.

### Do my files leave my computer?

The index and the embedding model stay on your computer, and no API key is needed. The passages your agent reads to answer go to the model your agent runs on.

### What happens to a claim that can't be verified?

Its quote is dropped, the claim is marked [unverified] and the answer's confidence is lowered, so you see what isn't backed by your documents.

### Does it work in other languages?

Yes. The embedding model is multilingual: a question in Romanian found the English passage it asked about in testing.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
