"Claude usage limit reached. Your limit will reset at 7pm." Then, the next morning, three hours of explaining my project architecture to Claude were gone, because the terminal session was closed.
Two problems, one cause: I was doing all the heavy work inside Claude's context. Indexing thirty documents burns tokens. Remembering past sessions burns tokens again.
The fix is to hand the heavy parts to a free Google tool, NotebookLM, and spend Claude tokens only on orchestration and the final write-up. Below: the setup, four workflows, and the risks.
What you build
Three pieces:
- Claude Code as the conductor. It decides and writes the final result.
- NotebookLM as the research engine. It indexes documents and answers questions with citations. Free tier: up to 50 sources per notebook, Pro: up to 300. Queries cost you nothing.
- A bridge, so Claude Code can drive NotebookLM from the terminal.
NotebookLM has no official API. The bridge is notebooklm-py, an unofficial open-source CLI by Teng Ling that reproduces Google's internal protocols. Repository: https://github.com/teng-lin/notebooklm-py. Follow its README to install.
What you need
- Python 3.10+
- A Google account
- Claude Code with a plan that allows it
- A terminal on macOS, Linux or Windows
Cost: $0 on top of your Claude plan, if 50 sources per notebook is enough.
Step 1: teach Claude the bridge with a skill
A skill is a SKILL.md file with instructions that Claude loads when your request matches its description. Personal skills live in ~/.claude/skills/<name>/SKILL.md, project skills in .claude/skills/<name>/SKILL.md. A project skill overrides a personal one with the same name.
Install the NotebookLM skill and check it:
notebooklm skill install
notebooklm skill status
It lands in ~/.claude/skills/notebooklm/ for Claude Code and ~/.agents/skills/notebooklm/ for compatible agents. From now on you don't explain the CLI syntax each session. You can also call it directly with /notebooklm.
To build your own skills, run /skill-creator in Claude Code. It interviews you, writes the SKILL.md, and tests it with generated prompts.
Workflow A: research without spending tokens
Use it when you need to analyze 30+ documents and write a report.
Gather the sources: PDFs, articles, YouTube transcripts (Claude can pull those with yt-dlp). Then:
notebooklm create "My Research Project"
notebooklm source add \
"./transcript-1.md" \
"https://example.com/article" \
"./report.pdf"
Ask NotebookLM instead of loading everything into Claude:
notebooklm ask \
"what are the three most important themes across all sources?"
Gemini answers across all sources, with citations. Then generate artifacts:
notebooklm generate slide-deck
notebooklm generate flashcards --quantity more
notebooklm generate mind-map
notebooklm generate data-table "compare key concepts"
notebooklm generate audio "make it engaging" --wait
Everything downloads locally. Only the last step, where Claude edits slides and weaves the findings into one document, spends your Claude tokens.
Workflow B: an expert agent from web research
Vague prompts make vague agents. So gather knowledge first.
- In NotebookLM, start Deep Research with source type "web" and a specific query, for example: "advanced B2B multi-channel outbound sales strategies, retention loops, and re-engagement sequences". It crawls many pages and returns a cited report.
- Structure the result with the DBS framework:
-
Direction: step-by-step logic, decision trees, error handling. This becomes the core of
SKILL.md. - Blueprints: static references like templates and tone rules. These become companion files.
- Solutions: anything that needs deterministic code (API calls, formatting, calculations). These become scripts.
-
Direction: step-by-step logic, decision trees, error handling. This becomes the core of
- Paste the DBS output into Claude Code and run
/skill-creator. It assembles the skill package. - Let skill-creator stress-test it with generated prompts, then refine.
Workflow C: memory across sessions
This fixes the amnesia. The idea is a /wrap-up skill that, at the end of a session, extracts:
- your corrections (where Claude was wrong),
- patterns that worked,
- open questions and feature requests,
- key decisions and why you made them.
Instead of a local file, it pushes the summary into a persistent "Master Brain" notebook:
notebooklm use master-brain-notebook-id \
"./session-summary-2026-04-06.md"
Then add one instruction to CLAUDE.md:
Before answering questions about project architecture, historical decisions, or my preferences, query the Master Brain notebook via the NotebookLM CLI.
After a few weeks the notebook holds hundreds of summaries. Claude retrieves only what it needs, without loading them into its context window.
Workflow D: a vault you can see
Claude's output piles up as invisible files in terminal folders. Start Claude Code from an Obsidian vault instead:
cd ~/Documents/MyVault
claude
Put a CLAUDE.md in the vault root with four things: folder structure, required metadata for new notes (dates, tags, source links), linking rules (wrap concepts in [[double brackets]]), and formatting standards. Then add skills such as /research <topic> (query NotebookLM, save a linked note), /daily (a daily summary with links) and /wrap-up writing straight into the vault.
You watch notes appear in Obsidian's graph. If Claude files something wrong, fix it and ask it to update CLAUDE.md.
Where it breaks
- Unofficial API. If Google changes its backend, commands stop working. No SLA. Skim the repo code before installing. This is a tool for advanced users, not production infrastructure.
- Anthropic usage policy. Automated use must go through the official Claude Code client on a suitable plan. Here the unofficial wrapper touches only NotebookLM. Don't use wrappers to get around Claude's limits.
- Privacy. Consumer Claude tools process data in the US. For confidential or GDPR-regulated data, regional processing comes with the enterprise API, not the consumer tier.
-
The cookie file.
storage_state.jsonholds live Google session cookies. Whoever has it has your NotebookLM. Never commit it. - Expired cookies. Auth errors mean you need to log in again:
notebooklm login
Commands at a glance
| Command | What it does |
|---|---|
notebooklm create "Name" |
Create a notebook |
notebooklm source add file url ... |
Add sources |
notebooklm ask "question" |
Query the notebook |
notebooklm generate slide-deck |
Generate slides |
notebooklm generate data-table "..." |
Generate a table |
notebooklm skill install |
Install the skill |
notebooklm login |
Re-authenticate |
Result
Heavy reading and searching run on Google's free infrastructure. Claude gets orchestration, judgment and the final edit. And your project knowledge survives the closed terminal.
The full walkthrough with all four workflows is on our blog: Claude Code + NotebookLM research engine
Your turn
Pick one real project folder with 10 to 20 documents. Create a notebook, add them with notebooklm source add, and ask one question you would normally paste everything into Claude to answer. Compare the answer and the token cost with your usual way.
This article was written with the help of AI and fact-checked by the AI SKILLS team.
Top comments (0)