Skip to content

[0.1.0] 定义本地检索到 Codex 原生 threads 的交接契约 #46

Closed

Description

@fanbuz

当前目标

定义一个稳定契约,让 Agent 可以先用 codex-threads 跨本地历史检索,再将候选会话交给 Codex 原生线程能力确认、读取或续聊。

当前范围

  • 为线程搜索、消息搜索和 threads context 统一来源与交接元数据
  • 稳定输出 session_id、原始会话路径、本地来源类型和建议下一步
  • 明确区分本地候选 ID 与已由原生能力确认的线程
  • 文档化“原生优先,本地回退”工作流

不在范围

  • 直接调用或封装 Codex 线程创建、fork、续聊或管理操作
  • 假定本地 session_id 在所有 host 或 Codex 表面都可见
  • 修改 Codex App 私有状态

依赖

验收口径

  • --json 契约能明确表达候选 ID、来源和交接建议
  • 原生线程可用时,Agent 能按文档完成确认与读取
  • 原生未命中时,Agent 能回退到本地 read 或 context
  • 契约字段、帮助输出和 README 有测试覆盖

Activity

  1. added this to the 0.1.0 milestone on Jul 29, 2026
  2. added
    enhancement
    area:search
    on Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:searchenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions