Skip to content

[FEATURE] 能力清单与数据库概览:减少 Agent 前置探测调用 #142

Closed

Description

@codeasier

功能描述

Agent 进入分析前的探测成本高、且存在 SQL 拼装回退:

  • 泄漏技能进入诊断前逐个 --template-info 探测 7 个模板(skills/pt-snap-memory-leak/SKILL.md Prerequisite Phase);
  • 部分分析仍退回手写只读 SQLite:preexisting-live 聚合、freed-block 生命周期分桶(同文件 Step 4 / Step 6),依赖宿主机 sqlite3 CLI 并由 Agent 拼装 SQL。

使用场景

Agent 首次接触环境时需要一次性了解:CLI 版本、可用模板及参数契约、可用技能、目标数据库概况(设备、trace 边界、导入元数据状态)。

期望的实现方式

验收标准

  • 能力清单命令(含 --json)落地
  • 数据库概览命令(只读)落地
  • 泄漏技能的两处 sqlite3 回退被正式模板替代
  • 诊断技能前置探测调用次数显著减少(在技能评估中记录调用数对比)

Activity

  1. codeasier commented on Sep 17, 2026

    @codeasier
    OwnerAuthor

    归入 #136 Agent 友好化路线图 P1;收编回退 SQL 的部分依赖 #141 的模板元数据扩展。

  2. added a commit that references this issue on Sep 19, 2026
    6216b17
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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions