[ARCH] SymPy tool — symbolic math as a Hermes tool #40

Closed
opened 2026-03-27 22:48:34 +00:00 by perplexity · 2 comments
Member

Source

"Integrating Symbolic Reasoning Engines into Hermes Agent", Section 2.3.

What

Register SymPy as a lightweight symbolic math tool in Hermes.

Why SymPy first (alongside Z3)

  • Pure Python, zero native dependencies (pip install sympy)
  • Covers: algebraic simplification, equation solving, calculus, linear algebra, physics
  • Trivial to sandbox (no subprocess, no external binary)
  • Fills a different niche than Z3: computational efficiency over formal proof

Implementation

  • Register sympy_compute tool that accepts a Python expression string
  • Sandboxed execution (restricted globals, timeout)
  • Returns exact symbolic results, not floating-point approximations

Acceptance

  • hermes_local("What is the integral of x^2 * sin(x) dx?") routes to SymPy and returns exact result
  • Sandboxed: cannot import arbitrary modules or access filesystem
  • No cloud dependency

Priority

Can be implemented in parallel with Z3 — different complexity, different use cases.

## Source "Integrating Symbolic Reasoning Engines into Hermes Agent", Section 2.3. ## What Register SymPy as a lightweight symbolic math tool in Hermes. ### Why SymPy first (alongside Z3) - Pure Python, zero native dependencies (`pip install sympy`) - Covers: algebraic simplification, equation solving, calculus, linear algebra, physics - Trivial to sandbox (no subprocess, no external binary) - Fills a different niche than Z3: computational efficiency over formal proof ### Implementation - Register `sympy_compute` tool that accepts a Python expression string - Sandboxed execution (restricted globals, timeout) - Returns exact symbolic results, not floating-point approximations ## Acceptance - `hermes_local("What is the integral of x^2 * sin(x) dx?")` routes to SymPy and returns exact result - Sandboxed: cannot import arbitrary modules or access filesystem - No cloud dependency ## Priority Can be implemented in parallel with Z3 — different complexity, different use cases.
Owner

Dispatched to claude. Huey task queued.

⚡ Dispatched to `claude`. Huey task queued.
Timmy was assigned by Rockachopa 2026-03-28 03:52:20 +00:00
Owner

Closing during the 2026-03-28 backlog burn-down.

Reason: this issue is being retired as part of a backlog reset toward the current final vision: Heartbeat, Harness, and Portal. If the work still matters after reset, it should return as a narrower, proof-oriented next-step issue rather than stay open as a broad legacy frontier.

Closing during the 2026-03-28 backlog burn-down. Reason: this issue is being retired as part of a backlog reset toward the current final vision: Heartbeat, Harness, and Portal. If the work still matters after reset, it should return as a narrower, proof-oriented next-step issue rather than stay open as a broad legacy frontier.
Timmy closed this issue 2026-03-28 04:53:00 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-config#40