ALU-CLI
Agent Logic Unit — a lightweight CLI tool for high-speed, deterministic math evaluation. Built so AI agents (Claude, Codex, and others) can offload arithmetic to a reliable evaluator instead of hallucinating results.
Why
LLMs are unreliable at precise arithmetic. ALU-CLI is designed to be invoked as a skill by AI agents — giving them a trustworthy math co-processor for real computations.
| Metric | Agent + Python | Agent + ALU-CLI |
|---|---|---|
| Startup Latency | ~200–500ms | < 5ms |
| User Friction | Requires "Y/n" approval | Zero-touch (pre-authorized) |
| Dependencies | Python runtime + libraries | Zero (standalone binary) |
| Determinism | Potential syntax/env errors | Deterministic every time |
Install
Quickest — no installation required:
macOS (Homebrew):
macOS / Linux (shell installer):
|
Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://github.com/DakshBardoliwala/ALU-CLI/releases/latest/download/alu-installer.ps1 | iex"
alu init
Rust developers:
Agent Integration
Running alu init does two things automatically:
- Installs the skill — writes
SKILL.mdinto.claude/skills/alu/,.codex/skills/alu/, and.agents/skills/alu/so agents can discover ALU on startup - Pre-authorizes the command — patches
settings.jsonto addBash(alu *)to the allow list, so agents invoke ALU without prompting you for approval on every call
By default, skills are installed globally into your home directory. To install into a specific project instead:
The result: agents gain a zero-friction math co-processor with no manual configuration required.
Usage
Evaluate an expression
Examples:
# 6471.111111111111
# 24.707106781186546
# 1024
# 53
# 2.302585092994046
# -0.00000000000000011102230246251565
Supported operations (Non Exhaustive List)
| Category | Functions / Operators |
|---|---|
| Arithmetic | +, -, *, /, ^ |
| Trigonometry | sin, cos, tan, asin, acos, atan |
| Exponential | exp, ln, sqrt |
| Rounding | ceil, floor, abs |
| Constants | pi, e |
License
Apache 2.0