New advertisers: 50% off your first month with code FIRSTMONTHSee slots
kruschdev avatar

Krusch Grounded Harness

kruschdev/grounded-harness

Turn-0 workspace grounding, duplicate-call spin-loop blocking, and a defect-only stop gate for coding agents.

tools
7
transport
STDIO
last updated
Nov 19, 2026
View on GitHub

What it does

  • Grounds the workspace with krusch_ground_workspace, introspecting CSV/TSV, JSON/JSONL, read-only SQLite DDL, code symbols, and Raw-RAG docs with no LLM calls
  • Checks proposed calls with krusch_grounded_intercept and records results with krusch_grounded_outcome, blocking repeated failing calls as spin loops and memoizing repeat reads
  • Runs krusch_grounded_verify_stop to enforce staged-diff verification and catch output defects, and reports session metrics through krusch_grounded_summary
  • Runs locally on Node 22 node:sqlite with no cloud calls or Docker, and fits agent sessions that need schema grounding and loop control

Tools

7 tools

Public tool metadata for what this MCP can expose to an agent.

krusch_ground_workspaceIntrospect CSV/TSV, JSON/JSONL, read-only SQLite DDL, code symbols, and 256/32 Raw-RAG docs (0 LLM calls), defer >12 tools via BM25, and emit prefixHash.

Introspect CSV/TSV, JSON/JSONL, read-only SQLite DDL, code symbols, and 256/32 Raw-RAG docs (0 LLM calls), defer >12 tools via BM25, and emit prefixHash.

No parameter schema in public metadata yet.

krusch_resolve_scale_profileResolve SMALL_MODEL, MID_MODEL, or FRONTIER_REASONING policy from model & thinking hints.

Resolve SMALL_MODEL, MID_MODEL, or FRONTIER_REASONING policy from model & thinking hints.

No parameter schema in public metadata yet.

krusch_grounded_session_startStart or reset a SQLite-tracked session seeded with seen_chunk_ids, file_digests, and schema token savings.

Start or reset a SQLite-tracked session seeded with seen_chunk_ids, file_digests, and schema token savings.

No parameter schema in public metadata yet.

krusch_grounded_interceptCheck proposed tool calls against frozen policy floor, secret-leak guard, duplicate-write guard, Turn-0 digest cache, read memoization, and BLOCK_SPIN_LOOP.

Check proposed tool calls against frozen policy floor, secret-leak guard, duplicate-write guard, Turn-0 digest cache, read memoization, and BLOCK_SPIN_LOOP.

No parameter schema in public metadata yet.

krusch_grounded_outcomeRecord tool outcome (COMMITTED/FAILED), cache read previews, preserve timeout partial_stdout, and update pending_diffs_count.

Record tool outcome (COMMITTED/FAILED), cache read previews, preserve timeout partial_stdout, and update pending_diffs_count.

No parameter schema in public metadata yet.

krusch_grounded_verify_stopZero-turn-when-healthy stop gate enforcing staged-diff FORCE_VERIFY and inspectOutputDefects.

Zero-turn-when-healthy stop gate enforcing staged-diff FORCE_VERIFY and inspectOutputDefects.

No parameter schema in public metadata yet.

krusch_grounded_summaryReturn session metrics (exploratoryReads, memoizedReads, spinLoopsBlocked, outputDefectsCaught, timeoutsWithPartialStdout, turn0DuplicatesSuppressed) & event log.

Return session metrics (exploratoryReads, memoizedReads, spinLoopsBlocked, outputDefectsCaught, timeoutsWithPartialStdout, turn0DuplicatesSuppressed) & event log.

No parameter schema in public metadata yet.

Readme

Krusch Grounded Harness (krusch-grounded-harness v0.2.0)

License: MIT Node.js >= 22 Zero Docker MCP Tools: 7 Annotated DolphinBench Open-Weights 57.33% ($0.00)

Standalone Turn-0 workspace grounder, duplicate-call spin-loop blocker, and zero-turn defect-only output gate for AI coding and data agents. Runs 100% locally on Node 22 node:sqlite (7 MCP tools + HTTP :3782 gateway + ESM library) with zero cloud calls.


View the full README on GitHub

Details

Repository
github.com/kruschdev/grounded-harness
Categories
Developer Tools, AI Agents & LLM Apps
Package
krusch-grounded-harness
Transport
STDIO
Registry
MCP registry, active

More from kruschdev

All 6

Similar to Krusch Grounded Harness

More Developer Tools