imozuru Hands-on Tutorial: Let Claude Code Trace the Source Like Pulling Vines

You've surely encountered this awkward situation: you ask AI to research an unfamiliar technical field, it searches a few top secondary blogs and dumps a nice-looking summary back at youβ€”sounds plausible, but when you actually need to implement it, you find that key parameters and boundary conditions have been summarized away, and even the cited papers and conclusions don't match. Worse, before we understand the jargon and key figures of the field, search results always revolve around novice-level keywords.

imozuru (named after the Japanese γ€ŒθŠ‹γ₯る式」, meaning "pulling a sweet potato vine brings up a string of sweet potatoes," i.e., "follow the vine to find the melon") takes a completely different approach. It brings classic exploration methods from library information science into Claude Code and Codex CLI: during the research process, it absolutely refuses to summarize; instead, it first saves the true primary sources to disk, and after the evidence chain is closed, a script verifies every citation word-for-word and generates a layered report. Let's install it together and run a complete primary-source-level research workflow.

Project Introduction

Traditional AI deep search is prone to two pitfalls: first, jumping to conclusions before grasping the full picture of the field, which library information science scholar Kuhlthau (1991) calls "premature closure"; second, betting too early on one of multiple possible technical routes, causing subsequent searches to drift off course (the HypoSearch study by Zhou et al., 2026, also points out this common problem).

imozuru directly blocks these two loopholes through process design. Every time it receives an unfamiliar topic, it proceeds at a fixed pace:

  • First draw the field map, don't rush for answers: In round 0, it deploys 2 search sub-agents with different strategies in parallel (by default covering bilingual or different hypotheses), specifically to map out the field's unique terms, key figures, active media, and classic literature, aggregated into map.md.
  • Six-way vine-following, deep digging into primary sources: After obtaining the initial map, it tracks along references (backward), citation records (forward), other works by the same author, core media, and adjacent topics. Notably, chain.py directly connects to the OpenAlex public API, requiring no API Key to query academic citation chains; for practical fields without papers (like mixing, engineering practices), it follows blog interlinks and acknowledgments to trace original authors, tagging each source (paper, personal practice, observation, summary, official documentation).
  • Use evidence and saturation to decide when to stop: Borrowing the HALT stopping criterion, it stops searching only when all 3–6 core arguments are anchored to primary source locations, or when overlap between two rounds of independent exploration reaches 70% or more (saturation).
  • During research, only store originals; at drafting, mechanical verification: Fetched web pages, PDFs, and YouTube subtitles are stored verbatim in sources/, and map.md only records "which file, which line." After stopping, the model outputs excerpts (extracts.json) and a three-layer detailed explanation for different audience backgrounds (digest.json), then report.py and digest.py verify word-for-wordβ€”if there's any paraphrase or typo, the script refuses to generate HTML, preventing fabricated citations by design.
  • 2.0 Dashboard & Zero-Cost RSS Tracking: dashboard.py aggregates all research under ~/research into a searchable local page, supporting PWA and mobile access; watch.py directly subscribes to core blogs, tags, and arXiv RSS feeds discovered during research, so tracking new developments no longer consumes search quotas.

Core Dependencies & Environment

All Python scripts in imozuru depend only on Python 3.10+ standard library, so no complicated pip dependency tree; the host side only needs Claude Code or Codex CLI and normal internet access. The OpenAlex API used by chain.py has daily free quota without needing an API key.

If you want to successfully fetch PDFs, scanned documents, or YouTube subtitles, you can optionally install these tools:

Optional ToolPurposeFallback Behavior When Not Installed
pdftotext (poppler / Xpdf)Extract text from regular PDFsAutomatically falls back to pdfminer.six (install with python3 -m pip install --user pdfminer.six); if neither available, mark as FAIL
pdftoppm + tesseractOCR for scanned PDFs without text layerCannot recognize; mark PDF as FAIL
tesseract language packs (jpn / jpn_vert / chi_sim)Recognize Japanese horizontal/vertical or Chinese scansOnly recognizes English; mark as FAIL if confidence too low
yt-dlpDownload YouTube video subtitles (does not store video files)Mark video source as FAIL
axConvert HTML to Markdown preserving headings and tablesFalls back to standard library plain text extraction

