Auto-log Claude Code prompts to Obsidian Daily Notes
README
Auto-log Claude Code prompts and Codex turns to Obsidian Daily Notes.
AgentLog is a local-first prompt logger for Obsidian. It captures Claude Code prompts and Codex CLI turn inputs, then appends them to today's Daily Note, grouped by project and session.
Use it as a lightweight developer journal, worklog capture layer, or the first building block for richer Daily Notes automation.
# Requires Bun (https://bun.sh) installed and available on your PATH
npm install -g @albireo3754/agentlog
agentlog init ~/Obsidian
Install it once, start using Claude Code, and your Daily Note fills itself.
Claude Code hook / Codex hook → Daily Note append
Before: You finish a 3-hour Claude Code session. Your Daily Note is empty.
After:
## AgentLog
> 🕐 11:21 — js/agentlog › initialize git and open it in VS Code
#### 10:53 · js/agentlog
<!-- cwd=/Users/you/work/js/agentlog -->
- - - - [[claude_a1b2c3d4-1111-2222-3333-444455556666]]
- 10:53 start building agentlog
- 11:07 open the spec document
- - - - [[claude_e5f6a7b8-1111-2222-3333-444455556666]]
- 11:21 initialize git and open it in VS Code
| Element | Role |
|---------|------|
| > 🕐 HH:MM — project › prompt | Latest entry (always updated) |
| #### HH:MM · project | Project subsection (grouped by cwd) |
| <!-- cwd=... --> | Section matching key (hidden in Obsidian Reading view) |
| - - - - [[claude_...]] / [[codex_...]] | Session boundary (Obsidian wiki-link) |
| - HH:MM prompt | Individual log entry |
No manual logging. No copy-paste. No AI summarization overhead.
# With Bun
bun add -g @albireo3754/agentlog
# With npm
npm install -g @albireo3754/agentl