Skip to content

feat: ask --json + clean resume packs (0.26.2)#50

Merged
Shahinyanm merged 3 commits into
mainfrom
feat/clean-pack
Jun 16, 2026
Merged

feat: ask --json + clean resume packs (0.26.2)#50
Shahinyanm merged 3 commits into
mainfrom
feat/clean-pack

Conversation

@Shahinyanm

@Shahinyanm Shahinyanm commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

Two host-facing improvements for the Loom integration, released as 0.26.2.

  • ask --json — semantic search emits a JSON array (task_id,
    project_hash, event_type, text, score); no matches → []. Mirrors
    the existing recall --json. Additive, no change to human output.
  • Clean resume packsis_noise() drops auto-recorded compaction /
    session-continuation markers (which the classifier sometimes files as
    decisions) from the recent-events, rejected and active-decisions sections,
    plus de-dupes exact repeats. The append-only journal still records every
    marker; only the rendered pack hides them.

Type of change

  • Feature (non-breaking)

Test plan

  • precompact_hook_appends_marker_decision_to_open_task rewritten: marker
    IS in the journal JSONL, NOT in the pack
  • is_noise_flags_machine_markers_not_real_reasoning unit test
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace --all-targets (all green)
  • RUSTDOCFLAGS=-D warnings cargo doc --workspace --no-deps

CHANGELOG

  • Added ## [0.26.2] entry (Added / Changed)

Shahinyanm and others added 3 commits June 16, 2026 13:19
Add --json to `ask` (semantic search, current project), mirroring recall --json:
emits a JSON array [{task_id, project_hash, event_type, text, score}]. Default
(no flag) behaviour unchanged. 119 cli tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The pack's Active decisions / Rejected / Recent events sections were polluted
with machine-generated markers (Claude Code's 'This session is being
continued…' / 'Conversation compacted at…') that the classifier filed as
decisions, plus exact duplicates — so a task's reasoning read as repeated
essays. Add a conservative is_noise() filter for those known prefixes and
de-duplicate by text within each section. Additive: same pack structure, just
cleaner content; existing behavior for noise-free journals is unchanged. 291
tests green (+ golden packs).
…release 0.26.2

- cargo fmt on pack.rs noise tests (CI fmt gate was red)
- precompact_hook_appends_marker_decision_to_open_task now asserts the
  marker is recorded in the append-only journal but filtered OUT of the
  rendered pack (the new is_noise behavior), instead of expecting it in
  the pack
- bump workspace to 0.26.2 + CHANGELOG (ask --json, clean pack)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Shahinyanm Shahinyanm changed the title Feat/clean pack feat: ask --json + clean resume packs (0.26.2) Jun 16, 2026
@Shahinyanm Shahinyanm merged commit 81aca5e into main Jun 16, 2026
7 checks passed
@Shahinyanm Shahinyanm deleted the feat/clean-pack branch June 16, 2026 09:34
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