Before starting, there's a realistic cost issue to plan for. You'll find imozuru is not a lightweight "ask-and-answer" scriptβ€”it launches 2 Web search sub-agents in parallel in round 0 and each round of tracking, undergoes multiple rounds of mapping and source verification, then reads multiple primary sources to generate Lv1–Lv3 detailed reports with per-sentence citations, so token consumption for a single complete research is significantly higher than daily Q&A. If you plan to use it long-term for technical research or literature review, consider connecting your model API to Defapi in the host client. Defapi's call price is half of the official price and is compatible with v1/messages, v1/chat/completions, and v1beta/models/ protocols: Claude Code directly uses v1/messages (configure ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN), Codex CLI uses v1/chat/completions, and switching takes minutes. Note that imozuru's Python scripts don't include any LLM API configuration; model integration is entirely in your host client.

Project Structure Tree

After cloning the repo, the core directories are clean, mainly divided into plugin metadata, skill instructions, and pure standard-library scripts:

imozuru/
β”œβ”€β”€ .claude-plugin/
β”‚   β”œβ”€β”€ marketplace.json       # Claude Code plugin marketplace manifest
β”‚   └── plugin.json            # Plugin metadata (v2.3.3)
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ figures/               # Workflow diagrams (Japanese/English)
β”‚   └── screenshots/           # 2.0 dashboard screenshots
β”œβ”€β”€ examples/
β”‚   └── demo/                  # Built-in example outputs, can be used to test local scripts
β”‚       β”œβ”€β”€ extracts.json
β”‚       β”œβ”€β”€ report.html
β”‚       └── sources/
β”œβ”€β”€ skills/
β”‚   └── imozuru/
β”‚       β”œβ”€β”€ SKILL.md           # Core research workflow instructions
β”‚       β”œβ”€β”€ references/        # Theory sources, tool specs, multilingual and monitoring docs
β”‚       └── scripts/           # Python 3.10+ standard library scripts
β”‚           β”œβ”€β”€ chain.py       # OpenAlex reference/citation/author tracking
β”‚           β”œβ”€β”€ dashboard.py   # Research history dashboard generation and hosting
β”‚           β”œβ”€β”€ digest.py      # Three-layer detailed report generation and citation verification
β”‚           β”œβ”€β”€ fetch.py       # Source fetching, conversion, and SSRF protection
β”‚           β”œβ”€β”€ ingest.py      # Compliant import of local restricted materials
β”‚           β”œβ”€β”€ report.py      # Word-for-word verified excerpt page generation
β”‚           └── watch.py       # RSS / Atom incremental monitoring
└── tests/                     # 13 automated test files

After each research, outputs are archived under ~/research/<topic>/:

~/research/<topic>/
β”œβ”€β”€ map.md              # Domain awareness map: arguments, terms, people, media, and source line numbers
β”œβ”€β”€ log.md              # Each round's search records, sub-agent status, and decision rationale
β”œβ”€β”€ sources/            # Original files (PDF/.txt, HTML/.md, video subtitles), no summaries
β”œβ”€β”€ extracts.json       # Source excerpts split by argument
β”œβ”€β”€ report.html         # Excerpt page after passing mechanical word-for-word verification
β”œβ”€β”€ queries.jsonl       # Complete record of all search terms and hits (including empty results)
β”œβ”€β”€ fetch-log.jsonl     # Fetch status and fallback path log for each URL
β”œβ”€β”€ digest.json         # Structured data for three-layer explanations
└── digest.html         # Final detailed report (Lv1–Lv3 explanations + complete search log)

Step-by-Step Guide

Let's install imozuru and run the full workflow step by step.

1. Install imozuru

