A CLI tool for managing daily work notes in Obsidian. Track your pending and completed work items, review yesterday's tasks, and get AI-powered summaries of your accomplishments.
- Create daily work notes in Obsidian-compatible markdown format
- Interactive review of pending items from previous days
- AI-powered work summaries using OpenCode server
- Carry forward incomplete tasks to the next day
- Track completed work with checkboxes
# Clone the repository
git clone https://github.com/sandepten/worklog.git
cd worklog
# Install dependencies
go mod tidy
# Build and install (creates symlink in ~/.local/bin)
make install
# Or just build without installing
make buildNote: Make sure
~/.local/binis in your PATH. Add this to your~/.bashrcor~/.zshrc:export PATH="$HOME/.local/bin:$PATH"
| Command | Description |
|---|---|
make build |
Build the worklog binary |
make install |
Build and create symlink in ~/.local/bin |
make clean |
Remove binary and symlink |
make help |
Show available commands |
Worklog uses a config file at ~/.config/worklog/config (similar to Ghostty):
# Create the config directory
mkdir -p ~/.config/worklog
# Create your config file
cat > ~/.config/worklog/config << 'EOF'
# Worklog Configuration
# Path to your Obsidian notes folder
WORK_NOTES_LOCATION=~/Documents/obsidian-notes/Inbox/work
# Name of your workplace (used in filenames and tags)
WORKPLACE_NAME=Jio
# OpenCode server URL for AI summaries
OPENCODE_SERVER=http://127.0.0.1:4096
# AI provider and model for summaries
AI_PROVIDER=github-copilot
AI_MODEL=claude-sonnet-4
EOF| Variable | Description | Default |
|---|---|---|
WORK_NOTES_LOCATION |
Path to your Obsidian notes folder | ~/Documents/obsidian-notes/Inbox/work |
WORKPLACE_NAME |
Name of your workplace (used in filenames and tags) | Work |
OPENCODE_SERVER |
URL of your OpenCode server for AI summaries | http://127.0.0.1:4096 |
AI_PROVIDER |
AI provider ID for summaries | github-copilot |
AI_MODEL |
AI model ID for summaries | claude-sonnet-4 |
Note: Environment variables take precedence over the config file, so you can override settings if needed.
Main command - Start your daily workflow. This command:
- Reviews pending items from the most recent previous note
- Asks if each pending item was completed (y/n)
- Moves completed items to yesterday's "Work Completed" section
- Carries forward incomplete items to today's "Pending Work"
- Generates an AI summary of yesterday's completed work
- Creates today's note with the summary
worklog startAdd a new pending work item to today's note.
worklog add "Fix the login bug"
worklog add "Review PR #123"
worklog add "Update documentation for API endpoints"Interactively mark pending items as completed. Shows each pending item and asks if it's done.
worklog doneDisplay all pending and completed work items from today's note.
worklog listManually review pending items from previous notes without creating a new note or generating summaries.
worklog reviewGenerate and display an AI-powered summary of today's completed work (output only, does not save to file).
worklog summarizeNotes are created with the filename format: YYYY-MM-DD-WorkplaceName.md
Example: 2025-01-19-Jio.md
---
id: Jio-19-Jan-2025
aliases: []
tags:
- jio
- job
date: 2025-01-19
---
# 2025-01-19
summary:: Resolved critical authentication issues and completed code review tasks.
yesterday's summary:: Fixed database connection issues and deployed hotfix to production.
## Pending Work
- [ ] Update API documentation
- [ ] Review team's pull requests
## Work Completed
- [x] Fix login authentication bug
- [x] Deploy v2.1.0 to staging- Run
worklog startat the beginning of your workday - Review each pending item from yesterday:
- Press
yif completed - Press
nto carry forward to today
- Press
- The CLI generates an AI summary of yesterday's work
- A new note is created for today
- Use
worklog add "task"to add new work items - Use
worklog doneto mark items as completed - Use
worklog listto see your current progress
$ worklog start
Starting daily workflow for 2025-01-19...
Found previous note: 2025-01-18-Jio.md (Date: 2025-01-18)
Reviewing pending items from previous note...
Did you complete: "Fix the login bug"? [y/N]: y
Did you complete: "Update documentation"? [y/N]: n
Generating AI summary of completed work...
Summary: Fixed critical login authentication bug affecting user sessions.
Updated previous note: 2025-01-18-Jio.md
Saved today's note: 2025-01-19-Jio.md
--- Today's Note ---
--- Pending Work ---
1. [ ] Update documentation
--- Completed Work ---
No completed items
Daily workflow complete! Use 'worklog add "task"' to add new items.
- Go 1.21 or later
- OpenCode server running (for AI summaries)
- spf13/cobra - CLI framework
- manifoldco/promptui - Interactive prompts
MIT