Skip to content

记忆系统 Deep-Dive 扩展:Codex 两阶段记忆 + Goose/Qoder/Cursor#20

Merged
wenshao merged 2 commits into
mainfrom
docs/memory-system-deep-dive-update
Mar 31, 2026
Merged

记忆系统 Deep-Dive 扩展:Codex 两阶段记忆 + Goose/Qoder/Cursor#20
wenshao merged 2 commits into
mainfrom
docs/memory-system-deep-dive-update

Conversation

@wenshao

@wenshao wenshao commented Mar 31, 2026

Copy link
Copy Markdown
Owner

变更概要

扩展 docs/comparison/memory-system-deep-dive.md,新增和深化多个 Agent 的记忆系统分析。

主要变更

Codex CLI(从简述扩展为完整架构)

  • 两阶段记忆工作流:extract_model → consolidation_model(后台子代理)
  • 记忆存储结构:MEMORY.md + memory_summary.md + rollout_summaries/ + SQLite
  • 配置键详解(generate_memories / max_unused_days 等)
  • 去重机制:thread_id 追踪 + 外科手术式删除/重写

新增 Agent

  • Qoder CLI:双层记忆(用户级+项目级)+ CLAUDE.md 兼容
  • Goose:从 config.yaml 单层更正为 .goosehints 多层 + JIT 子目录提示
  • Cursor:.cursor/rules/ 4 种规则类型

总览对比表

  • 新增 4 个 Agent 行(Qoder / Goose 更正 / Cursor / Aider 重排)
  • 统一记忆能力列格式

涉及文件

  • docs/comparison/memory-system-deep-dive.md(+164 / -12 行)

wenshao and others added 2 commits March 31, 2026 09:16
- Codex CLI 记忆系统从简述扩展为两阶段提取+合并架构详解
- 新增 Qoder CLI(双层记忆 + CLAUDE.md 兼容)
- Goose 从 config.yaml 单层更正为 .goosehints 多层 + JIT 子目录
- 新增 Cursor(.cursor/rules 4 种规则类型)
- 更新总览对比表,新增 4 个 Agent 的记忆能力列

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Aider 配置内容(.aider.conf.yml)原混入 Goose 段落末尾
- 增加「六-B、Aider」独立章节标题,分隔清晰

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@wenshao wenshao merged commit 0ecc727 into main Mar 31, 2026
wenshao added a commit that referenced this pull request Apr 5, 2026
New PR progress links added:
- PR#2911: ConfigTool programmatic config read/write (p2-core #20)
- PR#2904: Contextual tips system with LRU rotation (p2-tools-commands #19)
- PR#2917: /thinkback session timeline review (p2-tools-ui #20)
- PR#2916: /context non-interactive SDK API (p2-tools-ui #21)
- PR#2915: /clear --history and --all modes (p2-tools-ui #19)
- PR#2914: Markdown table CJK/ANSI rendering fix (p2-stability #10)

Total tracked PRs: 19 (was 13)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wenshao added a commit that referenced this pull request Apr 5, 2026
New items from second round of source code comparison:

P0 (2 items):
- #19: Environment variable sanitization (25+ patterns)
- #20: Dangerous command blacklist (rm -rf, find -exec, git -c, etc.)

P1 (4 items):
- #21: Edit fuzzy matching with Levenshtein distance (10% tolerance)
- #22: Omission placeholder detection (prevent "// ... rest")
- #23: JIT context discovery for read/write/edit tools
- #24: OS-level sandbox (Linux bwrap, macOS Seatbelt, Windows)

P2 (6 items):
- #25: Folder trust discovery (pre-execution scanning)
- #26: Web fetch rate limiting + SSRF hardening
- #27: Grep advanced parameters (include/exclude/names_only)
- #28: Advanced vim operations (big words, find, replace, toggle)
- #29: Footer customization dialog
- #30: Write file LLM content correction

P3 (2 items):
- #31: OAuth flow refactoring (shared utils + RFC 9728)
- #32: Conseca safety framework (context-aware policy)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wenshao added a commit that referenced this pull request Apr 9, 2026
- Link PR#3013 to items #1, #2, #7 (SlicingMaxSizedBox, hard cap, char limit)
- Add item #54: useStableHeight (PR#3013 Phase 2, not previously covered)
- Link PR#2889 (dangerous actions prompt) to item #20 (command blacklist)
- Update total from 52 to 53 items across all references

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wenshao added a commit that referenced this pull request Apr 10, 2026
Hermes Agent (nousresearch/hermes-agent, 355K lines Python) findings:

- OpenCode #20 (Skill): add Hermes self-improving Skills reference —
  Agent auto-creates SKILL.md after complex tasks, self-improves on use
- Codex #10 (Models Manager): add Hermes Credential Pool reference —
  multi-Key rotation + rate limit tracking + automatic failover
- Codex #25 (Exec Server): add Hermes 6 terminal backends reference —
  Local/Docker/SSH/Daytona/Singularity/Modal with serverless hibernation
- Improvement report: link PR#3080 to API retry architecture diff

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant