DailyLog
Productivity toolkit for structured daily logging, planning, habit tracking, reviews, reminders, and weekly reports. Every entry is timestamped and stored locally. Build streaks, tag entries, create timelines, and generate periodic reports to stay on top of your goals.
Commands
Core Productivity Commands
| Command | Description |
|---|
| INLINECODE0 | Add a general log entry (thought, note, observation). Without arguments, shows recent entries. |
| INLINECODE1 |
Log a plan or intention for the day/week. Without arguments, shows recent plans. |
|
dailylog track <input> | Track a habit, metric, or progress item. Without arguments, shows recent tracked items. |
|
dailylog review <input> | Record a review or reflection on completed work. Without arguments, shows recent reviews. |
|
dailylog streak <input> | Log a streak milestone or streak-related note (e.g., "Day 30 of running"). Without arguments, shows recent streak entries. |
|
dailylog remind <input> | Set a reminder or log something to follow up on. Without arguments, shows recent reminders. |
|
dailylog prioritize <input> | Log priority rankings or mark high-priority items. Without arguments, shows recent priority entries. |
|
dailylog archive <input> | Archive a completed item or old entry. Without arguments, shows recent archived items. |
|
dailylog tag <input> | Tag an entry with a label or category for organization. Without arguments, shows recent tags. |
|
dailylog timeline <input> | Add an event or milestone to your personal timeline. Without arguments, shows recent timeline entries. |
|
dailylog report <input> | Log a report or summary for a period. Without arguments, shows recent reports. |
|
dailylog weekly-review <input> | Record a structured weekly review. Without arguments, shows recent weekly reviews. |
Utility Commands
| Command | Description |
|---|
| INLINECODE12 | Show summary statistics across all log categories (entry counts, data size, first entry date). |
| INLINECODE13 |
Export all data in
json,
csv, or
txt format. Output saved to the data directory. |
|
dailylog search <term> | Search across all log files for a keyword or phrase (case-insensitive). |
|
dailylog recent | Show the 20 most recent entries from the activity history log. |
|
dailylog status | Health check — shows version, data directory, total entries, disk usage, and last activity. |
|
dailylog help | Display all available commands and usage information. |
|
dailylog version | Show the current version (v2.0.0). |
Data Storage
All data is stored in ~/.local/share/dailylog/ as plain-text log files:
- - Each command category has its own
.log file (e.g., add.log, plan.log, streak.log, weekly-review.log) - Entries are timestamped in
YYYY-MM-DD HH:MM|value format - A central
history.log tracks all activity across commands - Export files are saved as
export.json, export.csv, or export.txt in the same directory
Requirements
- - Bash 4.0+ (uses
set -euo pipefail) - Standard Unix utilities:
date, wc, du, head, tail, grep, INLINECODE40 - No external API keys or network access required
- No additional dependencies to install
When to Use
- 1. Morning planning sessions — Use
plan and prioritize to set your daily intentions and rank tasks by importance before starting work. - Habit tracking and streaks — Use
track and streak to log daily habits (exercise, reading, coding) and celebrate milestone streaks. - End-of-day reflections — Use
add and review to capture what went well, what didn't, and lessons learned each evening. - Weekly retrospectives — Use
weekly-review and report to summarize accomplishments, blockers, and goals for the next week. - Organizing and archiving work — Use
tag, archive, and timeline to label entries, retire completed items, and build a chronological record of milestones.
Examples
Morning planning workflow
CODEBLOCK0
Track habits and streaks
CODEBLOCK1
End-of-day reflection
CODEBLOCK2
Weekly review and export
CODEBLOCK3
Search and status
dailylog search "API"
dailylog recent
dailylog status
dailylog archive "Q1 planning notes — no longer active"
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
DailyLog
用于结构化日常记录、规划、习惯追踪、回顾、提醒和每周报告的生产力工具包。每条记录都带有时间戳并存储在本地。建立连续记录、标记条目、创建时间线并生成定期报告,以掌握目标进度。
命令
核心生产力命令
| 命令 | 描述 |
|---|
| dailylog add <输入> | 添加一条通用日志条目(想法、笔记、观察)。无参数时显示最近条目。 |
| dailylog plan <输入> |
记录当天/本周的计划或意图。无参数时显示最近计划。 |
| dailylog track <输入> | 追踪习惯、指标或进度项。无参数时显示最近追踪项。 |
| dailylog review <输入> | 记录对已完成工作的回顾或反思。无参数时显示最近回顾。 |
| dailylog streak <输入> | 记录连续里程碑或与连续相关的笔记(例如跑步第30天)。无参数时显示最近连续记录。 |
| dailylog remind <输入> | 设置提醒或记录待跟进事项。无参数时显示最近提醒。 |
| dailylog prioritize <输入> | 记录优先级排序或标记高优先级项。无参数时显示最近优先级记录。 |
| dailylog archive <输入> | 归档已完成项或旧条目。无参数时显示最近归档项。 |
| dailylog tag <输入> | 为条目添加标签或分类以进行组织。无参数时显示最近标签。 |
| dailylog timeline <输入> | 向个人时间线添加事件或里程碑。无参数时显示最近时间线条目。 |
| dailylog report <输入> | 记录某段时间的报告或总结。无参数时显示最近报告。 |
| dailylog weekly-review <输入> | 记录结构化的每周回顾。无参数时显示最近每周回顾。 |
实用命令
| 命令 | 描述 |
|---|
| dailylog stats | 显示所有日志类别的汇总统计(条目数、数据大小、首条记录日期)。 |
| dailylog export <格式> |
以json、csv或txt格式导出所有数据。输出保存到数据目录。 |
| dailylog search <搜索词> | 在所有日志文件中搜索关键词或短语(不区分大小写)。 |
| dailylog recent | 显示活动历史日志中最近20条记录。 |
| dailylog status | 健康检查——显示版本、数据目录、总条目数、磁盘使用情况和最近活动。 |
| dailylog help | 显示所有可用命令及使用信息。 |
| dailylog version | 显示当前版本(v2.0.0)。 |
数据存储
所有数据以纯文本日志文件形式存储在~/.local/share/dailylog/中:
- - 每个命令类别有各自的.log文件(例如add.log、plan.log、streak.log、weekly-review.log)
- 条目以YYYY-MM-DD HH:MM|值格式带有时间戳
- 中央history.log追踪所有命令的活动
- 导出文件以export.json、export.csv或export.txt格式保存在同一目录
要求
- - Bash 4.0+(使用set -euo pipefail)
- 标准Unix工具:date、wc、du、head、tail、grep、cut
- 无需外部API密钥或网络访问
- 无需安装额外依赖
使用场景
- 1. 晨间规划——使用plan和prioritize在开始工作前设定每日意图并按重要性排列任务。
- 习惯追踪与连续记录——使用track和streak记录日常习惯(锻炼、阅读、编程)并庆祝里程碑式的连续记录。
- 每日反思——使用add和review记录每天做得好、做得不好以及学到的经验教训。
- 每周回顾——使用weekly-review和report总结成就、障碍和下周目标。
- 组织与归档工作——使用tag、archive和timeline标记条目、归档已完成项并建立里程碑的时间顺序记录。
示例
晨间规划工作流
bash
dailylog plan 今天专注于API重构和代码审查
dailylog prioritize 1. API重构 2. 代码审查 3. 更新文档
dailylog remind 下午3点前跟进设计团队的模型图
追踪习惯和连续记录
bash
dailylog track 28分钟跑了5公里
dailylog streak 连续跑步第15天——个人最佳纪录
dailylog tag 跑步, 健身, 个人最佳
每日反思
bash
dailylog add 提前完成了API重构
dailylog review 代码审查很顺利,发现2个边缘情况需要明天修复
dailylog timeline API v2重构完成
每周回顾与导出
bash
dailylog weekly-review 完成8/10计划任务。障碍:等待设计审批。
dailylog report 第12周:发布API v2,开始编写入职文档,连续跑步5天
dailylog export json
dailylog stats
搜索与状态
bash
dailylog search API
dailylog recent
dailylog status
dailylog archive Q1规划笔记——不再使用
由BytesAgain提供 | bytesagain.com | hello@bytesagain.com