Skip to content

Count attached grep dependencies in code telemetry - #1368

Merged
zlareb1 merged 1 commit into
mainfrom
fix/grep-dependency-outcomes
Nov 24, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/grep-dependency-outcomes

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 24, 2026

Copy link
Copy Markdown
Member

Related: #1360

Changelog category

  • Improvement

Changelog entry

Code grep telemetry counts source bodies delivered as related dependencies. Plugin capture includes the files that supplied those bodies.

Why

An exact grep can provide definitions of dependencies alongside its matching lines. Existing source delivery counters and plugin capture omitted those definitions, so an agent could use code the trace did not account for.

Scope and risk

The existing numeric delivery counters include dependency rows. Both plugins collect dependency paths through the existing deduplication and path limit.

Compatibility, rollout and rollback

  • Wire: existing response and metric formats.
  • Operator steps: none.
  • Rollback: revert the counter and plugin changes.

Tests

Replayed a recorded grep response containing two dependency bodies. The server counted both bodies and 600 source characters. The Claude Code and Codex capture functions retained both dependency paths exactly once. Checked formatting, lint, types, plugin syntax and the generated plugin mirror. Regression assertions cover both projections. Unit execution is left to CI.

AI assistance in the code

  • AI-generated. Codex checked the counter and plugin projections against the recorded tool response.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Generated Codex plugin copies are current.
  • Both plugin manifests use the next version.
  • Commits are signed off.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 24, 2026 11:23pm UTC
loom-telemetry Ready Ready Preview Nov 24, 2026 11:23pm UTC

Request Review

@zlareb1
zlareb1 merged commit d65f17c into main Nov 24, 2026
75 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant