diff --git a/ra_aid/prompts.py b/ra_aid/prompts.py index b574b84..0bcca9d 100644 --- a/ra_aid/prompts.py +++ b/ra_aid/prompts.py @@ -455,6 +455,11 @@ Exit Criteria: - Until such confirmation, continue to engage and ask_human if additional clarification is required. - If there are any doubts about final correctness or thoroughness, consult the expert (if expert is available) before concluding. +Context Cleanup: + - Use delete_key_facts to remove any key facts that no longer apply. + - Use delete_key_snippets to remove any key snippets that no longer apply. + - Use delete_research_notes to remove any research notes that no longer apply. + Remember: - Always begin by calling ask_human. - Always ask_human before finalizing or exiting. diff --git a/ra_aid/tool_configs.py b/ra_aid/tool_configs.py index 6927ca2..3e92e41 100644 --- a/ra_aid/tool_configs.py +++ b/ra_aid/tool_configs.py @@ -3,7 +3,7 @@ from ra_aid.tools import ( ask_expert, ask_human, run_shell_command, run_programming_task, emit_research_notes, emit_plan, emit_related_files, emit_task, emit_expert_context, emit_key_facts, delete_key_facts, - emit_key_snippets, delete_key_snippets, delete_tasks, read_file_tool, + emit_key_snippets, delete_key_snippets, delete_related_files, delete_tasks, read_file_tool, fuzzy_find_project_files, ripgrep_search, list_directory_tree, swap_task_order, monorepo_detected, existing_project_detected, ui_detected, task_completed, plan_implementation_completed @@ -20,6 +20,7 @@ def get_read_only_tools(human_interaction: bool = False) -> list: delete_key_facts, emit_key_snippets, delete_key_snippets, + delete_related_files, list_directory_tree, read_file_tool, fuzzy_find_project_files, @@ -114,7 +115,10 @@ def get_chat_tools(expert_enabled: bool = True) -> list: tools = [ ask_human, request_research, - request_research_and_implementation + request_research_and_implementation, + delete_key_facts, + delete_key_snippets, + delete_related_files ] return tools diff --git a/ra_aid/tools/__init__.py b/ra_aid/tools/__init__.py index 4cf2458..0c1e5a0 100644 --- a/ra_aid/tools/__init__.py +++ b/ra_aid/tools/__init__.py @@ -13,13 +13,14 @@ from .memory import ( delete_tasks, emit_research_notes, emit_plan, emit_task, get_memory_value, emit_key_facts, request_implementation, delete_key_facts, emit_key_snippets, delete_key_snippets, emit_related_files, swap_task_order, task_completed, - plan_implementation_completed + plan_implementation_completed, delete_related_files ) __all__ = [ 'ask_expert', 'delete_key_facts', 'delete_key_snippets', + 'delete_related_files', 'emit_expert_context', 'emit_key_facts', 'emit_key_snippets',