Skip to content

[Task]: agent-kit changes Estela is waiting for #123

Open

Description

@nyx-cell

Part of #88. Collected from the delivered work so the kit-side items are in one place. Each needs a change in PerfectPan/agent-kit and a kit bump here.

Problem

Several gaps found while building cost, the MCP tools, and the security review can only be closed in @rivus/agent-kit.

Proposed Solution

Redaction (first in line: the repository is public since 2026-11-17, so these are public known gaps; see #94):

  • Titles are cut to 80 characters and first prompts to 500 before anything redacts them, so a cut inside a home path leaves a fragment such as the start of the user name. The MCP tools work around it (trimCutHome); the browser's session list and the --pick labels do not. Redact before cutting, or keep the full text and let the display layer cut; then remove trimCutHome.
  • Pattern coverage: only sk-, AWS access key ids, GitHub, Slack, npm tokens, and PEM keys are replaced. Add assignments (PASSWORD=), Bearer/Basic values, URL userinfo, JWTs, sk_live_, glpat-, hf_, AIza…, Slack webhooks, AWS secret keys.
  • Home path matching does not require a path boundary: with home /tmp/x and a path under /private/tmp/x, the output reads /private~/….

Cost (follow-up of #101):

  • Transcript request events lack the cost an agent logged itself (OpenCode, Pi, Grok, ZCode) and Codex's priority-tier multiplier, so the viewer shows list price only; a Codex priority-tier request shows half of what was billed.
  • The bounded summary pass returns no priceable usage (per model and token class), so the session browser shows no cost. With it: store cost with the price snapshot version in the index and bump INDEX_CONTENT_REVISION.

Reading:

Acceptance Criteria

  • Each item is done in the kit and picked up here, or moved to its own issue with a decision.

Activity

  1. added this to the v1.0.0 milestone on Nov 13, 2026
  2. added
    taskMaintenance, refactoring, dependency, or tooling work
    on Nov 13, 2026
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

    taskMaintenance, refactoring, dependency, or tooling work

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions