Skip to main content
Glama

Quantum Agent

Multi-provider AI agent with quota-aware failover, atomic checkpointing, and MCP server support.

Status — Honest

  • Phase 3 (current): Provider orchestration + safety + persistence. All 18 audited bugs fixed with tests.

  • Phase 4 (future): Adaptive branch engine, independent verifier, multi-agent execution. NOT implemented yet.

Do not treat weak-heuristic results as verified. Only verified results (Phase 4) will be status=done.

Related MCP server: sequential-thinking-mcp

Install

git clone https://github.com/YOUR_USERNAME/quantum-agent.git
cd quantum-agent
npm install
npm run build
npm link

Quick Start

qa add -t deepseek -n "DeepSeek"     # prompts for key
qa add -t gemini -n "Gemini"
qa models
qa connect-all
qa ask "What is 2+2?"

Commands

Command

Purpose

qa add

Add provider (key prompt, no shell history leak)

qa models

List all models from all enabled providers

qa connect <id> [model]

Pick model interactively or directly

qa connect-all

Auto-connect with best defaults

qa list

Show providers (API keys redacted)

qa ask <prompt>

One-shot (uses weak-heuristic gate — status=candidate)

qa run <question> --hours 24

Full brain loop with failover + quota pause

qa status

Environment + quota + paused tasks

qa resume

Resume all paused tasks

qa remove <id>

Remove provider

Supported providers

openai, claude, gemini, deepseek, ollama, custom (OpenAI-compatible).

MCP Client Config

{
  "mcpServers": {
    "quantum-agent": {
      "command": "node",
      "args": ["/absolute/path/to/quantum-agent/dist/index.js"]
    }
  }
}

Safety model

  • API keys stored in .quantum-providers.json (chmod 600, gitignored)

  • ScopeGuard for authorized scans: strict URL matching, redirect revalidation, private IP blocking

  • Checkpoints signed with HMAC-SHA256 + SHA-256 checksum, atomic write + parent fsync

  • Task locks prevent duplicate execution

  • MCP responses never include raw API keys

CI

.github/workflows/ci.yml runs build + tests on push. If GitHub PAT lacks workflow scope, either:

  1. Add workflow scope to PAT, or

  2. Add the workflow file via GitHub web UI.

Do not delete the workflow to bypass this. Automated protection is required.

Tests

npm test

All tests use mocked HTTP and isolated temp directories. Zero real API credits.

License

MIT

Available Tools

7 tools
quantum_explore_branchesD

Decomposes any complex problem into orthogonal quantum basis states (multi-dimensional parallel hypotheses).

Inputs: problem (required), intensity.

quantum_init_taskC

HOST AI CONTROL: Initializes a quantum superposition task directly for the connected AI (Gemini, Claude, ChatGPT). Generates orthogonal basis states without requiring external API keys.

Inputs: target (required), intensity, session_id.

quantum_session_statusB

Queries persistent status, continuous uptime, evaluated possibilities, and convergence state for a Quantum Agent session.

Inputs: session_id (required).

quantum_solveB

Autonomous solver: Solves complex coding, research, or diagnostic problems using superposition search and exact convergence verification.

Inputs: target (required), model, provider, intensity.

quantum_stepC

HOST AI CONTROL: The connected AI directly submits its evaluation for a quantum branch. Quantum Agent applies Grover amplitude amplification or destructive pruning, tests convergence, and returns the next priority branches.

Inputs: state_id (required), reasoning (required), session_id (required), evaluation_score (required), +3 more.

quantum_system_infoB

Displays Quantum Agent operating mode (Host AI direct control vs Standalone Terminal mode) and active system parameters.

Inputs: no named parameters.

quantum_tunnelC

Forces an out-of-the-box lateral quantum tunnel leap to escape local reasoning traps or defensive bottlenecks.

Inputs: target (required), bottleneck (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 7 tools

    Disambiguation2/5

    quantum_init_task and quantum_explore_branches both claim to decompose a problem into orthogonal basis states, differing only by a 'host AI control' nuance, and quantum_solve vs. quantum_step (autonomous vs. host-driven evaluation) overlaps heavily. quantum_tunnel and quantum_system_info are distinct, but the core workflow tools have unclear boundaries that will cause misselection.

    Naming Consistency4/5

    All tools use a uniform snake_case quantum_ prefix, which is highly predictable. The only minor deviation is mixing verb-style (step, solve, tunnel, init_task) with noun-style (session_status, system_info) suffixes, which is still readable.

    Tool Count4/5

    Seven tools is a well-scoped size for a quantum-search workflow covering init, explore, step, solve, status, info, and tunnel. The count would be ideal if the near-duplicate init/explore pair were consolidated.

    Completeness3/5

    The set covers initialization, exploration, iteration, solving, and status inspection, but has no session termination/reset, no session listing, and no explicit result/answer retrieval endpoint — only status queries. These gaps force agents to leave sessions dangling and infer outcomes from status.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Remote MCP server for dynamic and reflective problem-solving through structured thinking. Enables step-by-step reasoning with branching, revision tracking, and session management.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to drive governed software changes, measure trajectory and boundary integrity after each mutation, surface drift and invariants, investigate incidents, and compare counterfactual futures before approving a change.
      3
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients to run dialectical reasoning workflows (thesis → antithesis → synthesis) and player-coach autocoding loops, including structured prompt generation, independent coach verification, and session persistence.
      -