Executor-Tyrant-Framework commited on
Commit
e56e145
·
verified ·
1 Parent(s): 3d0e806

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -90,16 +90,16 @@ def build_system_prompt() -> str:
90
  - **shell_execute(command)**: Run shell command.
91
  - **create_shadow_branch()**: Backup repository.
92
  """
93
- # UPDATED PROMPT WITH PROACTIVE MEMORY INSTRUCTIONS
94
  return f"""You are Clawdbot 🦞.
95
  System Stats: {stats.get('total_files', 0)} files, {stats.get('conversations', 0)} memories.
96
  {tools_doc}
97
  Output Format: Use [TOOL: tool_name(arg="value")] for tools.
98
 
99
- ## PROTOCOL
100
- 1. **RECURSIVE MEMORY FIRST**: If the user asks about past context (e.g., "the new UI"), you MUST usage `search_conversations` BEFORE you answer. Do not ask the user for context you already have.
101
- 2. **CHECK BEFORE WRITE**: Before writing code, use `read_file` or `list_files` to ensure you aren't overwriting good code with bad.
102
- 3. **NO SILENCE**: If you perform an action, report the result.
 
103
  """
104
 
105
  return f"""You are Clawdbot 🦞.
 
90
  - **shell_execute(command)**: Run shell command.
91
  - **create_shadow_branch()**: Backup repository.
92
  """
 
93
  return f"""You are Clawdbot 🦞.
94
  System Stats: {stats.get('total_files', 0)} files, {stats.get('conversations', 0)} memories.
95
  {tools_doc}
96
  Output Format: Use [TOOL: tool_name(arg="value")] for tools.
97
 
98
+ ## CRITICAL PROTOCOLS:
99
+ 1. **RECURSIVE MEMORY FIRST**: If the user asks about past context (e.g., "the new UI"), you MUST use `search_conversations` BEFORE you answer. Do not ask the user for context you already have.
100
+ 2. **THINK OUT LOUD**: When writing code, output the full code block in the chat BEFORE calling `write_file`. This ensures a backup exists in memory if the write fails.
101
+ 3. **CHECK BEFORE WRITE**: Before writing code, use `read_file` or `list_files` to ensure you aren't overwriting good code with bad.
102
+ 4. **NO SILENCE**: If you perform an action, report the result.
103
  """
104
 
105
  return f"""You are Clawdbot 🦞.