Skip to content

Latest commit

 

History

5,782 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TORQUE

An automated software factory for Claude Code.

License: MIT Node.js

TORQUE turns Claude Code into an autonomous software factory. It discovers what needs building, plans the work, dispatches tasks across local and cloud LLM providers in parallel, verifies quality, auto-remediates failures, and cuts releases — with you as the architect at the control panel.

Requirements

  • Claude Code — Claude is the architect; TORQUE is the factory floor.
  • Node.js 24+
  • At least one execution provider — Ollama (free, local), Codex CLI, or any supported cloud API key

Quick Start

# Install
git clone https://github.com/torque-ai/torque-ai.git
cd torque-ai/server && npm install

# Start the server
node index.js

On first startup, TORQUE registers itself as an MCP server in your Claude Code configuration. Open any Claude Code session and TORQUE's tools are available immediately.

Your first task through Claude

Tell Claude what you need. Claude decides when to use TORQUE:

"Write unit tests for auth.ts"

Claude analyzes the task, calls TORQUE's smart_submit_task tool, and TORQUE selects the best available provider, dispatches the work, monitors the output for stubs and truncation, verifies the build, and returns the result. If the provider fails, TORQUE retries on the next one in the fallback chain.

"Refactor the payment module and write tests for it — run both in parallel"

Claude creates a TORQUE workflow with two tasks, routes each to the appropriate provider, and monitors both simultaneously.

Optional: Visual Verification (Peek)

TORQUE can inspect rendered UI through the optional @torque-ai/peek companion. Install it on the workstation whose display TORQUE should capture, then start the local Peek server:

npm install -g @torque-ai/peek
torque-peek check
torque-peek start

By default, Peek binds to 127.0.0.1:9876. When TORQUE can reach that host, tools such as peek_ui, peek_diagnose, and peek_interact can capture screenshots, read UI element trees, and send basic input events for visual verification.

For browser-native work, SnapScope also exposes an accessibility-tree-first contract in server/plugins/snapscope/handlers/browser-capture.js. Use peek_browser_state or peek_ui with browser_state: true to get indexed interactive elements from Playwright/CDP, and use peek_browser_action for the safe action vocabulary: click, input, extract, scroll, and switch_tab. Screenshots are a fallback via vision_fallback or include_screenshot, not the default browser observation. storage_state_path can preserve Playwright session cookies and local storage without putting credentials in prompts.

For a separate display host, expose Peek with a shared token and register the host in TORQUE:

torque-peek start --host 0.0.0.0 --token <shared-secret>
register_peek_host { name: "remote-display", url: "http://display-host:9876" }

Use --host 0.0.0.0 only for trusted remote display hosts, and pair it with --token so requests must include the matching Peek token.

How It Works

Claude Code talks to TORQUE through MCP (Model Context Protocol). The factory operates as an autonomous pipeline:

  1. Discover — Scouts scan the codebase for issues, missing tests, security gaps, and visual regressions
  2. Plan — Claude architects the work and TORQUE generates task DAGs with dependency ordering
  3. Route — Smart routing analyzes each task's complexity and dispatches to the best available provider
  4. Execute — Local LLMs, cloud APIs, and CLI tools run tasks in parallel across your infrastructure
  5. Verify — Quality gates check for stubs, truncation, build failures, and regressions automatically
  6. Remediate — Failures are diagnosed and resubmitted with error context — no manual intervention
  7. Release — Version bumps, changelogs, and git tags are cut from task metadata

You set the direction. The factory runs lights-out.

Providers

TORQUE ships with support for several provider types. What's available depends on what you have installed and configured.

Type Examples Setup
Local LLM Ollama (any model you've pulled) Install Ollama, pull a model, TORQUE auto-discovers
CLI Tools Codex, Claude Code Install the CLI, authenticate, enable in TORQUE
Cloud APIs DeepInfra, Groq, Cerebras, Google AI, Hyperbolic, OpenRouter Set your API key, enable the provider

Additional providers can be configured through Claude — ask it to run configure_provider or add_ollama_host to add new providers, models, or remote Ollama instances on your LAN. Provider routing, fallback chains, and model assignments are all configurable at runtime.

Features

  • Scout Discovery — Automated codebase scanning for security issues, quality gaps, missing tests, performance problems, and visual regressions
  • Smart Routing — Analyzes task complexity and routes to the best provider based on health, capacity, cost, and capability
  • DAG Workflows — Dependency-ordered task graphs with parallel execution and automatic output injection
  • Auto-Remediation — Failed tasks are diagnosed, retried with error context, and re-routed through provider fallback chains
  • Quality Gates — Stub detection, truncation checks, build verification, approval gates, and regression detection
  • Visual Verification — Automated UI capture and analysis via peek_ui — the factory inspects its own output
  • Auto-Release — Semver bumps, changelogs, and git tags generated from task metadata on completion
  • Team Pipeline — Planner → QC → Remediation loop with streaming verdicts and dual-pass testing
  • Multi-Host — Distribute work across LAN Ollama instances with auto-discovery and load balancing
  • Cost Tracking — Per-provider usage tracking, budget alerts, and automatic routing downgrades
  • Policy Engine — Rule-based governance with shadow enforcement and architecture boundaries
  • Web Dashboard — Command Center triage, provider health, workflow visualization at http://localhost:3456

Dashboard

The web dashboard at http://localhost:3456 provides:

  • Command Center — Operator triage, task board, and project-scoped running log
  • Providers — Health, success rates, performance comparison
  • Budget — Usage tracking, monthly trends, budget alerts
  • Workflows — DAG visualization, dependency tracking
  • Hosts — Multi-host Ollama management
  • Routing — Configure provider routing rules per task category

Configuration

Most configuration happens through Claude. Ask Claude to:

  • set_project_defaults — Configure default provider, verify command, auto-fix settings per project
  • configure_provider — Enable/disable providers, set API keys
  • add_ollama_host — Register additional Ollama instances on your LAN
  • activate_routing_template — Switch between routing strategies (Quality First, Cost Saver, etc.)

TORQUE also has a REST API on port 3457 and a direct CLI (torque-cli) for scripting, but normal usage is through Claude Code.

Documentation

  • CLAUDE.md — Full reference for MCP tools, providers, workflows, and configuration
  • CONTRIBUTING.md — Development setup, code style, and PR process
  • Adding a Provider — Maintainer guide for adding a new execution provider
  • Adding a Plugin — Maintainer guide for adding a new plugin

Maintainers: add or recategorize providers in server/providers/registry.js. Plugin contracts are validated in server/plugins/plugin-contract.js, and plugin discovery/loading is wired in server/plugins/loader.js.

License

MIT

Community

About

An automated software factory for Claude Code.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages