dsh-cc/dsh-cc--packages-compat-cc-serena-first ↗★ 1

@dsh-cc/serena-first

Serena-first prompt steering on the CC preset: a registered policy section plus replace-not-mutate appends to the upstream tool:read / tool:grep sections while a serena MCP server is ready 适合已接入 serena MCP、希望优先用符号工具的用户。

パッケージ
@dsh-cc/serena-first
互換性
未検証
Harness ピア範囲
>=0.1.5-rc.1
Cordis ピア範囲
>=0.1.5-rc.1
バージョン
0.7.1
ライセンス
Apache-2.0
最終更新
2026/09/16

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

@dsh-cc/serena-first

English | 中文

Serena-first prompt steering for the CC preset (packages/preset/cc).

When a serena MCP server is connected (repo .serena/project.yml, user-scoped ~/.claude.json entry — see docs/code-intelligence-health.md), the session carries ~30 mcp__serena__* symbol tools that answer code questions without loading whole files. This plugin makes the system prompt say so:

  • Contribution A — a registered section serena-first (order 105) with a dynamic provider that renders the policy paragraph while serena is ready and an empty string (dropped at render) otherwise.
  • Contribution B — a system-prompt/assemble waterfall listener ({ prepend: true }, outermost, so its return value is authoritative) that replace-not-mutate appends one sentence each to the upstream tool:read and tool:grep sections while serena is ready.

Detection is registry-only and live: a duck-typed mcpConnections entry (state: 'ready' with toolCount > 0), re-evaluated on every assembly, so a mid-session disconnect stops the steering on the next turn. Scope-less assemblies pass through (mirrors tool-append-order); tool:write, tool:edit, and tool:glob are never rewritten.

Config: enabled (default true), serverName (default 'serena') — the latter drives both detection and every emitted mcp____* name.