Session hooks + CLI skills for codegraph, NotebookLM, Perplexity, and agentmemory
Create a task DAG from a plan and run it with worker agents. Give it a plan (text or file path) to decompose into tasks with dependencies, then it orchestrates execution via agentmemory frontier loop.
Worker agent definition for dag-orchestrator. Not user-invocable. Executes one DAG task with agentmemory-enriched context and reports results back via CLI.
Explore, search, and understand code structure using the codegraph CLI. Use when asked to find symbols, trace call flows, understand architecture, or assess change impact.
Resume the most recent agent session for the current project. Use when the user says "where were we", "resume", "handoff", or "pick up where I left off".
Search agentmemory for past observations, sessions, and learnings about a topic. Use when the user says "recall", "remember", "what did we do", or needs context from past sessions.
Matches all tools
Hooks run on every tool call, not just specific ones
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
A Claude Code plugin that installs 8 skills and session hooks for agentmemory, codegraph, NotebookLM, and Perplexity. All tools run as CLI commands — no MCP servers, no context-window pollution.
Clone the repo into your project (or anywhere you want the skills to live) so you can edit them:
git clone https://github.com/Giovani-Merlin/smart_mcps
Then install the plugin in Claude Code:
/plugin marketplace add https://github.com/Giovani-Merlin/smart_mcps
/plugin install smart-mcps
Skills are registered automatically on install. Restart Claude Code after installation.
Skills are meant to be edited. After installing, configure each skill you use — see Setup below. The
notebooklm-chatskill in particular ships with a placeholder notebook map that you must fill in.
| Skill | Trigger | What it does |
|---|---|---|
codegraph | /codegraph | Symbol lookup, call graph tracing, impact analysis via codegraph CLI |
notebooklm-chat | /notebooklm-chat | Chat with a notebook by topic — query only, requires configuring your notebook map in the skill file |
notebooklm-complete | /notebooklm-complete | Full NotebookLM management: query, create, add sources, audio/video artifacts |
perplexity | /perplexity | Web-grounded search, research, and reasoning via smart-mcps-perplexity CLI |
handoff | /handoff | Resume most recent agentmemory session ("where were we") |
recall | /recall | Search past agentmemory observations and lessons |
remember | /remember | Save an insight or decision to agentmemory long-term storage |
recap | /recap | Summarize recent sessions for the current project |
Requires an index built from your project's source. Run once per project:
pip install codegraph # or: uv tool install codegraph
codegraph init
codegraph index
The Setup hook runs codegraph index automatically on each session start if codegraph is installed and an index exists.
Requires a PERPLEXITY_API_KEY. The MCP server is spawned by the VS Code extension host, so the key must be in that process's environment — not just a terminal session.
Recommended: Install the mkhl.direnv VS Code extension and create a per-project .envrc:
cp .envrc.example .envrc # fill in your key
direnv allow
Shell profile fallback (all projects share the same key):
export PERPLEXITY_API_KEY="pplx-..." # in ~/.bashrc or ~/.profile
Step 1 — one-time browser auth:
uv tool install notebooklm-mcp-cli
nlm login
Re-run nlm login when cookies expire. Auth state is stored in ~/.notebooklm-mcp-cli/ and persists across projects.
Step 2 — seed aliases from your notebook titles:
bash scripts/seed-nlm-aliases.sh
This registers each notebook as an nlm alias (e.g. ltx-2-3-engineering-...). Aliases persist globally across projects. Re-run whenever you create new notebooks. Inspect with nlm alias list.
Step 3 — configure the notebooklm-chat skill (required):
Open skills/notebooklm-chat/SKILL.md and fill in the notebook map:
| Topic | Notebook alias or ID |
| ----- | -------------------- |
| LTX 2.3 / video generation / cinematography | `ltx-2-3-engineering-and-ic-lora-implementation-guide` |
| ControlNet / pose / depth | `floed-and-comfyui-controlnet-aux-development-summaries` |
Map by semantic topic (not just notebook title) so the skill can match natural-language questions. Use the alias slugs from step 2 or raw UUIDs — both work.
Use /notebooklm-complete for everything beyond querying: adding sources, creating audio overviews, managing notes.
Requires the agentmemory daemon running locally:
systemctl --user start agentmemory
# or
~/.agentmemory/start.sh
The recall, remember, handoff, and recap skills use the smart-mcps-agentmemory CLI which talks to this daemon.
The plugin installs session hooks that wire agentmemory capture automatically:
| Hook | What it does |
|---|---|
sessionStart | Loads session context from agentmemory |
userPromptSubmitted | Records user intent |
preToolUse / postToolUse | Captures tool calls and results |
postToolUseFailure | Records failures for learning |
preCompact | Saves context before compaction |
sessionEnd / agentStop | Closes session and flushes observations |
subagentStart / subagentStop | Tracks sub-agent lifecycle |
notification | Handles async notifications |
npx claudepluginhub giovani-merlin/smart_mcps --plugin smart-mcpsUltra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions