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 mwguerrav1.0.0MITIn 1 marketplace
Captures decisions, commitments and ideas from your Claude Code sessions and syncs them to an Obsidian vault. Hooks queue items on every prompt and tool call, and a background worker processes them with AI extraction.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A queue-based personal workflow assistant for Claude Code. Captures decisions, commitments, ideas, and session data via ultra-fast hooks (< 50ms), processes them in a background worker with AI extraction, and syncs everything to an Obsidian vault.
The predecessor plugin (my-workflow) made Claude Code noticeably slow — each PostToolUse event triggered 3 independent AI calls on the same text (up to 60s of blocking), and Stop/SessionEnd fired identical scripts, doubling session-end processing.
Secretary replaces all of that with a "Capture Fast, Process Later" architecture:
| Event | my-workflow (old) | Secretary (new) |
|---|---|---|
| PostToolUse(Bash) | 45-75s (3x AI + vault + DB) | < 50ms (1 SQLite INSERT) |
| PostToolUse(Edit/Write) | 30-60s (3x AI + vault) | < 30ms (1 SQLite INSERT) |
| UserPromptSubmit | 30s (AI + vault + DB) | < 20ms (1 SQLite INSERT) |
| Stop | 140s (Sonnet + Haiku + git) | < 50ms (1 INSERT + UPDATE) |
| SessionEnd | 140s (duplicate of Stop) | < 50ms (dedup check + INSERT) |
| SessionStart | 90s (git sync + briefing) | < 15s (SQL queries + time-boxed processing) |
| AI calls per tool use | 3 (triplicate) | 0 (deferred to worker) |
┌─────────────────────────────────┐
│ Claude Code Hooks │
│ SessionStart UserPromptSubmit │
│ PostToolUse SubagentStop │
│ Stop SessionEnd │
└──────────────┬──────────────────┘
│
▼
┌─────────────────────────────────┐
│ capture.sh (< 50ms) │
│ SQLite INSERT into queue │
│ (WAL mode for concurrency) │
└──────────────┬──────────────────┘
│
▼
┌─────────────────────────────────┐
│ queue table (SQLite) │
│ Pending items wait for worker │
└──────────────┬──────────────────┘
│
┌──────────────┼──────────────────┐
│ │ │
▼ ▼ ▼
┌────────────┐ ┌──────────┐ ┌──────────────────┐
│ worker.sh │ │ Session │ │ /secretary: │
│ (cron 5m) │ │ Start │ │ process │
│ up to 50 │ │ (inline │ │ (manual trigger)│
│ items/run │ │ 10 max) │ │ │
└──────┬─────┘ └──────────┘ └──────────────────┘
│
┌──────────┼──────────┐
▼ ▼ ▼
┌─────────┐ ┌────────┐ ┌─────────┐
│ AI │ │ Vault │ │ Git │
│Extract │ │ Notes │ │ Sync │
│(1 call │ │(.md) │ │(commit │
│per item)│ │ │ │ +push) │
└────┬────┘ └────┬───┘ └────┬────┘
│ │ │
▼ ▼ ▼
┌─────────┐ ┌────────┐ ┌─────────┐
│decisions│ │Obsidian│ │ Remote │
│ideas/ │ │vault/ │ │ repo │
│commits │ │secrty/ │ │ │
└─────────┘ └────────┘ └─────────┘
Every hook event (user prompt, tool use, stop, etc.) calls capture.sh which does a single SQLite INSERT into the queue table. This completes in under 50ms — no AI, no network, no file I/O beyond the DB write.
A background worker (worker.sh) runs every 5 minutes via cron. It processes pending queue items: extracts decisions/ideas/commitments with a single AI call per item (not 3 like before), creates Obsidian vault notes, syncs to git.
At session start, if unprocessed items exist, a time-boxed (5s) inline processing handles up to 10 items. A SQL-only briefing (no AI) shows your commitments, recent decisions, goals, and GitHub items.
No cron? Still works. Queue items accumulate and get processed at the next session start (time-boxed) or via /secretary:process.
brew install flock)brew install coreutils)sudo apt-get install sqlite3 jq
# Optional:
sudo apt-get install sqlcipher
7-day copy clicks
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 mwguerra/claude-code-plugins --plugin secretaryPlugins from other owners that cover similar ground