Skip to content

feature: /idd-find — semantic search for IDD-aware related issues across open+closed corpus #139

Description

@kiki830621

Problem

Original text (User report,2026-05-22):
「我在想要不要有一個 /idd-find 來找跟某個東西有關的issue」
— Source: /idd-issue invocation

User 想要 semantic search for related issues capability — 給一個 topic / keyword / concept,找出 IDD 既有 corpus 中所有 touching 該 topic 的 issues (open + closed)。目前 IDD plugin 有 /idd-list 做結構性 triage (state / label / phase) + 各 GitHub native gh issue list --search ad-hoc query,但缺一個語意性、IDD-aware 的查找入口。

實際 use case 推論:

每次都要手動 gh issue list --search + 人工掃 title/body — 高 cognitive friction,且常漏掉相關 closed issue。

Type

feature (含 design exploration — 設計分岔 open question 1 未定)

Expected

提供 IDD-aware semantic find primitive 讓 user 一句話查到所有 topic-related issues:

/idd-find "chain max-issues design"
# → 列出 open + closed issue 含 keyword/相似 topic,按 relevance 排序
# → 每筆顯示 #N + title + state + phase + last-touched date + 1-line excerpt 含 matched keyword

理想行為:

  1. Search scope: title + body + comments (open + closed)
  2. IDD context display: 每筆 issue 顯示 phase (diagnosed / implemented / verified / closed) — 非 raw GitHub state
  3. Cross-link awareness: 認得 sibling / parent / cluster-PR 關係,輸出時群組顯示
  4. Lightweight: read-only,不 mutate state,可隨時 invoke (mirror /idd-list / /idd-clarify family)

Actual

無 semantic find primitive。Workaround 有兩個 path:

  • gh issue list --search "<query>":GitHub native search,但無 IDD context (看不到 phase),且 --state all 跟 IDD-aware filter 不能組合
  • /idd-list:只看 open issue 的 structural filter (state / label / phase),不接受 semantic query

兩者都需 user 額外人工 stitch (cross-reference issue body / commits / cluster relations)。

Open question(待 diagnose 階段釐清)

Open question 1: new skill vs extension to /idd-list?

Option A — new /idd-find skill (semantic search axis):

Option B — extend /idd-list with --search "<query>" flag:

  • 最 minimal,重用既有 skill
  • /idd-list 預設 open-only,加 search 後 --state all + structural filter + semantic query 三軸混合,UX 可能變繁雜
  • 風險:把「我要 triage」跟「我要找東西」兩個不同心智模型塞進同 skill

Option C — small subset of /idd-find + extend /idd-list: hybrid? 待 diagnose 細評

Open question 2: search 範圍

  • 只 same repo (PsychQuant/issue-driven-development)?
  • 或 cross-repo (e.g. monorepo 中相關 sub-project)?
  • 包含 PR body 嗎? (PR 也常含「我們之前在 #N 討論過...」cross-reference)

Open question 3: ranking algorithm

  • Pure keyword overlap (multi-finding mode Stage 2 已有 score 公式)?
  • 加 phase / state / recency weighting?
  • 是否需要 LLM-aided semantic similarity (重量級,可能 deferred)?

Impact

Priority

P1 — 本週(user 預期未來工作要用上)

Related context

Vagueness assessment

  • V1 (vague WHAT) = 3 — 方向明確(semantic find for issues),但 surface 範圍 (open question 2) + skill boundary (open question 1) 未定
  • V4 (vague ACCEPTANCE) = 4 — done criteria 須等 diagnose 決定 Option A/B/C + 最小 MVP scope 才能 testable

Linked-Context Siblings Filed (v2.48.0+ #529)

Filed sibling issues: #140

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions