Skip to content

refacto(cmds): strip decorator noise from filter output#2289

Merged
aeppling merged 1 commit into
developfrom
refacto/strip-output-decorators
Jun 5, 2026
Merged

refacto(cmds): strip decorator noise from filter output#2289
aeppling merged 1 commit into
developfrom
refacto/strip-output-decorators

Conversation

@aeppling
Copy link
Copy Markdown
Contributor

@aeppling aeppling commented Jun 5, 2026

Separator lines (═══, ---) and an emoji status marker added tokens to filtered output without giving the LLM any extra signal — the summary headers and section labels already delimit the content.

RTK output must never add noise over the raw command. This strips those decorators across the command filters, keeps the semantic labels (e.g. Changes:), and replaces the one emoji marker with plain monochrome unicode.

No behavior change beyond cleaner output. cargo fmt/clippy clean, all tests pass.

Separator lines (═══, ---) and an emoji status marker cost tokens
without adding signal for the LLM — RTK output must never add noise
over raw. Semantic labels are kept; the emoji is swapped for plain
monochrome unicode.
Copy link
Copy Markdown
Collaborator

@KuSh KuSh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@aeppling aeppling merged commit 0a630fe into develop Jun 5, 2026
18 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 5, 2026
thehoff added a commit to thehoff/contextcrawler that referenced this pull request Jun 7, 2026
…port)

Port upstream rtk-ai/rtk rtk-ai#2289 (16d6599): remove pure-decoration tokens from
LLM-bound filter output. Output-string-only — no logic changes. RTK output
should never add noise over the raw command; these decorators cost tokens with
zero semantic value to an agent.

Stripped across ~16 command filters:
- Box-drawing separator lines (═══…) — cargo, go, golangci, lint, next, tsc,
  mypy, pip, pytest, ruff, prettier, prisma, format, dotnet, rspec, and the
  format_tool_failure helper in display_helpers.
- Dash headers → plain labels: "--- Changes ---" → "Changes:" (git),
  "--- first 10 lines ---" → "first 10 lines:" (wget); dotnet dash rules dropped.
- Emoji ❌ → monochrome ✗ (rspec, incl. test assertions).

Deliberately KEPT (human-TTY / not filter output): the gain dashboard
period-table and progress bar, and the tracking inflation-test fixtures.

Ported manually — a cherry-pick of 16d6599 conflicted on fork divergence
(cargo/rspec cap constants + tee logic) and would have dragged in unrelated
logic; the decorator edits were applied by hand instead. No insta snapshots in
this fork (inline asserts only); affected assertions updated. Savings only
increase (less fixed overhead per invocation). council-reviewed (codex + mmax,
file-by-file, "clean"). 3024 tests pass (7 pre-existing hooks::integrity
/tmp-mode env failures unrelated).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
thehoff added a commit to thehoff/contextcrawler that referenced this pull request Jun 7, 2026
… pivot

Tag the current develop as the fork's first own release (contextcrawler-v0.2.0),
bundling the 2026-06-06 fix batch + the first external community contribution
(library build, PR #185 by Danny Wilson). This is the baseline we branch the
"CLI consumes the library" pivot from.

Bumps Cargo 0.1.10 -> 0.2.0 (fork's own version line; upstream rtk v0.x tags are
unrelated, hence the fork-namespaced tag). CHANGELOG [0.2.0] documents:
- SECURITY: rtk-ai#2286 never-auto-allow + the live-path Ask fix.
- FIXED: tsc/mypy/next lying-success filters.
- PERF: grep/find 40->67%, rtk-ai#2289 decorator strip.
- ADDED: library MVP (output_summary + lib.rs), with the dead-code caveat that
  the bin does not yet consume the lib (next-release work).

council-reviewed (metadata-only, approved). No source changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

2 participants