fischer-agentkit/docs/plans
chiguyong be45fe42c5 feat(compressor): CJK-aware token estimation + linear compress flow
U1: Add estimate_text_tokens() module-level function with CJK 1:1 / ASCII
4:1 heuristic. Update estimate_tokens(), _summarize() pre-truncation, and
react.py _should_compress() fallback to use it. Fixes 4x token
underestimation for Chinese/Japanese/Korean conversations.

U3: Rewrite compress() from recursive _compression_depth to linear flow
(summarize -> aggressive -> truncate). Add _log_compression() structured
logging with tokens_before/after/ratio/strategy. Remove _compression_depth
parameter from compress() and _compress_aggressive().

Per plan: docs/plans/2026-07-02-003-feat-context-compressor-cjk-prefix-enhancement-plan.md
2026-07-03 07:32:57 +08:00
..
2026-06-05-001-feat-agentkit-tdd-validation-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-002-design-agentkit-v2-architecture.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-003-feat-agentkit-v2-phase1-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-004-geo-migration-mode-a.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-005-refactor-agentkit-framework-hardening.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-006-refactor-agentkit-v2-phase2-plan.md feat(agentkit): v2 Phase 1 - ReAct/LLM Gateway/Skill/Server + review fixes 2026-06-05 23:32:16 +08:00
2026-06-05-007-feat-agentkit-cli-deployment-plan.md feat(cli): AgentKit CLI with serve/version/health/task/skill/init/usage 2026-06-06 12:45:51 +08:00
2026-06-06-008-feat-agentkit-phase3-upgrade-plan.md docs: mark Phase 3 upgrade plan as completed 2026-06-06 17:18:07 +08:00
2026-06-06-009-feat-agentkit-rag-optimization-plan.md feat(memory): RAG pipeline optimization — 5 Implementation Units 2026-06-06 19:27:09 +08:00
2026-06-06-010-feat-agentkit-phase4-production-plan.md feat(agentkit): Phase 4 enterprise production upgrade — 12 Implementation Units 2026-06-06 21:51:04 +08:00
2026-06-06-011-feat-agentkit-phase5-intelligence-plan.md docs: mark Phase 5 plan as completed 2026-06-06 22:53:14 +08:00
2026-06-07-012-feat-agentkit-phase6-toolkit-plan.md docs: mark Phase 6 plan as completed 2026-06-07 17:27:01 +08:00
2026-06-07-013-feat-agentkit-phase7-headroom-plan.md docs: mark Phase 7 Headroom integration plan as completed 2026-06-07 18:21:27 +08:00
2026-06-07-014-fix-agentkit-p0-review-fixes-plan.md fix(agentkit): resolve all P0/P1/P2/P3 issues from code review 2026-06-07 22:05:18 +08:00
2026-06-07-015-feat-agentkit-phase8-chat-adaptive-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-08-016-feat-agentkit-layered-memory-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-09-017-feat-agentkit-multi-agent-marketplace-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-10-018-fix-agentkit-p2-hardening-plan.md fix(security,reliability): resolve all P2 findings from code review 2026-06-10 15:05:40 +08:00
2026-06-10-019-feat-agentkit-deferred-improvements-plan.md fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
2026-06-12-020-feat-pipeline-adversarial-loop-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-12-021-feat-chat-response-speed-optimization-plan.md feat: optimize chat response speed for sub-1s first token latency 2026-06-12 13:15:06 +08:00
2026-06-12-022-feat-agentkit-phase9-integrated-next-stage-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-12-023-feat-frontend-productization-plan.md feat: frontend productization with code review fixes 2026-06-13 01:29:58 +08:00
2026-06-13-001-feat-gui-productization-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-13-001-refactor-gui-redesign-plan.md docs: mark GUI redesign plan as completed 2026-06-13 03:01:31 +08:00
2026-06-13-003-feat-platform-experience-upgrade-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-13-004-feat-tauri-desktop-client-plan.md feat(client): add Tauri 2.x desktop client with sidecar process management 2026-06-14 10:06:12 +08:00
2026-06-14-001-feat-expert-team-mode-plan.md feat: Expert Team Mode — plan-execute collaboration with conversation UI 2026-06-14 22:20:14 +08:00
2026-06-14-001-feat-p0-production-hardening-plan.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-002-u1-llm-cache-architecture.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-003-u2-llm-cache-integration.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-14-004-u3-semantic-router.md feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00
2026-06-15-001-feat-autonomous-task-execution-plan.md feat: autonomous task execution - connect PlanExecEngine + TeamOrchestrator 2026-06-15 12:41:32 +08:00
2026-06-15-002-feat-e2e-capability-improvement-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-15-003-feat-router-intelligence-optimization-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-15-004-feat-semantic-router-and-benchmark-upgrade-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-16-005-backtest-report.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-code-review-fixes.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-reasoning-verification.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-005-refactor-routing-architecture-plan.md refactor(router): replace CostAwareRouter with SimpleRouter and prompt-based tool calling 2026-06-16 03:31:05 +08:00
2026-06-16-006-refactor-architecture-optimization-evolution-plan.md refactor: eliminate routing layer, align with industry best practices 2026-06-17 10:44:40 +08:00
2026-06-17-001-feat-board-meeting-mode-plan.md feat: 私董会讨论模式 + 回测集成 + WS持久化修复 2026-06-17 23:52:53 +08:00
2026-06-17-001-fix-benchmark-failures-root-cause-plan.md fix: resolve benchmark failures from root cause (LLM timeout, WebSocket, latency stats) 2026-06-17 13:32:54 +08:00
2026-06-17-002-fix-ws-task-persistence-plan.md feat: 私董会讨论模式 + 回测集成 + WS持久化修复 2026-06-17 23:52:53 +08:00
2026-06-17-003-feat-team-pipeline-integration-plan.md docs: U3+U10 更新 AGENTS.md 流水线模式文档 + 计划状态改为 completed 2026-06-18 03:04:47 +08:00
2026-06-19-001-feat-chat-area-vi-redesign-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-19-002-enterprise-client-server-architecture-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-19-003-feat-enterprise-client-server-evolution-plan.md feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
2026-06-20-001-fix-regression-issues-routing-optimization-plan.md fix(routing): U1-U6 路由优化 + 修复方案 + 代码审查修复 2026-06-20 19:31:49 +08:00
2026-06-20-002-feat-centralized-auth-token-persistence-plan.md plan: 计划审查修订 + AuthProvider 抽象层设计 2026-06-21 00:21:52 +08:00
2026-06-21-001-feat-admin-console-plan.md docs: mark admin console plan as completed 2026-06-21 20:02:27 +08:00
2026-06-21-001-fix-p0-security-and-quality-optimization-plan.md fix(auth,chat): P0 security fixes + stop-generation button + doc sync 2026-06-21 11:36:58 +08:00
2026-06-23-002-feat-document-processing-plan.md feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
2026-06-23-003-feat-calendar-schedule-plan.md docs(calendar): add implementation history with code review summary 2026-06-24 11:36:10 +08:00
2026-06-23-document-processing-test-plan.md feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
2026-06-24-001-feat-agent-debate-collaboration-plan.md feat(experts): add debate phase executor to TeamOrchestrator (U2) 2026-06-24 10:54:51 +08:00
2026-06-24-001-feat-bitable-companion-service-plan.md feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
2026-06-24-001-test-calendar-e2e-plan.md test(calendar): wire calendar router into app.py + test plan 2026-06-24 11:51:31 +08:00
2026-06-24-002-feat-skill-harness-activation-preconditions-plan.md feat(skills): SkillHarness 激活前置条件 + 风险守卫学习 2026-06-24 13:56:37 +08:00
2026-06-24-003-feat-expert-team-pm-collaboration-plan.md fix(experts): PM 协同代码审查全量修复 2026-06-24 18:56:27 +08:00
2026-06-24-004-feat-long-horizon-reliability-optimization-plan.md feat(bitable): add bitable companion service with full P0-P2 fixes 2026-06-25 01:09:59 +08:00
2026-06-24-005-feat-portal-platform-evolution-plan.md docs(plan): deepen portal platform evolution plan — KTD5/7/8/9 expanded, KTD11 added 2026-06-25 20:13:27 +08:00
2026-06-26-006-fix-p0-security-multi-instance-hardening-plan.md fix(security): P0 安全加固 + 多实例部署一致性 (U1-U4 + U5c) 2026-06-26 04:05:33 +08:00
2026-06-28-001-feat-full-e2e-test-suite-plan.md fix(calendar): 修复 agent 创建日历事件后 UI 不刷新 + 文档化三根因三部曲 2026-06-29 02:20:33 +08:00
2026-06-29-001-feat-bitable-ui-completeness-stage1-plan.md feat(bitable): 多维表格文件层 + 默认字段 + 表内字段操作 + ce-code-review 修复 (Stage 1) 2026-06-29 04:07:45 +08:00
2026-06-29-002-feat-agent-wave1-quick-wins-plan.md chore(prior): malformed tool call handling, auth whitelist, dev scripts, wave1 plan 2026-06-29 20:25:03 +08:00
2026-06-29-003-feat-agent-wave2-medium-coupling-plan.md feat(agent): Wave 2 medium coupling (G4/G7/G9) (#5) 2026-06-30 09:09:33 +08:00
2026-06-29-004-feat-agent-wave3-strategic-plan.md feat(agent): Wave 3 strategic coupling (G5/G6) (#6) 2026-06-30 09:17:19 +08:00
2026-06-30-001-feat-agent-wave4-plan-exec-hardening-plan.md docs: add PLAN_EXEC concepts + commit Wave 4 plan 2026-06-30 12:46:24 +08:00
2026-06-30-002-refactor-systematic-tech-debt-cleanup-plan.md docs: add systematic tech debt cleanup plan (U1-U5) 2026-06-30 14:27:47 +08:00
2026-07-01-001-feat-ui-ue-enhancement-plan.md feat: UI/UE enhancement — streaming, sticky header, hover actions, calendar tokens 2026-07-01 12:51:45 +08:00
2026-07-02-001-feat-private-board-restrictions-and-scheme-b-bubbles-plan.md docs(plan): private-board restrictions + scheme B bubbles plan ready 2026-07-03 01:14:37 +08:00
2026-07-02-001-refactor-remove-all-emoji-plan.md refactor: remove all emoji from source code (#20) 2026-07-03 02:46:40 +08:00
2026-07-02-002-fix-transient-state-reset-and-react-tool-guidance-plan.md test(u6): add L4 real-LLM smoke test for ReAct tool-use prompt 2026-07-02 22:08:45 +08:00
2026-07-02-003-feat-context-compressor-cjk-prefix-enhancement-plan.md feat(compressor): CJK-aware token estimation + linear compress flow 2026-07-03 07:32:57 +08:00