Commit Graph
148 Commits
Author SHA1 Message Date
Jiaqing Liang bc09ceb4e9 goal_hive master duty: 按第一性原理/工程控制论重写为49行(探测-设计-执行-检查分形循环+J*/y/e),实验验证后增补验收线/锁边界质疑目标/遗留项如实入报告; TMWebDriver: 修mark_disconnected重复打印 2026-06-02 15:01:52 +08:00
Liang Jiaqing 1f3fdde49a fix checklist master coordination and startup dedupe 2026-06-01 22:32:16 +08:00
Liang Jiaqing 1e335a2fd3 refactor: rename mapreduce -> checklist (helper/master/sop) 2026-05-31 23:21:17 +08:00
Liang Jiaqing f7c6dba679 feat: bbs key模式2天超时自关; reflect首次立即check; worker交付规范; vision_sop修正 2026-05-31 21:53:09 +08:00
Liang Jiaqing 20fbc5e3cb Update SOP notes and response history window 2026-05-29 21:02:31 +08:00
Liang Jiaqing 7d57e82b36 Refine goal hive master duty delivery quality 2026-05-29 21:00:03 +08:00
Liang Jiaqing c553be0b58 docs: clarify goal hive master instructions 2026-05-28 22:30:16 +08:00
Jiaqing Liang db979aafc8 feat: force non-stream mode for reflect/task, fix BaseSession.ask() return type, broadcast stream/read_timeout in MixinSession 2026-05-28 16:15:41 +08:00
Jiaqing Liang 26f22072e2 refine goal hive SOP: add master_duty, streamline entry, update goal_mode prompt 2026-05-28 14:43:14 +08:00
Liang Jiaqing 49970b539d ljqCtrl: GrabWindow支持str标题+找不到窗口assert报错 2026-05-27 19:29:52 +08:00
Liang Jiaqing 73c0ccc9d9 ljqCtrl: add Activate/GetForeground/Click check; SOP精简39行; ui_detect物理坐标提醒 2026-05-27 19:02:10 +08:00
Liang Jiaqing 01f46b75bb refactor: fix_messages rewrite, Click check, ui_detect batch OCR 2026-05-27 16:49:07 +08:00
Liang Jiaqing 9f653fdf45 feat(ui_detect): support PIL.Image direct input alongside file path 2026-05-27 15:10:01 +08:00
Jiaqing Liang 0d4705e633 Add salient mining SOP to L4 memory 2026-05-26 12:32:54 +08:00
Kailigithub efb91b930c fix: correct subagent_sop.md references to subagent.md
Align .gitignore and plan_sop.md with the actual memory/subagent.md file. Closes #482.
2026-05-26 11:49:39 +08:00
Liang Jiaqing 9e72234222 refactor: hive_sop restructure, GrabWindowBg, ui_detect unified API, worker rule9, incubator_sop 2026-05-26 10:02:51 +08:00
Liang Jiaqing 1d0dd4e7b2 keychain: store SecretStr in _d for deep repr masking 2026-05-22 10:21:25 +08:00
Liang Jiaqing 0db730d948 add morphling_sop to tracked files; add goal hive execution note 2026-05-18 21:10:20 +08:00
Liang Jiaqing 6ad943c0f9 docs(hive_sop): tighten objective check & limit worker count 2026-05-18 20:24:28 +08:00
Jiaqing Liang 8cbb112545 fix: hive worker death loop - remove on_done 120s, add failed reset, done_prompt shutdown mechanism 2026-05-18 12:26:24 +08:00
Shen HaoandShen Hao 3b67919561 feat(tui v2): plan card + done annotation + /cost + /review wiring (#411)
- Plan card (📋): per-session message-scan with `plan_scan_baseline` so
  `/continue` of a finished session doesn't auto-resurrect old plan cards;
  prefers `<summary>当前步骤:` over the long plan-item echo; placeholder
  while enter_plan_mode is armed but plan.md hasn't been written yet.
- Done annotation (⠿ {Verb} for Xm Ys · ↑ N · ↓ M): post-turn elapsed
  + per-call token deltas, frozen at done so the line stays put across
  re-mounts. Spinner annotation gated on cumulative deltas past stream-start
  baselines — fixes `↓ 16` showing immediately on prompt submit.
- fold_turns regex anchored to line-start (`^` + MULTILINE) so embedded
  backticks in tool output (e.g. `N|\`\`\`\`` gutter from file_read) don't
  pair with later real fences. ~100x faster on long /continue sessions.
- /cost: per-session card + `/cost all`; `Context window` line now reads
  GA's actual char cap via `cost_tracker.context_window_chars(backend)` =
  `backend.context_win * 3` (the `trim_messages_history` trigger threshold
  in llmcore.py), so the percentage reflects real budget and respects
  `mykey.py` overrides. Unit changes from token to character. Dropped the
  model-theoretical `_CTX_LIMITS` table (never actually constrained anything).
  Subagent log scan via `cost_tracker.scan_subagent_logs` aggregates
  `temp/*/stdout.log` since TUI start.
- /review: standalone in-session reviewer; reuses `review_cmd.handle`
  to render the inline prompt and submits as a normal user task.
- llmcore: emit `[Output] tokens=N` for chat_completions / responses modes
  (already emitted for `messages` SSE) so cost_tracker scopes output
  tokens uniformly across all three API modes.
- review_inline_prompt.{txt,en.txt}: filled out the in-session review
  discipline — Three Iron Rules, Q1-Q4 framing, severity examples,
  8 false-positive rules expanded, 8 wording rules expanded, 8-item
  self-check. ZH/EN both grow ~80 lines.
- memory/review_sop.md: rewrite 52 → 191 lines, 11 sections covering
  quick-start, entry files, Three Iron Rules, 5-step workflow, severity,
  output protocol, relationship to plan_sop / verify_sop. Style mirrors
  plan_sop.md + autonomous_operation_sop.md.

Files: frontends/{tuiapp_v2,tuiapp,cost_tracker,plan_state}.py, llmcore.py,
memory/review_sop.md, memory/review_sop/review_inline_prompt.{txt,en.txt},
.gitignore (allowlist new SOP).

Co-authored-by: Shen Hao <shenhao-stu@users.noreply.github.com>
2026-05-18 08:20:52 +08:00
Shen Hao 1862b5e567 Add standalone in-session review command (#405) 2026-05-17 21:08:25 +08:00
Liang Jiaqing fcbd8572f1 feat: Goal Hive Mode - BBS quick启动参数化 + Hive SOP + goal_mode prompt调整 2026-05-17 16:56:48 +08:00
Liang Jiaqing 438e8fc4dd conductor: cleanup style, filter aborted agents, add auto-cleanup thread; llmcore: conditional _drop_unsigned_thinking for non-claude models; task_planning: minor edit 2026-05-14 22:55:50 +08:00
Liang Jiaqing a9c6ab42c7 feat: add conductor system, code_review_principles; update llmcore, supervisor_sop, goal_mode constraints, gitignore whitelist 2026-05-13 23:02:52 +08:00
Liang Jiaqing f33a814e56 hub.pyw: add EXCLUDES set for goal_mode/chatapp_common/tuiapp; ga.py: fix missing summary prompt wording 2026-05-09 09:51:32 +08:00
Liang Jiaqing 3ddf4cb6f9 Add lightweight goal mode reflect workflow 2026-05-08 17:28:16 +08:00
Liang Jiaqing 1f99a5553b feat: fsapp reconnect loop, tui branch/rewind, simphtml flow-child fix, sop updates 2026-05-08 15:48:16 +08:00
Liang Jiaqing 2acb55b798 fix: 堵死自主规划绕过subagent评审的漏洞
- subagent.md: 隐藏--nobg选项防止同步阻塞超时
- task_planning.md: 加第7条无限重试禁自评+探测策略重排序
- autonomous_operation_sop.md: set_todo前缀提示
2026-05-08 08:02:23 +08:00
Jiaqing Liang 27428395e2 refactor: rename GeneraticAgent, default bg for task, add fork history support 2026-05-07 15:12:46 +08:00
LJQ 82859a052a Merge pull request #268
fix: remove duplicate backtick key in VK_CODE dictionary
2026-05-05 18:44:57 +08:00
Liang Jiaqing c2918a6e87 feat: add contentSettings cmd to CDP bridge (bypass multi-download dialog); minor agentmain cleanup 2026-05-05 11:57:40 +08:00
Kailigithub ab07c85db0 fix: remove duplicate backtick key in VK_CODE dictionary 2026-05-05 03:07:35 +00:00
Liang Jiaqing 892319b355 remove newtab, add terminal QR, refine task_planning sop 2026-05-04 12:39:41 +08:00
Liang Jiaqing 74831f83f7 fix: non-greedy file_content extraction, empty response retry limit, vision template pass 2026-05-02 12:59:40 +08:00
Liang Jiaqing b5fbc7be6b feat: add Discord bot frontend; refine memory SOP index rule 2026-04-29 19:29:36 +08:00
Liang Jiaqing 564f05aeee improve TMWebDriver connection error message and SOP 2026-04-29 14:02:43 +08:00
Liang Jiaqing 3da34d2f58 cleanup: remove NextWillSummary, add supervisor_sop, fix streaming fence protection, tighten L1 rules 2026-04-29 13:29:03 +08:00
LJQ f167a254bf Merge pull request #199 from AspasZhang/fix/plan-sop-remove-sop-index-dep
fix: remove sop_index.md dependency in plan_sop
2026-04-28 20:17:16 +08:00
Liang Jiaqing a8ff9aa60a autonomous sop: 收尾改为4步,完成即停不贪多 2026-04-28 11:45:12 +08:00
AspasZhang a78b299f6a fix: remove sop_index.md dependency in plan_sop, use L1 Insight index instead
sop_index.md is a user-specific file that doesn't exist in the shared repo.
Replace it with L1 Insight index which is auto-injected into context each turn.
2026-04-27 19:25:37 +08:00
Liang Jiaqing c82df6e347 refactor: 提取script_dir为模块级变量,清理procmem_sop涉敏感代码 2026-04-27 17:46:31 +08:00
Liang Jiaqing f581c5fb18 fix: fallback to getpass.getuser() when os.getlogin() raises OSError 2026-04-25 22:55:17 +08:00
Liang Jiaqing ef82265f4a fix: SSE tool_call streaming compat for non-standard index/id, MockToolCall handle list args & None fallback; sop: CDP bringToFront note 2026-04-23 23:44:50 +08:00
Liang Jiaqing 85925a622a refine L0 sync rule: default L3, bracket trigger words only for non-intuitive scenarios 2026-04-22 19:49:27 +08:00
Liang Jiaqing dd0b171f16 refactor: vision_sop精简改写 + 新增vision_api.template.py 2026-04-20 23:22:36 +08:00
Liang Jiaqing 5f054928d9 refactor stapp rerun reset logic and simplify vision SOP 2026-04-20 21:10:49 +08:00
Liang Jiaqing 638c7f5a0e 清理SOP: web_setup去TM方案, tmwebdriver排查流程优化 2026-04-19 11:16:29 +08:00
Liang Jiaqing dd5c795a83 refine memory_cleanup_sop: 4 compression principles, RULES triage, anti-intuitive trigger words, layered placement 2026-04-18 12:33:41 +08:00
Junghwan b4ddd585a8 fix(L4): preserve raw sessions skipped as recent(<2h) (#90)
compress_session.py Phase 4 builds to_del from both processed files
and every skipped file. Phase 1 marks files younger than 2h as
'recent(<2h)' (line 175) so their still-active writer is not
interrupted, but Phase 4 then deletes them anyway.

Filter the skipped-loop by reason so 'recent' files are preserved.
Processed files and other skip reasons (dup, compression error)
still proceed through deletion as before.
2026-04-17 17:35:50 +08:00