Files
GenericAgent/assets/global_mem_insight_template.txt

25 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# [Global Memory Insight]
浏览器自动化: web_scan/web_execute_js直接调用 | 特殊:tmwebdriver_sop(文件上传/图搜/PDF blob/元素物理坐标/Cookie提取含HttpOnly/跨域iframe操控/CDP/跨tab/后台tab操作)
键鼠模拟: ljqCtrl_sop+.py(仅win禁pyautogui/先activate窗口)
定时任务: scheduled_task_sop(报告→sche_tasks/done/) | 与自主任务完全独立
自主探索任务: autonomous_operation_sop(报告→temp/autonomous_reports/history.txt不在memory下) | 与定时任务完全独立
手机操控: adb_ui.py
需要时read L2 或 ls ../memory/ 查L3
L0(META-SOP): memory_management_sop
L2: 现空
L3: web_setup_sop | autonomous_operation_sop | scheduled_task_sop | ljqCtrl_sop+.py | tmwebdriver_sop | subagent_sop | plan_sop | procmem_scanner.py | adb_ui.py
L4: ../memory/L4_raw_sessions/
[RULES]
1. 搜索先行: 信息尽量用google必须web, 项目内os.listdir, 禁猜路径
2. 交叉验证: 禁信搜索摘要, 数值必进详情页核实
3. 编码安全: 改前必读源码; import memory用sys.path.append
4. 闭环: 物理模拟后必确认; 3次失败请求干预;
5. 进程: 禁无条件杀python(会杀自己), 精确PID, 禁os.kill判活
6. 窗口: GUI状态优先枚举窗口, 比OCR快
7. 物理红线: cwd用./; cwd指定后代码内禁用../向上切换,改用绝对路径
8. web JS: 一次写对输入用原生setter+事件链点击前检查disabled注意引号转义; scan空再scan或innerText
9. SOP: 执行前读取缓存硬参数,禁凭印象,有utils必用; 复杂长程先读plan_sop
10. 用户提及或复杂长程需规划任务要读plan_sop进入规划模式