Calctool
/install calctool
CalcTool
Utility toolkit — run, check, convert, analyze, generate, preview, batch, compare, and manage data entries. Each command logs input with timestamps for full traceability and review.
Commands
| Command | Description |
|---|---|
calctool run \x3Cinput> |
Log a run entry (no args = view recent runs) |
calctool check \x3Cinput> |
Log a check entry (no args = view recent checks) |
calctool convert \x3Cinput> |
Log a convert entry (no args = view recent converts) |
calctool analyze \x3Cinput> |
Log an analyze entry (no args = view recent analyses) |
calctool generate \x3Cinput> |
Log a generate entry (no args = view recent generates) |
calctool preview \x3Cinput> |
Log a preview entry (no args = view recent previews) |
calctool batch \x3Cinput> |
Log a batch entry (no args = view recent batches) |
calctool compare \x3Cinput> |
Log a compare entry (no args = view recent compares) |
calctool export \x3Cinput> |
Log an export entry (no args = view recent exports) |
calctool config \x3Cinput> |
Log a config entry (no args = view recent configs) |
calctool status \x3Cinput> |
Log a status entry (no args = view recent statuses) |
calctool report \x3Cinput> |
Log a report entry (no args = view recent reports) |
calctool stats |
Summary statistics — entry counts per category, total, data size |
calctool search \x3Cterm> |
Search across all log entries |
calctool recent |
Show last 20 history entries |
calctool help |
Show usage info |
calctool version |
Show version string |
Note: The
exportandstatuscommands in the case dispatch also have utility variants (_export \x3Cfmt>and_status) that provide structured export (json/csv/txt) and health check output respectively. However, the primary case match routes to the logging version.
Data Storage
All data is stored locally in ~/.local/share/calctool/. Each command writes to its own .log file (e.g., run.log, check.log, analyze.log). A unified history.log records every action with timestamps. No external services or databases required.
Log format: YYYY-MM-DD HH:MM|\x3Cvalue>
Export formats: JSON, CSV, or plain text (via the _export helper function).
Requirements
- bash (version 4+ recommended)
- Standard POSIX utilities:
date,wc,du,grep,tail,head,cat - No external dependencies, no network access needed
- Works on Linux, macOS, and WSL
When to Use
- Logging calculation results — Record computations, conversions, or analysis results with
run,convert, oranalyzefor future reference - Batch processing and comparison — Log batch operations with
batchand side-by-side comparisons withcompare - Generating and previewing outputs — Use
generateto log generated results andpreviewto log draft outputs before finalizing - Configuration and status tracking — Record configuration changes with
configand system states withstatusfor audit trails - Reporting and data export — Create
reportentries for periodic summaries and usestatsorsearchto review all logged data
Examples
# Log a calculation run
calctool run "2 * (3 + 4) / 5 = 2.8"
# Log a unit conversion
calctool convert "100 USD to CNY = 725.30"
# Log an analysis result
calctool analyze "Dataset A: mean=45.2, std=12.1, n=500"
# Compare two results
calctool compare "Plan A: $12,000/yr vs Plan B: $10,800/yr — B saves 10%"
# Generate a report entry
calctool report "Q1 2026 summary: 142 entries, 98% accuracy"
# Search for specific entries
calctool search "USD"
# View summary statistics
calctool stats
# View recent activity
calctool recent
# Check health status
calctool status
How It Works
CalcTool stores all data locally in ~/.local/share/calctool/. Each command logs activity with timestamps for full traceability. Use stats to see a summary of entries per category with total counts and data size. Use search to find specific entries across all logs, recent to view the latest activity, or the built-in export helper to back up your data in JSON, CSV, or plain text format.
Powered by BytesAgain | bytesagain.com | [email protected]
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install calctool - After installation, invoke the skill by name or use
/calctool - Provide required inputs per the skill's parameter spec and get structured output
What is Calctool?
Perform basic, scientific, and financial calculations from the terminal. Use when computing interest, converting units, or solving quick math. It is an AI Agent Skill for Claude Code / OpenClaw, with 310 downloads so far.
How do I install Calctool?
Run "/install calctool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Calctool free?
Yes, Calctool is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Calctool support?
Calctool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Calctool?
It is built and maintained by BytesAgain2 (@ckchzh); the current version is v2.0.1.