1.8 KiB
1.8 KiB
Implementation Plan: Expose/Cull Hidden Invisible Prompting
Phase 1: Audit and Identification
- Task: Audit
src/ai_client.pyto identify all hardcoded_SYSTEM_PROMPTstrings and tool execution instructions. - Task: Audit
src/aggregate.pyto identify all injected context markers (e.g.,[SYSTEM: FILES UPDATED]). - Task: Document identified hidden prompts and determine their necessity vs. redundancy.
- Task: Conductor - User Manual Verification 'Phase 1: Audit and Identification' (Protocol in workflow.md)
Phase 2: Expose Necessary Prompts in GUI
- Task: Modify
src/gui_2.pyto add new editable text areas in the "AI Settings" or "Project Settings" panel.- Create fields for global system tool instructions.
- Create fields for project-specific context markers.
- Task: Update
src/app_controller.pystate initialization to load these new fields fromconfig.tomlandmanual_slop.toml. - Task: Ensure changes are correctly saved and flushed to the project files via
_flush_to_project()and_flush_to_config(). - Task: Conductor - User Manual Verification 'Phase 2: Expose Necessary Prompts in GUI' (Protocol in workflow.md)
Phase 3: Cull and Integrate Configured Prompts
- Task: Update
src/ai_client.py's_get_combined_system_prompt()to utilize the user-configured tool instructions from the AppController state instead of hardcoded strings. - Task: Update
src/aggregate.pyorsrc/ai_client.pyto use the user-configured context markers (like[FILES UPDATED]) instead of hardcoded ones. - Task: Remove the legacy hardcoded strings from the codebase.
- Task: Run tests to ensure tool execution and context refresh still function correctly.
- Task: Conductor - User Manual Verification 'Phase 3: Cull and Integrate Configured Prompts' (Protocol in workflow.md)