Choose one installation method based on your client:

Method A: Claude Code Plugin Marketplace (recommended, supports future updates)

In the Claude Code dialog, enter sequentially:

/plugin marketplace add MaryCache/imozuru
/plugin install imozuru@imozuru

To update, run claude plugin marketplace update imozuru, or enable auto-update in the /plugin interface. You can also use Vercel's skills CLI to install in one command, or manually copy skills/imozuru/ to ~/.claude/skills/imozuru/:

npx skills add MaryCache/imozuru

Method B: Codex CLI (symbolic link for easy git pull updates)

On macOS / Linux, clone and symlink to ~/.agents/skills/imozuru (or to a single repo's .agents/skills/imozuru/ for repo-scoped use):

git clone https://github.com/MaryCache/imozuru ~/src/imozuru
mkdir -p ~/.agents/skills && ln -s ~/src/imozuru/skills/imozuru ~/.agents/skills/imozuru

Windows (PowerShell) users can use directory junctions (no admin rights needed), replacing <cloneθ·―εΎ„> with your actual absolute path:

New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.agents\skills"
New-Item -ItemType Junction -Path "$env:USERPROFILE\.agents\skills\imozuru" -Target "<cloneθ·―εΎ„>\skills\imozuru"

2. Verify Local Python Scripts with the Built-in Demo

Before running a real research, let's enter the cloned repo directory and use the included examples/demo/ to verify the script pipeline works:

cd ~/src/imozuru
python3 skills/imozuru/scripts/report.py examples/demo

If the command exits normally and updates examples/demo/report.html, your Python 3.10+ environment and word-for-word verification scripts are ready. Open this HTML file in a browser to preview the excerpt page layout.

3. Launch the First "Vine-Following" Research

Now let's have it dig into an unfamiliar technical topic. In Claude Code, use natural language to describe the research need, for example:

Please use imozuru to trace the source and research: Gaussian Splatting's core principles, key paper lineage, and engineering implementation bottlenecks

In Codex CLI interactive mode, replace the /imozuru with $imozuru prefix:

$imozuru Vine-following research: Evolution and key debates in React state management solutions

If you want to run a full research round unattended in the background, use codex exec headless mode. Note that you must enable search permissions and script external fetch permissions (if running outside a Git directory, add --skip-git-repo-check after exec):

codex --search exec -s workspace-write -c sandbox_workspace_write.network_access=true '$imozuru Vine-following research: React state management. Save directory to ./research/react'

4. Read the Source Excerpt Page and Three-Layer Detailed Report

Once the research reaches stopping conditions, open ~/research/<topic>/ and review in this recommended order:

  1. First look at map.md: quickly establish the field's global coordinate system (core terms, key figures, information hubs, and the source line numbers for each argument).
  2. Then open digest.html: this is the highlight of version 2.0, divided into "Layered Explanation" and "Complete Search Log." Explanations are split into three levels by reader backgroundβ€”Lv1 explains what happened to zero-background readers, Lv2 explains underlying mechanisms to developers in adjacent fields, Lv3 explains common corrections and unresolved debates to senior practitionersβ€”and every sentence is followed by a mechanically verified source citation.
  3. When you need to verify details, directly open report.html (source excerpts split by argument) or browse sources/ for full primary documents.

5. Generate Research Dashboard and View on Mobile

Once you have many research topics, use dashboard.py to aggregate the entire ~/research directory into an overview site with a search box (supports searching by title, question, term, person, media):

python3 skills/imozuru/scripts/dashboard.py ~/research

The command generates ~/research/index.html, where the homepage directly shows each topic's stopping reason, source distribution, and number of tracking rounds. Click into any topic to view the detailed report and excerpt page within the same page, plus a one-click PDF export at the bottom-left.

To browse research notes on your phone during commutes, set a 16+ character access password, start local listening, and forward via Tailscale:

IMOZURU_SERVE_TOKEN=your-strong-passphrase-16plus python3 skills/imozuru/scripts/dashboard.py ~/research --serve 8765
tailscale serve --bg 8765

The service only listens on local 127.0.0.1, unreachable from the external internet. After your phone joins the same Tailnet, open https://<δ½ ηš„η”΅θ„‘ε>.<tailnet>.ts.net/?k=<δ½ ηš„ε£δ»€> for smooth reading, and tap the install button at the top-right to add to home screen; next time you open it, you won't even need to enter the password.

6. Enable RSS Monitoring for Continuous Tracking

After digging deep into a field, we can also have imozuru keep an eye on the high-quality sources we uncovered (blog tags, YouTube channels, arXiv, etc.):

/imozuru watch react

In Codex CLI, the equivalent is $imozuru watch react. Under the hood, watch.py directly fetches RSS/Atom feeds and lists new articles since last time along with opening summaries, without triggering web searches or spending any tokens.

Troubleshooting

1. When Using a VPN or Proxy, fetch.py Reports FAIL for Everything

fetch.py has built-in SSRF protection that blocks access to local and private network IP ranges (e.g., 127.0.0.1, 192.168.x.x) by default, to prevent malicious web pages from probing local services via redirects. Some transparent proxies or TUN-mode VPNs resolve public domains to virtual private IPs, triggering the protection and causing all fetches to fail. If you confirm the proxy environment is the cause, explicitly set an environment variable to allow it:

export IMOZURU_ALLOW_PRIVATE=1

2. Japanese or Chinese Scanned PDF Fetch Fails

pdftotext can only read PDFs with a text layer; old papers or scans require OCR. First ensure pdftoppm and tesseract are installed locally, then add the corresponding language data packages (for Japanese, it's recommended to install both jpn and jpn_vert for vertical text; for Simplified Chinese, install chi_sim). For multilingual scenarios, you can specify recognition languages via an environment variable:

export IMOZURU_OCR_LANG=chi_sim+jpn+eng

3. report.py or digest.py Refuses to Generate HTML

This is not a script bug; it's imozuru's core anti-hallucination guardrail working. If the model paraphrased a word or missed a punctuation mark in extracts.json or digest.json, the verification will block it. Follow the terminal message to locate the problematic excerpt, correct it to a verbatim quote against the sources/ originals, and rerun the script.

4. New Papers Published Within the Last Year Can't Be Found via chain.py Citations

OpenAlex often has indexing delays for papers published within the last year; returning 0 results doesn't mean no one has cited them. In that case, to trace backward references, you can grep the References section in the original in sources/; to trace recent citations forward, have a search sub-agent search for "articles citing <paper title>" to fill the gap.

5. After Service Restart, the Dashboard Icon on Phone Home Screen Won't Open

If dashboard.py --serve doesn't detect IMOZURU_SERVE_TOKEN, it generates a new temporary password on each start, invalidating the PWA shortcut saved on your phone's home screen. Write a fixed 16+ character password into the startup environment variable and re-add to home screen for stable long-term access.

Further Reading / Advanced Directions

  • Deep Dive into Methodology Sources: Look at skills/imozuru/references/theory.md in the repo; the author compiled a comparison table of library information science papers (Bates, Ellis, Kuhlthau, HALT, HypoSearch) corresponding to each rule, plus pitfalls from early experimentsβ€”highly recommended for developers designing agents.
  • Customize Multilingual and Video Subtitle Strategies: Read skills/imozuru/references/multilingual.md to learn how to expand search scope by original language; when fetching YouTube tutorials, you can use IMOZURU_YT_LANGS=zh-Hans,en to specify preferred subtitle language order.
  • Import Local Restricted Materials and Bundle Sharing: For pages requiring login or Cloudflare verification, you can save them locally in your browser, then use scripts/ingest.py to import them into sources/ through the full verification process; to package your research conclusions for archival, use python3 skills/imozuru/scripts/dashboard.py ~/research --bundle <output-dir> to package only reports and maps (excluding copyright-restricted originals).