session-analysis

A command for examining exported QuickerAgent conversations, including the assistant's messages and tool calls. QuickerAgent is an AI agent environment.

In plain words
What is it for?
Use it to analyze a saved chat export, score the authoring workflow, identify the most important findings, and suggest changes to prompts, tools, or skills.
Why use it?
It helps locate inefficient prompts, tool errors, repeated attempts, and schema problems in a completed session instead of reviewing the whole transcript manually.

Command for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/quickerhub/quicker-rpc/session-analysis
Clone the repo
git clone --depth 1 https://github.com/QuickerHub/quicker-rpc

Made for: Cursor.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00518
Opus 5 $0.00000 $0.00259
Sonnet 5 $0.00000 $0.00104
Haiku 4.5 $0.00000 $0.00052

Measured 2d ago against content hash 51461b6ba87c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

session-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/commands/session-analysis.md · 64 lines

What it actually says

QuickerAgent 会话分析(session-analysis)

分析导出的 Agent 对话 JSON,自动跑 trace 规则并给出 prompt / tool / skill 优化建议。先 Read skill:.cursor/skills/quicker-agent-session-review/SKILL.md

何时执行

  • 用户提供了 quicker-agent-*.json 导出路径或附件
  • 用户问「分析这段 Agent 对话 / 优化 prompt / 为什么 tool 调用这么多」
  • benchmark 或手工试跑后,需要解释 trace 问题

输入

  • 格式:quicker-agent-chat-export v1(QuickerAgent 聊天 → 导出线程)
  • 默认目录:%AppData%\QuickerAgent\exports\

执行(Agent 自跑)

有明确路径(用户附件或 @ 文件):

pwsh -NoProfile -File ./scripts/Invoke-AgentSessionAnalysis.ps1 -ExportPath "<绝对路径>"

自动取最新导出(用户未指定文件):

pwsh -NoProfile -File ./scripts/Invoke-AgentSessionAnalysis.ps1 -Latest

机器可读 JSON

pwsh -NoProfile -File ./scripts/Invoke-AgentSessionAnalysis.ps1 -Latest -Json

保存报告(可选):

pwsh -NoProfile -File ./scripts/Invoke-AgentSessionAnalysis.ps1 -Latest -OutFile agent-gui/.local/session-analysis-last.md

等价 npm(在 agent-gui/):

pnpm agent-session -- "<export.json>"
pnpm agent-session -- "<export.json>" --json
pnpm agent-session -- --latest

完成后汇报

  • 匹配的 benchmark task id(若有)
  • E-axis PASS/FAIL
  • tool 次数、error/retry 次数、主要 findings(前 3 条)
  • Optimization hints 中优先级最高的一条及目标文件

若 exit code ≠ 0:列出 severity=error 的 finding 或 trace rubric violation。

禁止

  • 未读 export 就猜测 agent 行为
  • 把 UI 交互任务当 QuickerBench 唯一通过标准
  • 建议修改 step-runner inputParams 而不引用 export 中的 tool 证据
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 64 lines · 0 tokens per session scan A 51461b6ba87c

Subscribe to this mod's changes

session-analysis is a command published in the GitHub repository QuickerHub/quicker-rpc (13 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 518 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.