Sense: Go SDK for LLM-powered test assertions and structured text extraction

What Sense does
Sense is a Go SDK that leverages Claude for two primary use cases: evaluating non-deterministic output in tests and extracting structured data from unstructured text.
Key features
1. LLM-powered test assertions:
- Write expectations in plain English instead of rigid assertions
- Get structured feedback on failures including what passed, what failed, why, with evidence and confidence scores
- Example usage:
s.Assert(t, agentOutput).Expect("produces valid Go code").Expect("handles errors idiomatically").Run()
2. Structured text extraction:
- Extract typed structs from unstructured text
- Define a struct, pass a pointer, and schema is generated via reflection
- Schema enforcement happens server-side through Claude's forced tool_use
- Example usage:
var m MountError s.Extract("device /dev/sdf already mounted with vol-0abc123", &m).Run() fmt.Println(m.Device) // "/dev/sdf" - Useful for log parsing, support tickets, and API normalization beyond just testing
Additional functionality
Evalfor programmatic resultsComparefor A/B testing- Batching support with 50% cost savings
EvaluatorandExtractorinterfaces for mocking- Includes 135+ tests
Development context
The entire SDK was built using Claude Code, from initial design through implementation, tests, and documentation. The creator is seeking feedback on API design and what would make this useful for developer workflows.
📖 Read the full source: r/ClaudeAI
👀 See Also

Local Voice Control Setup for AI Agents on Apple Silicon
Setup local voice control for AI agents using Parakeet STT and Kokoro TTS on Apple Silicon for fast and cloud-independent interactions.

Commitment Issues: A Tool That Analyzes and 'Buries' Unfinished GitHub Repos
A developer built a tool called Commitment Issues that analyzes GitHub repositories to determine if they're abandoned, generates a 'death certificate,' and extracts the final commit message as 'last words.' The tool uses heuristics like commit frequency, last activity, and stars vs momentum, and was prototyped using Claude.

ClawBridge – Safely Expose Your Home Assistant Entities to OpenClaw
ClawBridge introduces a seamless way to expose Home Assistant entities to OpenClaw, enhancing automation while ensuring safety. Discover its features and benefits.

Claude-rank: Claude Code Plugin for AI Search Visibility Audits
Claude-rank is a free Claude Code plugin and CLI that audits technical foundations for AI search visibility, handling technical SEO, AI citability scoring, crawlability checks for AI bots, and automated fixes for discoverability issues.