Give an AI agent a reliable way to compute exact arithmetic results
Evaluate scientific calculator expressions from a script or CLI
Cross compile a single dependency-free calculator binary for multiple platforms
Detect calculation failures like division by zero through the program's exit code
| freakynit/llm-calc | advayc/wrapped | aegrail/aegrail-engine | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Go | Go | Go |
| Setup difficulty | easy | easy | hard |
| Complexity | 1/5 | 2/5 | 5/5 |
| Audience | developer | general | ops devops |
Figures from each repo's GitHub metadata at analysis time.
On macOS and Windows, downloaded binaries may need a security flag cleared before they will run.
llm-calc is a tiny command line calculator built specifically to be called by AI agents and scripts rather than typed by a person. The idea is that language models are not reliable at doing arithmetic themselves, so instead of guessing at a math answer, an agent can hand the expression off to this small program and get back a consistent, correctly computed result every time. It supports the operations you would expect from a scientific calculator: basic addition, subtraction, multiplication, division, remainder, exponents, and factorials, along with common constants like pi and e, and functions such as square root, absolute value, rounding, logarithms, and the standard trigonometric functions, which all work in radians with helper functions to convert to and from degrees. You call it by passing a single quoted mathematical expression as an argument, such as computing the square root of 81 plus the absolute value of negative four, and it prints the numeric result, optionally letting you control how many digits of precision are shown. The tool has no external dependencies and is written in Go, so it can be built with a single Go build command after cloning the repository, and it can also be cross compiled for Linux, macOS, and Windows from any one of those platforms. Pre-built binaries are also available to download directly from the project's releases, though on macOS and Windows you may need to clear a security flag the operating system adds to downloaded files before the program will run. If an expression is invalid, results in dividing by zero, or otherwise cannot produce a normal number, the program exits with a non-zero status so a calling script or agent can detect that something went wrong.
A dependency-free command line calculator designed for AI agents to call so they get accurate scientific-calculator math instead of guessing at arithmetic.
Mainly Go. The stack also includes Go.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.