Skip to content

Add title parameter to task_update tool - #22

Merged
pufit merged 1 commit into
ClickHouse:mainfrom
groeneai:feat/task-update-title
Mar 31, 2026
Merged

pufit merged 1 commit into
ClickHouse:mainfrom
groeneai:feat/task-update-title

Conversation

@groeneai

Copy link
Copy Markdown
Contributor

Summary

  • Add title parameter to the task_update MCP tool, allowing agents to rename tasks without rewriting the full markdown file
  • Updates the H1 heading in the task's markdown file and syncs the new title to the SQLite index + FTS
  • Exposes the title field through the REST API's PATCH /api/tasks/{id} endpoint

Changes

  • nerve/agent/tools.py — New title param in tool definition + handler logic: regex-replaces the H1 heading, calls upsert_task() to sync SQLite/FTS
  • nerve/gateway/routes/tasks.py — Added title field to TaskUpdateRequest model + passes it through to the tool handler

Test plan

  • All 326 existing tests pass
  • Manually verified: task_update(task_id=..., title="new title") updates both markdown H1 and SQLite search index

🤖 Generated with Claude Code

@CLAassistant

CLAassistant commented Mar 31, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Allow renaming tasks via task_update by providing a title parameter.
Updates the H1 heading in the markdown file and syncs to the SQLite
index via upsert_task. Also exposes the title field through the REST
API's PATCH /api/tasks/{id} endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@groeneai
groeneai force-pushed the feat/task-update-title branch from ec377ad to bd1feff Compare March 31, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants