显示 HN:使用 .md 进行持续学习
Show HN: Continual Learning with .md

原始链接: https://github.com/SunAndClouds/ReadMe

该系统将用户的本地文件转化为人工智能代理可以方便访问的“记忆”,尤其侧重于最近的工作和上下文。它扫描诸如`Downloads`和`~/.codex/sessions/`之类的目录来构建这个记忆,然后将其在`~/.codex/user_context/`内组织成基于日期的层级结构(年、季度、月、日)。 一个提示会被添加到`~/.codex/AGENTS.md`,引导代理访问这个用户上下文。用户随后可以提出诸如“过去3个月我都在做什么?”的问题,代理会检索相关信息。 设置过程包括运行初始化脚本 (`Init.md`),并可选地通过脚本 (`Update.md`) 使用 cron 或主机调度程序安排每日更新。该过程优先考虑安全性,沙盒绕过需要明确批准,并包含验证步骤以确保正常功能。

一个在Hacker News上分享的新项目,提出了一种简单的、无需编码的解决方案,用于解决大型语言模型(LLM)在持续接收新数据时遇到的长期记忆问题。该系统利用两个Markdown文件和一个“语义文件系统”,允许LLM使用shell命令搜索信息。 创建者wenhan_zhou将其描述为功能完备但粗糙的第一个版本,并寻求反馈。 评论者承认LLM记忆是一个持续存在的挑战——特别是当记忆库变得过大时产生的上下文过载问题——并且需要可靠的基准来评估解决方案。一位用户询问了检索性能和速度,强调了这种系统在实际应用中的考虑因素。讨论指出,这是一个复杂的问题,没有简单的解决方法,尽管已经尝试了许多解决方案。
相关文章

原文

Turn your files into a memory filesystem for AI agents.

  1. Agent scans local files:
Source traces:
    ├── ~/.codex/sessions/
    ├── ~/.claude/sessions/
    ├── ...
    ├── ~/Downloads/
    └── ~/Projects/
  1. Builds ~/.codex/user_context/
~/.codex/user_context/
└── 2026_agentic_rag_memory_systems/
    ├── year.md
    └── 2026-Q2_prompt_programs_context_retrieval/
        ├── quarter.md
        └── 2026-04_bootstrap_and_consolidation/
            ├── month.md
            └── 2026-04-13_hierarchical_memory_rewrite.md
  1. Installs a hint in ~/.codex/AGENTS.md:
<user_context>
Additional user-specific context may live in `~/.codex/user_context/`...
</user_context>

Example question

What have I been working on in the past 3 months?

ls ~/.codex/user_context/2026_.../

Example answer

You have been converging on agentic infrastructure: memory systems, context retrieval, and public-facing artifacts.

Initialize by running:

codex exec --dangerously-bypass-approvals-and-sandbox --ephemeral - < Init.md

Enable automatic daily updates with:

REPO_DIR="$(pwd)" && codex exec --dangerously-bypass-approvals-and-sandbox --ephemeral "Install a daily scheduler for: cd \"$REPO_DIR\" && codex exec --dangerously-bypass-approvals-and-sandbox --ephemeral - < Update.md. Use cron by default; otherwise use the host scheduler. Do not create wrapper scripts. Verify codex is on PATH, Update.md exists, and the installed scheduler entry is readable. Do not run Update.md during validation."
联系我们 contact @ memedata.com