tools capa

tools-filler-strip

tools-filler-strip: strip model-output filler from text -- drops throat-clearing and rhetorical-framing lines, scrubs inline hedges, marks jargon flips as JARGON, squeezes blank runs. Phrase tables are data in-source; matching is deterministic, no AI, no regex dependency. Doubles as an agent-harness Stop-hook filter (--hook) that re-emits a cleaned reply only when the filter changed something.

tools-filler-strip: strip model-output filler from text -- drops throat-clearing and rhetorical-framing lines, scrubs inline hedges, marks jargon flips as JARGON, squeezes blank runs. Phrase tables are data in-source; matching is deterministic, no AI, no regex dependency. Doubles as an agent-harness Stop-hook filter (--hook) that re-emits a cleaned reply only when the filter changed something.

Tiertools
Roletooling
Pathcrates/tools/filler-strip
Edition2021
Targetstools-filler-strip, tools_filler_strip
Public items5 across 0 modules
Tests10

What it is for

Strip model-output filler from text.

Three passes, all deterministic phrase-table matching (no regex, no AI): 1. whole-line drop: throat-clearing and rhetorical-framing lines; 2. inline scrub: hedges removed, "worth noting"/"key insight" padding removed, jargon flips replaced with the literal marker JARGON (marked, not silently rewritten -- prose edits stay visible); 3. blank-run squeeze so cuts do not leave holes.

The phrase tables are the specification: extend them there, prove the addition with a test naming the sentence it kills.

Capabilities

crate root

Strip model-output filler from text.

Item
pub const JARGON_MARKER: & str
fn last_assistant_text(transcript_jsonl : & str) -> Option <String>

FilterOutcome

Strip model-output filler from text.

Item
pub struct FilterOutcome
FilterOutcome :: fn changed(& self, original : & str) -> bool
fn strip_filler(input : & str) -> FilterOutcome

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub struct FilterOutcomeResult of a filter pass: the cleaned text and the lines dropped whole.
FilterOutcome :: fn changed(& self, original : & str) -> boolTrue when the filter changed anything at all.
pub const JARGON_MARKER: & strMarker substituted for a jargon phrase.
fn strip_filler(input : & str) -> FilterOutcomeFilter input: drop filler lines, scrub the rest, squeeze blank runs.
fn last_assistant_text(transcript_jsonl : & str) -> Option <String>Extract the last assistant text message from a session transcript (JSONL, one entry per line; assistant entries carry message.content = {type:"text", text} blocks).

No pub use re-exports: every item above is declared in this crate.

Boundary

Depends on no other workspace tier.

Shares tier tools with 84 other crates: tools-advisory-reach, tools-archive-guard, tools-artifact-scaffold, tools-ask-ai-core, tools-ask-ais, tools-ask-gemini, tools-book, tools-book-report, … (84 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)tools
Architectural role (taxonomy)tooling
Locationcrates/tools/filler-strip
Vocabulary in force (lexicon)current

Dependencies

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
serde_json^1noalways

Development. None.

Build. None.

Depended on by. Nothing in this workspace.

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
bintools-filler-strip`src/main.rs`
libtools_filler_strip`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests10
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root400

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc55
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 5
    "No rustdoc detected" : 0

Metrics

MetricValue
Rust source files2
Source lines415
Code lines324
Public API items5
Public modules0
Tests10
Examples0
Cargo features0
Direct runtime dependencies1
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "constant" : 1
    "function" : 2
    "method" : 1
    "struct" : 1
pie showData
    title Rust source composition
    "Code" : 324
    "Blank or comment" : 91

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las tools · Manual