Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By andrewr303v0.1.0AGPL-3.0-onlyIn 1 marketplace
A local-first document intelligence engine combining Java PDF processing, Python evidence packets and validation, and Codex judgment for structured, source-grounded extraction.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
documents, pdf, rag, structured-extraction, grounding, books, java, opendataloader ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Doc Expert is a local-first Codex plugin for processing PDFs into evidence-grounded structured JSON, portable RAG corpora, and book knowledge packs. It uses the bundled OpenDataLoader Java engine for PDF layout work, Python for deterministic evidence preparation and validation, and the active Codex session for the only LLM judgment step.
No separate model API key is required, accepted, or used as a fallback.
This repository is the plugin root. The two imported source folders remain included:
opendataloader-pdf/: executed PDF engine and bundled Java CLI JAR.unstract/: design evidence for schema-guided extraction, retry classification, and strict validation boundaries. Its cloud-only agentic executor is not present in the OSS repository and is not claimed or imported at runtime.The plugin-owned runtime is under doc_expert/; the Codex entrypoint is the single umbrella skill at skills/doc-expert/SKILL.md; .mcp.json starts the dependency-free stdio backend.
PDF bytes
-> OpenDataLoader Java: ordered layout, headings, tables, pages, boxes
-> Doc Expert Python: normalized document, hashes, evidence packets
-> active Codex session: interpretation or schema-guided candidate JSON
-> Doc Expert Python: schema, page, element, quote, and provenance validation
-> accepted artifact or exact bounded repair packet
Python does not invoke Codex as a subprocess. The MCP tools pause at the model judgment boundary, return inspectable evidence paths, and let this Codex session author the candidate. That makes a run resumable in another session without pretending session context is durable memory.
PATH.opendataloader-pdf/opendataloader_pdf/jar/opendataloader-pdf-cli.jar.The default runtime has no third-party Python dependency and performs no network request.
Check readiness without writing files:
python -m doc_expert doctor
Optional explicit project initialization writes only <project>/.doc-expert/config.json:
python -m doc_expert init C:\path\to\project
Initialization creates an auditable template; version 1 deliberately does not auto-load it as hidden state. Pass the output root and non-default options to each command or MCP call so the configuration remains part of the deterministic run identity.
The plugin exposes these tools under the doc-expert server:
| Tool | Deterministic responsibility |
|---|---|
doc-expert:doctor | Read-only runtime readiness |
doc-expert:prepare_document | Java PDF conversion and normalization |
doc-expert:build_rag_corpus | Traceable packet/chunk JSONL for an existing run |
doc-expert:prepare_book | Book packets, source map, and knowledge schema |
doc-expert:prepare_extraction | PDF, packets, schema, and active-session request |
doc-expert:validate_extraction | Schema and source-provenance validation |
doc-expert:inspect_run | Manifest, validation state, warnings, and artifact inventory |
All MCP filesystem arguments must be absolute paths. Tools that create a run require an explicit absolute output_root; the server never interprets workspace-relative paths against the installed plugin directory.
For structured extraction, Codex follows this handshake:
doc-expert:prepare_extraction with the PDF path, output root, JSON Schema, and instruction.extraction/request.json, extraction/schema.json, and bounded evidence/packets.jsonl.extraction/candidate.json.doc-expert:validate_extraction.extraction/repair-packet.json, validate again, and stop after three failed model repairs.doc-expert:inspect_run and hand off the accepted candidate and validation receipt.The candidate envelope is:
{
"contract_version": "1.0",
"run_id": "source-hash-purpose-config",
"data": {},
"provenance": [
{
"pointer": "/field",
"basis": "explicit",
"confidence": 0.95,
"evidence": [
{
"element_id": "e000001",
"page": 1,
"quote": "exact source excerpt"
}
]
}
],
"warnings": []
}
Every data leaf requires a provenance record. basis is explicit, inferred, or not_found; not_found requires a null value and no evidence. Validation checks known element IDs, matching 1-indexed pages, source-contained quotes after whitespace normalization, confidence bounds, and the supported JSON Schema subset.
Normalize a PDF with local Java:
python -m doc_expert prepare-pdf C:\docs\report.pdf --output-root C:\work\doc-runs
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub andrewr303/claude-codex-plugin-lab --plugin doc-expertPlugins from other owners that cover similar ground