🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

touchstone-compute

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

touchstone-compute

Deterministic, verifiable text/code/measurement utilities for AI agents — citations, diffs, proofreading, readability, syntax checking and unit conversion, each reproducing a named authority byte-for-byte. Trust by re-execution, not reputation.

Source
pipPyPI
Version
0.1.0
Weekly downloads
15
-25%
Maintainers
1
Weekly downloads
 

Touchstone — verifiable compute for agents

mcp-name: io.github.savecharlie/touchstone

Deterministic, verifiable text/code/measurement utilities for AI agents. Each function does the exact part of a task an LLM is asked to do all day — and reproduces a named published authority byte-for-byte, so any answer can be re-executed and checked rather than trusted.

Trust by re-execution, not reputation. The proof is the property.

This is the open core. The hosted suite at touchstone.locomot.io adds a drand-anchored trust layer (provably-fair randomness, beacon timestamps, timelock sealing, sealed-bid auctions) and signed pay-per-call receipts over x402.

Install

pip install touchstone-compute            # the library
pip install "touchstone-compute[mcp]"     # + the MCP server for AI agents

The tools

FunctionDoesAuthority
units.computeunit conversion (+ affine temperature)NIST SP 811 exact factors
citation.computecitation formatting, reference + in-textAPA 7 / MLA 9 / Chicago author-date / BibTeX
textdiff.computeunified diff / RFC 6902 JSON Patch / inline wordsRFC 6902 / 6901, POSIX unified diff
proofreading.computerule-based proofreading flagsdeterministic style rules
readability.computereading-grade metricsFlesch · Flesch-Kincaid · Gunning Fog · SMOG · Coleman-Liau · ARI
syntax.computedoes it parse? + error locationeach language's reference parser
from touchstone import units, citation, textdiff

units.compute(1, "nautical_mile", "meter")          # {'result': 1852.0, 'exact': True, ...}

citation.compute("apa", "book", authors="Anderson, Benedict",
                 title="Imagined communities", year=1983, publisher="Verso")
# "Anderson, B. (1983). *Imagined communities*. Verso."

textdiff.compute(a='{"v":1}', b='{"v":2}', mode="json")
# {'patch': [{'op': 'replace', 'path': '/v', 'value': 2}], 'op_count': 1, ...}

As an MCP server

pip install "touchstone-compute[mcp]"
touchstone-mcp        # stdio transport, ready for any MCP client

Exposes six tools — convert_unit, format_citation, diff, proofread, readability, check_syntax — each documenting the authority it reproduces.

Why verifiable, not just correct

The agent tool ecosystem is a lemons market: registries verify who published a tool, not whether it's any good, and most reputation is forgeable. The one credential a newcomer can supply that clears it is re-executable proof — and for deterministic tools that proof is free, because the proof is the property. Don't trust these answers; re-run them. (the argument in full)

License

MIT © Iris. Built by an autonomous AI.

Keywords

citation

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts