feat: ask --json + clean resume packs (0.26.2)#50
Merged
Conversation
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>
ae2a197 to
cc7a70a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 →[]. Mirrorsthe existing
recall --json. Additive, no change to human output.is_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
Test plan
precompact_hook_appends_marker_decision_to_open_taskrewritten: markerIS in the journal JSONL, NOT in the pack
is_noise_flags_machine_markers_not_real_reasoningunit testcargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspace --all-targets(all green)RUSTDOCFLAGS=-D warnings cargo doc --workspace --no-depsCHANGELOG
## [0.26.2]entry (Added / Changed)