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

Claude Code Plugin for Reddit Business Research
A Claude Code plugin automates Reddit research for businesses by searching relevant posts, analyzing threads, and generating structured markdown reports with findings and source links. No API keys required—install via GitHub and run with a single command.

VSCode-Perplexity-MCP: Use Your Perplexity Account for Free AI Search in VS Code
An open-source MCP server that lets you connect your Perplexity.ai account to VS Code, giving Clawbot search, reasoning, and compute capabilities without paying per API request.

Analyzing AI Coding Tools: Dissecting 3,177 API Calls
A technical breakdown of 3,177 API calls unveils how four AI coding tools manage context windows, revealing inefficiencies and variances.

SecureCode Audit: A Linux Server Security Auditor Built with Claude Code
An indie dev built SecureCode Audit using Claude Code — run one SSH command, get a 22-check security report with prioritized fixes. First 30 signups get the full audit free.