Skip to content

MohaMehrzad/Sorcerer

Sorcerer

Stars Forks License CI Latest Release

Sorcerer is a local-first autonomous coding agent that plans, edits, verifies, recovers from failures, and keeps moving until acceptance criteria are satisfied.

If this project helps you, please star it and join discussions:

Sorcerer social preview

Why Developers Use Sorcerer

  • Actually autonomous: multi-agent planning, coding, critique, and synthesis loops.
  • Recovery built in: checkpoint/resume + supervisor retries + adaptive budgets.
  • Safer by default: write-path safeguards, command allowlists, verification gates.
  • Made for real repos: local workspace operation, memory, continuation packets, observability.

1-Minute Quick Start

git clone https://github.com/MohaMehrzad/Sorcerer.git
cd Sorcerer
pnpm install
cp .env.example .env.local
# set MODEL_API_KEY in .env.local
pnpm dev

Core Capabilities

  • Multi-agent async orchestration (supervisor, scout, planner, coder, critic, synthesizer)
  • Single-agent compatibility mode with resume + fallback
  • Long-term memory with contradiction detection and evidence gating
  • Completion contract checks before accepting "done"
  • Adaptive file/command budgets under hard safety ceilings
  • Preflight + verification execution with flaky retry/quarantine support
  • Telemetry export and run artifacts for auditing

Requirements

  • Node.js 20+
  • pnpm
  • Python 3
  • Python package ddgs for web search helper: pip install ddgs

Environment

Create .env.local from .env.example.

Key variables:

  • MODEL_API_KEY (required unless provided in onboarding)
  • MODEL_API_URL (optional)
  • MODEL_NAME (optional)
  • WORKSPACE_DIR (optional, defaults to repo root)
  • ENABLE_RUNTIME_EXECUTION (optional, defaults to disabled; set to 1 only if you explicitly want /api/execute)

Run Modes

Main controls in UI:

  • Execution mode: multi-agent async or single-agent legacy
  • Max iterations (0 = unbounded)
  • Parallel work units, critic threshold, team size
  • Strict verification, auto-fix verification, preflight checks
  • Clarification gate, rollback on failure, dry-run
  • File-write and command-run budgets

Project Health + Security

  • Local command execution + file mutations are guarded by safety policies.
  • Sensitive paths under .tmp, hidden internal folders, and secret-like files are blocked from file mutations.
  • /api/execute is opt-in and disabled by default unless ENABLE_RUNTIME_EXECUTION=1 is set.
  • API supports localhost/origin checks and optional auth token.

Read:

Changelog

See CHANGELOG.md.

Growth

See docs/LAUNCH_PLAYBOOK.md for launch strategy and ready-to-post distribution copy. See docs/COMMUNITY_GROWTH_CHECKLIST.md for weekly operating cadence. See docs/GITHUB_PROJECT_SETUP.md for Projects v2 bootstrap.

GitHub Surfaces

Support

See SUPPORT.md.

License

MIT - see LICENSE.

About

Local-first autonomous coding agent with multi-agent orchestration, checkpoint memory, and self-recovery loops.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors

Languages