SleepWell
Productivity toolkit for managing tasks, plans, reviews, streaks, reminders, priorities, archives, tags, timelines, reports, and weekly reviews. Each command logs timestamped entries and lets you review past entries, search history, view statistics, and export data in multiple formats.
Commands
| Command | Description |
|---|
| INLINECODE0 | Add a new entry (or view recent add entries with no args) |
| INLINECODE1 |
Log a plan entry (or view recent plans with no args) |
|
sleepwell track <input> | Log a tracking entry (or view recent entries with no args) |
|
sleepwell review <input> | Log a review entry (or view recent reviews with no args) |
|
sleepwell streak <input> | Log a streak entry (or view recent streaks with no args) |
|
sleepwell remind <input> | Log a reminder (or view recent reminders with no args) |
|
sleepwell prioritize <input> | Log a priority entry (or view recent priorities with no args) |
|
sleepwell archive <input> | Archive an entry (or view recent archives with no args) |
|
sleepwell tag <input> | Tag an entry (or view recent tags with no args) |
|
sleepwell timeline <input> | Log a timeline entry (or view recent timeline with no args) |
|
sleepwell report <input> | Log a report entry (or view recent reports with no args) |
|
sleepwell weekly-review <input> | Log a weekly review (or view recent weekly reviews with no args) |
|
sleepwell stats | Show summary statistics across all log categories |
|
sleepwell export <fmt> | Export all data to json, csv, or txt format |
|
sleepwell search <term> | Search across all log files for a term |
|
sleepwell recent | Show the 20 most recent history entries |
|
sleepwell status | Health check: version, data dir, entry count, disk usage, last activity |
|
sleepwell help | Show help with all available commands |
|
sleepwell version | Show version number |
How It Works
Each productivity command (add, plan, track, review, etc.) works in two modes:
- - With arguments: Saves the input with a timestamp to a dedicated
.log file and displays the total entry count - Without arguments: Shows the 20 most recent entries from that category's log file
All actions are also recorded in a central history.log for unified tracking.
Typical Workflow
- 1. Plan your day: INLINECODE21
- Track tasks: INLINECODE22
- Set reminders: INLINECODE23
- Prioritize: INLINECODE24
- Review progress: INLINECODE25
- Weekly roundup: INLINECODE26
Data Storage
All data is stored in ~/.local/share/sleepwell/. The directory contains:
- -
add.log, plan.log, track.log, review.log, etc. — one log file per command category - INLINECODE32 — central log of all actions with timestamps
- INLINECODE33 ,
export.csv, export.txt — generated export files
The tool automatically creates the data directory on first run.
Requirements
- - Shell: Bash 4+
- No external dependencies — uses only standard Unix utilities (
date, wc, du, grep, tail, head) - Works on: Linux, macOS, any POSIX-compatible system
When to Use
- 1. Daily task management — Use
sleepwell add "fix login bug" and sleepwell track "started debugging" to log and track tasks throughout the day - Sprint planning — Run
sleepwell plan "Sprint 14: auth refactor, API docs, deploy" to record sprint plans and reference them later - Building accountability streaks — Log daily wins with
sleepwell streak "Day 15: shipped feature" and review your consistency over time - Weekly retrospectives — Use
sleepwell weekly-review "Good velocity, need to reduce meeting time" for structured reflection - Searching past decisions — Run
sleepwell search "deploy" to find all entries across every category mentioning deployments
Examples
CODEBLOCK0
Export Formats
The export command supports three formats:
- - json — Array of objects with
type, time, and value fields - csv — Comma-separated with
type,time,value header - txt — Plain text grouped by category
Export files are saved to the data directory and the output shows the file path and size in bytes.
Output
All command output goes to stdout in plain text. Use shell redirection for saving:
CODEBLOCK1
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
SleepWell
用于管理任务、计划、回顾、连续记录、提醒、优先级、归档、标签、时间线、报告和每周回顾的生产力工具包。每个命令都会记录带时间戳的条目,并允许你查看历史条目、搜索历史、查看统计信息,以及以多种格式导出数据。
命令
| 命令 | 描述 |
|---|
| sleepwell add <输入> | 添加新条目(无参数时查看最近添加的条目) |
| sleepwell plan <输入> |
记录计划条目(无参数时查看最近计划) |
| sleepwell track <输入> | 记录追踪条目(无参数时查看最近条目) |
| sleepwell review <输入> | 记录回顾条目(无参数时查看最近回顾) |
| sleepwell streak <输入> | 记录连续记录条目(无参数时查看最近连续记录) |
| sleepwell remind <输入> | 记录提醒(无参数时查看最近提醒) |
| sleepwell prioritize <输入> | 记录优先级条目(无参数时查看最近优先级) |
| sleepwell archive <输入> | 归档条目(无参数时查看最近归档) |
| sleepwell tag <输入> | 标记条目(无参数时查看最近标签) |
| sleepwell timeline <输入> | 记录时间线条目(无参数时查看最近时间线) |
| sleepwell report <输入> | 记录报告条目(无参数时查看最近报告) |
| sleepwell weekly-review <输入> | 记录每周回顾(无参数时查看最近每周回顾) |
| sleepwell stats | 显示所有日志类别的汇总统计信息 |
| sleepwell export <格式> | 将所有数据导出为 json、csv 或 txt 格式 |
| sleepwell search <词条> | 在所有日志文件中搜索词条 |
| sleepwell recent | 显示最近 20 条历史记录 |
| sleepwell status | 健康检查:版本、数据目录、条目数、磁盘使用量、最近活动 |
| sleepwell help | 显示所有可用命令的帮助信息 |
| sleepwell version | 显示版本号 |
工作原理
每个生产力命令(add、plan、track、review 等)有两种工作模式:
- - 带参数:将输入内容连同时间戳保存到专用的 .log 文件中,并显示总条目数
- 无参数:显示该类别的日志文件中最近 20 条记录
所有操作也会记录到中央的 history.log 文件中,便于统一追踪。
典型工作流程
- 1. 规划你的一天:sleepwell plan 专注于Q2报告,下午3点前完成
- 追踪任务:sleepwell track 开始Q2报告——收集数据
- 设置提醒:sleepwell remind 下午4点前将草稿发给团队
- 设定优先级:sleepwell prioritize Q2报告 > 清理邮件 > 准备会议
- 回顾进度:sleepwell review 完成3/5任务,不错的一天
- 每周总结:sleepwell weekly-review 高效的一周,所有截止日期都完成了
数据存储
所有数据存储在 ~/.local/share/sleepwell/ 目录中。该目录包含:
- - add.log、plan.log、track.log、review.log 等——每个命令类别对应一个日志文件
- history.log——所有操作及其时间戳的中央日志
- export.json、export.csv、export.txt——生成的导出文件
该工具会在首次运行时自动创建数据目录。
系统要求
- - Shell:Bash 4+
- 无外部依赖——仅使用标准 Unix 工具(date、wc、du、grep、tail、head)
- 适用系统:Linux、macOS 及任何 POSIX 兼容系统
使用场景
- 1. 日常任务管理——使用 sleepwell add 修复登录bug 和 sleepwell track 开始调试 来记录和追踪全天任务
- 冲刺规划——运行 sleepwell plan 冲刺14:认证重构、API文档、部署 记录冲刺计划,便于日后参考
- 建立责任连续记录——使用 sleepwell streak 第15天:发布功能 记录每日成果,回顾你的持续性
- 每周回顾——使用 sleepwell weekly-review 节奏不错,需要减少会议时间 进行结构化反思
- 搜索过往决策——运行 sleepwell search 部署 查找所有类别中提及部署的条目
示例
bash
添加新任务
sleepwell add 重构认证模块
规划明天的工作
sleepwell plan 上午:代码审查。下午:API集成
追踪当前任务进度
sleepwell track 认证模块完成60%,测试通过
设置提醒
sleepwell remind 上午10:00团队站会
设定任务优先级
sleepwell prioritize 1. 部署热修复 2. 审查PR #42 3. 更新文档
为条目添加标签以便检索
sleepwell tag 紧急:生产数据库迁移
记录时间线里程碑
sleepwell timeline v2.0测试版发布给内部测试人员
生成报告
sleepwell report 三月指标:23个功能、8个bug修复、99.5%正常运行时间
归档已完成项目
sleepwell archive Q1 OKR追踪——已完成并归档
每周回顾
sleepwell weekly-review 发布3个功能,解决2个阻塞问题
查看所有类别的统计信息
sleepwell stats
将所有数据导出为CSV
sleepwell export csv
搜索与部署相关的条目
sleepwell search 部署
查看最近活动
sleepwell recent
健康检查
sleepwell status
导出格式
export 命令支持三种格式:
- - json——包含 type、time 和 value 字段的对象数组
- csv——以逗号分隔,带有 type,time,value 表头
- txt——按类别分组的纯文本
导出文件保存到数据目录中,输出会显示文件路径和大小(字节数)。
输出
所有命令输出以纯文本形式发送到标准输出。使用 shell 重定向进行保存:
bash
sleepwell stats > weekly-report.txt
sleepwell export json
sleepwell recent | head -5
由 BytesAgain 提供技术支持 | bytesagain.com | hello@bytesagain.com