Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions AGENTS-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ pnpm run desktop:build:nsis:fast # Windows 安装器,release-fast profile

## 全局规则

### 流程产物

- 不要新增或更新 `docs/superpowers/**` 下的文件。临时计划、设计和实现过程文档仅保留在本地;
需要长期维护的架构或功能事实应合并到对应的已有文档,用户使用说明应放到所属应用的 README。

### 国际化

- Locale id、alias、fallback 和各形态默认语言统一由
Expand Down
7 changes: 7 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ type error and a bundling error can surface in either order; both are prefixed

## Global rules

### Process artifacts

- Do not add or update files under `docs/superpowers/**`. Keep temporary
planning, design, and implementation-process artifacts local. Move durable
architecture or feature facts into the existing document for that area, and
put user-facing guidance in the owning app README.

### Internationalization

- Locale ids, aliases, fallback rules, and surface defaults are owned by
Expand Down
11 changes: 7 additions & 4 deletions docs/features/session-runtime-usage-report-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ It also provides summary aggregation by model and session.
### Existing CLI surfaces

- CLI chat mode already recognizes slash commands.
- `/history` already shows basic session statistics.
- `/sessions` opens the session browser; `/resume`, `/continue`, and `/history` are aliases.
- `/status` shows current runtime facts and the latest primary-model request observed by the TUI.
- CLI session messages and tool cards already persist tool call count and tool duration.

## Original Gaps and Current Implementation Status
Expand Down Expand Up @@ -277,7 +278,8 @@ Risk if skipped:
Missing:

- CLI `AgentEvent` does not currently surface token usage, model round timing, or context compression as first-class events.
- CLI `/history` is basic and not equivalent to `/usage`.
- CLI `/status` reports the latest observed request rather than cumulative session usage; `/history`
is an alias for the session browser and is not a usage-report entrypoint.

Required change:

Expand Down Expand Up @@ -1206,7 +1208,7 @@ Steps:
Functional guardrails:

- Do not make `/usage` asynchronous model work.
- Do not replace `/history`; `/history` can remain the lightweight legacy command until a separate cleanup.
- Do not overload `/sessions` or its aliases with usage-report behavior.
- Do not require Desktop-only state for CLI reports.
- Do not make the CLI command depend on a Tauri API or Desktop workspace state.
- Do not print sensitive raw tool details that Desktop would redact.
Expand All @@ -1224,7 +1226,8 @@ Verification:

- CLI `/help` includes `/usage`.
- `/usage` output appears in chat without a model request.
- Existing `/history`, `/clear`, and normal message send behavior still work.
- Existing `/sessions` aliases, `/new` and `/clear` fresh-session behavior, and normal message send
behavior still work.
- CLI output redacts the same sensitive detail categories as Desktop P0.

### Task 6: Desktop `/usage` command and local Markdown insertion
Expand Down
313 changes: 0 additions & 313 deletions docs/superpowers/plans/2026-07-30-tui-manual-context-compaction.md

This file was deleted.

Loading