AltimateAI / AltimateAI/altimate-code

Workspace awareness prompt says nothing about bridge-served extension tools

未關閉
#1,263 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
811
分支
134
平均合併
3 天 2 小時
30 天內合併 PR
50

描述

## Gap

The `## Workspace integrations` system-prompt section (`packages/opencode/src/altimate/workspace/awareness.ts`) tells the model which workspace-served warehouse capabilities to route to `datamate_*` tools — but it projects only the three warehouse capabilities per connection type (`servedInventory()`). Extension-type integrations served over a live IDE bridge (the dbt project tools and sql-tools keys) never enter the section, so the model is not told those tools exist, when they are usable, or when to prefer them over guessing.

AltimateAI/altimate-code#1236 fixed the same staleness on the presentation surfaces (`list-integrations`, declared counts) using the read-only `liveBridge()` probe; this issue is the model-facing half it deliberately left out of scope.

## Proposed shape

Mirror the presentation semantics in the awareness render:

- **Bridge live for the project** → append a compact block naming the extension-type integrations and their tool groups, "served while VS Code with the Altimate extension is open on this project". Group by integration; never enumerate all 18 keys.
- **No live bridge** (none, or dead sidecar pids) → render nothing extra; the section stays byte-identical to today's output.

Invariants to preserve from the original awareness design: purely additive render; byte-identical prompt for unlinked projects and every silent disabled state; `MAX_SECTION_CHARS` enforced with the extension block participating in the drop order; bridge state read at the same per-step snapshot point so the section can never advertise tools routing would refuse.

貢獻指南

開啟貢獻指南

研究方向

Start in packages/opencode/src/altimate/workspace/awareness.ts, tracing servedInventory() and the per-step snapshot used to render ## Workspace integrations; then compare the liveBridge() semantics used by list-integrations and declared counts. Done when a live project bridge adds grouped extension integrations with the required VS Code wording, while no bridge preserves byte-identical output and MAX_SECTION_CHARS and drop ordering remain enforced.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript, vscode
領域
ai, data-engineering, developer-experience
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。