From 9ea380f2a49e08b420633a07a850111f514f63d3 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Mon, 19 Jan 2026 21:22:14 +0000 Subject: [PATCH] feat: add --notes/-n option for task descriptions The Reclaim.ai API supports task notes/descriptions via the 'notes' field, but the CLI didn't expose this functionality. This change adds: - `--notes`/`-n` option to `create-task` command - `--notes`/`-n` option to `edit-task` command - Notes display in `show-task` output Example usage: reclaim create "My task" -n "Task description here" reclaim edit abc123 -n "Updated description" Co-Authored-By: Claude Opus 4.5 --- src/reclaim/commands/create-task.py | 10 ++++++++++ src/reclaim/commands/edit-task.py | 10 ++++++++++ src/reclaim/commands/show-task.py | 4 ++++ 3 files changed, 24 insertions(+) diff --git a/src/reclaim/commands/create-task.py b/src/reclaim/commands/create-task.py index a2db7f4..feda94f 100644 --- a/src/reclaim/commands/create-task.py +++ b/src/reclaim/commands/create-task.py @@ -24,6 +24,14 @@ def parse_args(self, subparsers): "title", type=str, metavar="", help="title of the task" ) + subparser.add_argument( + "-n", + "--notes", + type=str, + metavar="<text>", + help="notes/description for the task", + default=None, + ) subparser.add_argument( "-d", "--due", @@ -87,6 +95,8 @@ def run(self, args): task_args = {"title": args.title} # Prepare optional arguments + if args.notes: + task_args["notes"] = args.notes if args.due: task_args["due"] = args.due if args.snooze_until: diff --git a/src/reclaim/commands/edit-task.py b/src/reclaim/commands/edit-task.py index 80e5fad..9d79233 100644 --- a/src/reclaim/commands/edit-task.py +++ b/src/reclaim/commands/edit-task.py @@ -29,6 +29,14 @@ def parse_args(self, subparsers): help="title of the task", default=None, ) + subparser.add_argument( + "-n", + "--notes", + type=str, + metavar="<text>", + help="notes/description for the task", + default=None, + ) subparser.add_argument( "-d", "--due", @@ -92,6 +100,8 @@ def run(self, args): if args.title: task.title = args.title + if args.notes is not None: + task.notes = args.notes if args.due: task.due = args.due if args.snooze_until: diff --git a/src/reclaim/commands/show-task.py b/src/reclaim/commands/show-task.py index 16b0f76..b8dbbdf 100644 --- a/src/reclaim/commands/show-task.py +++ b/src/reclaim/commands/show-task.py @@ -107,4 +107,8 @@ def format_date(date): console = Console() console.print(f"Task {tid}: {task.title}", style="bold underline") console.print(grid) + if task.notes: + console.print() + console.print("Notes:", style="bold") + console.print(task.notes) return task