From c9b85433275d35b13c05eaa10f0b8c06b3c0bb98 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Mon, 3 Nov 2025 15:39:26 -0800 Subject: [PATCH] Remove user_note and detach_user_blocks tools from agent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These tools are managed by bsky.py automatically and should not be exposed to the agent to prevent it from managing its own memory blocks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- register_tools.py | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/register_tools.py b/register_tools.py index fad1ce1..686cebe 100755 --- a/register_tools.py +++ b/register_tools.py @@ -13,7 +13,6 @@ from config_loader import get_letta_config, get_bluesky_config, get_config from tools.search import search_bluesky_posts, SearchArgs from tools.post import create_new_bluesky_post, PostArgs from tools.feed import get_bluesky_feed, FeedArgs -from tools.blocks import attach_user_blocks, detach_user_blocks, user_note_append, user_note_replace, user_note_set, user_note_view, AttachUserBlocksArgs, DetachUserBlocksArgs, UserNoteAppendArgs, UserNoteReplaceArgs, UserNoteSetArgs, UserNoteViewArgs from tools.halt import halt_activity, HaltArgs from tools.thread import add_post_to_bluesky_reply_thread, ReplyThreadPostArgs from tools.ignore import ignore_notification, IgnoreNotificationArgs @@ -47,38 +46,9 @@ TOOL_CONFIGS = [ "description": "Retrieve a Bluesky feed (home timeline or custom feed)", "tags": ["bluesky", "feed", "timeline"] }, - # Note: attach_user_blocks is available on the server but not exposed to the agent - # to prevent the agent from managing its own memory blocks - { - "func": detach_user_blocks, - "args_schema": DetachUserBlocksArgs, - "description": "Detach user-specific memory blocks from the agent. Blocks are preserved for later use.", - "tags": ["memory", "blocks", "user"] - }, - { - "func": user_note_append, - "args_schema": UserNoteAppendArgs, - "description": "Append a note to a user's memory block. Creates the block if it doesn't exist.", - "tags": ["memory", "blocks", "user", "append"] - }, - { - "func": user_note_replace, - "args_schema": UserNoteReplaceArgs, - "description": "Replace text in a user's memory block.", - "tags": ["memory", "blocks", "user", "replace"] - }, - { - "func": user_note_set, - "args_schema": UserNoteSetArgs, - "description": "Set the complete content of a user's memory block.", - "tags": ["memory", "blocks", "user", "set"] - }, - { - "func": user_note_view, - "args_schema": UserNoteViewArgs, - "description": "View the content of a user's memory block.", - "tags": ["memory", "blocks", "user", "view"] - }, + # Note: User block management tools (attach_user_blocks, detach_user_blocks, user_note_*) + # are available on the server but not exposed to the agent to prevent the agent from + # managing its own memory blocks. User blocks are managed by bsky.py automatically. { "func": halt_activity, "args_schema": HaltArgs, -- 2.51.2