Skip to main content

Local-first AI software engineering platform with durable execution, repository intelligence, validator-driven recovery, browser verification, multi-provider orchestration, MCP interoperability, and native COI sub-agents

Project description

Sophyane 21.1

Local-first AI software engineering platform for planning, building, repairing, validating, executing, and delivering real software artifacts.

Sophyane combines a persistent engineering agent, semantic intent routing, durable graph execution, repository intelligence, coded sandboxes, validator-driven recovery, browser verification, multi-provider orchestration, MCP interoperability, and native COI sub-agents.

It runs on Linux, macOS, Windows, ChromeOS Linux, Android Termux, UserLAnd, VPS hosts, and lightweight edge systems. It can use local GGUF or Ollama models, cloud providers such as Gemini, OpenAI, Anthropic, xAI, Groq, OpenRouter and DeepSeek, or a local-first chain in which a cloud model rescues repeated validator failures.

Current verified status

Sophyane 21.1 has been verified end to end with Gemini on a browser-game task:

request
  → semantic interpretation
  → provider planning
  → isolated workspace
  → complete index.html generation
  → structural validation
  → HTTP verification
  → browser preview in a new tab

The verified run produced a 14 KB self-contained browser game, served it from the current workspace, confirmed an HTTP 200 response, recorded a SHA-256 fingerprint, and opened the exact verified page in Chromium.

The bundled offline engineering benchmark currently reports:

21 passed
0 failed
2 skipped
100.0 score

The skipped checks depend on optional host capabilities: Node.js availability and live-provider mode. See Benchmarking.

Install

Linux, macOS, ChromeOS Linux, UserLAnd, and Termux:

curl -fsSL https://raw.githubusercontent.com/badrpk/sophyane/main/install.sh | bash

Windows PowerShell:

irm https://raw.githubusercontent.com/badrpk/sophyane/main/install.ps1 | iex

Start:

sophyane

Developer installation:

git clone https://github.com/badrpk/sophyane.git
cd sophyane
python -m venv .venv
. .venv/bin/activate
python -m pip install -e '.[dev]'
pytest -q

What Sophyane includes

Interactive engineering agent

  • Conversational and coding modes
  • Persistent projects across follow-up edits
  • Explicit build, fix, run, test, browser and repository workflows
  • Live provider, validator and execution progress
  • Local-first inference with sticky cloud rescue
  • Provider-neutral artifact extraction and bounded recovery
  • Cloud-aware response timeouts for slower complete artifacts
  • Human steering without forcing every request to stop for approval

Verified browser-product pipeline

For browser applications and games, Sophyane can:

  1. Request one complete self-contained HTML artifact.
  2. Preserve raw provider evidence for diagnosis.
  3. Distinguish structural truncation from semantic defects.
  4. Continue only structurally incomplete documents.
  5. Request a full-document rewrite for semantic failures.
  6. Validate game controls and runtime invariants.
  7. Write the accepted artifact into the isolated workspace.
  8. Serve and verify that exact page over HTTP.
  9. Open the verified URL in a new browser tab.

Recent reliability work prevents complete Snake games with semantic control defects from being incorrectly treated as truncated byte streams. Semantic repair remains the final prompt authority in the live TUI wrapper chain.

Repository kernel

sophyane-platform status
sophyane-platform index .
sophyane-platform checkpoint .
sophyane-platform eval .
sophyane-platform compact ~/.sophyane

The kernel provides repository indexing, lightweight symbol discovery, snapshots, rollback-ready checkpoints, deterministic evaluation, local tracing and bounded compaction.

Coded sandbox and filesystem

Sophyane prepares an isolated task workspace before execution. Generated commands remain inside the workspace unless the user explicitly authorizes broader access.

~/.sophyane/
├── workspaces/        task repositories and generated files
├── sandboxes/         sandbox manifests and policies
├── artifacts/         validated outputs
├── logs/              execution logs
├── state/             durable runtime state
├── platform/          repository, agents, runs and knowledge
└── coi/               collaborative orchestration state

COI — Collaborative Orchestration Interface

COI is Sophyane's internal coordination protocol. It manages agents, parent/child tasks, permissions, shared artifacts, event traces, validation and bounded execution.

sophyane-coi status
sophyane-coi task "Build and validate a responsive snake game" --workspace ./snake
sophyane-coi agent-manifest browser --role validator --skill accessibility --tool browser

A task contract contains a goal, owner, workspace, repository, permissions, dependencies, expected outputs, validators and timeout. Agent manifests declare roles, skills, tools, permissions, provider policy and maximum steps.

  • COI coordinates Sophyane's internal agents, tasks, memory, artifacts and evaluation.
  • MCP connects Sophyane to external tools, resources and services.

See COI.

MCP interoperability

sophyane --mcp-list
sophyane --mcp-call platform
sophyane --mcp-call rag_query --mcp-args '{"q":"provider dispatcher"}'

Built-in tools include local RAG, skills, budget status, sandboxed Python, platform probing and public web fetch. The catalog can be wrapped by full MCP stdio or HTTP servers without changing COI task contracts.

See MCP.

Native sub-agents

Sophyane supports bounded, provider-neutral agents such as:

  • Supervisor and planner
  • Repository and symbol agent
  • Coding and repair agent
  • Browser and accessibility validator
  • Test and evaluation agent
  • Documentation agent
  • Learning and trace-analysis agent

Sub-agents use the provider dispatcher rather than capturing a provider directly. Each receives a constrained task contract and shared context, then writes structured events and results locally.

Architecture

User / Application
        │
Semantic intent + SLI profile
        │
Sophyane Supervisor
        │
Durable execution graph ───────── Checkpoints / interrupts / traces
        │
COI Orchestrator ──────────────── Contracts / permissions / sub-agents
        │
Provider Dispatcher
   ┌────┴─────────┐
Local models   Cloud providers
        │
Repository Kernel + Coded Sandbox
        │
Validators + repair policy
        │
Verified artifact delivery
        │
MCP Bridge ───────────────────── External tools and services

Only the provider dispatcher chooses the active model. COI chooses the agent and task. MCP exposes tools. Validators determine whether execution is complete. Delivery occurs only after the relevant artifact checks pass.

Evaluation and benchmarking

Run the deterministic product benchmark:

sophyane-benchmark

Write a JSON report:

sophyane-benchmark --output ~/sophyane-tests/sophyane-baseline.json

Include a configured live provider:

sophyane-benchmark --live

The suite covers responsive frontend artifacts, Python/Node/C++ execution where available, repository indexing, requested edits, rollback, verification, COI collaboration, permission boundaries, SLI defect detection, provider escalation, MCP tools and interruption persistence.

Sophyane should be compared with orchestration frameworks such as LangGraph using the same model, prompts, timeouts, isolated workspaces and acceptance tests. Raw graph latency and complete software-delivery capability are separate measurements; Sophyane's benchmark claims apply only to the tasks actually executed.

See Benchmarking and Evaluation.

Common commands

sophyane --version
sophyane --setup
sophyane --status
sophyane --providers
sophyane --doctor
sophyane --capabilities
sophyane-platform status
sophyane-coi status
sophyane-benchmark
sophyane-web
sophyane-browser

Inside the interactive CLI:

/help       command help
/status     provider and runtime state
/new        start a fresh project
/inspect    inspect the current prompt, plan and files
/trace      show or hide raw provider responses
/quit       exit

Prompt guidance

Use this compact pattern for important work:

Goal:
Constraints:
Context/files:
Acceptance criteria:
Tests:

Example:

Create one polished self-contained browser game in index.html.
Include keyboard and touch controls, visible state feedback, restart behavior,
mobile support at 320 px width, and verify the final page over HTTP.

See Prompt guide.

Provider modes

At startup Sophyane can run:

  1. Local first — a local model handles normal work; a configured cloud model can take ownership after repeated deterministic validator failures.
  2. Cloud — use the selected cloud provider directly.
  3. Current configuration — retain the existing provider chain.

Cloud-provider calls use a longer default response window than local-model calls so complete engineering artifacts are not discarded at the old universal 60-second boundary. Explicit timeout values remain authoritative.

Provider configuration is stored under ~/.config/sophyane/. Secrets remain in private user configuration and are never committed to the repository.

Supported surfaces

Surface CLI Browser UI Local model
Linux Yes Yes Yes
macOS Yes Yes Yes
Windows Yes Yes Yes
ChromeOS Linux Yes Yes Yes
Android Termux Yes Yes Yes
Android UserLAnd Yes Yes Yes
iPhone/iPad Remote browser Yes Host-dependent
VPS / edge Linux Yes Yes Hardware-dependent

Documentation

Capability labels

  • Implemented — available in the current release.
  • Experimental — usable but interfaces may change.
  • Planned — roadmap only and not presented as available.

COI task contracts, local event tracing, agent manifests, the MCP-lite catalog, repository tools, sandbox preparation, evaluation, compaction, semantic HTML repair, HTTP artifact verification and browser preview are implemented. Distributed cross-device scheduling, a public agent marketplace and full remote MCP transport management remain planned or experimental depending on the adapter.

License

Sophyane is open source under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sophyane-21.1.0.tar.gz (658.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sophyane-21.1.0-py3-none-any.whl (696.9 kB view details)

Uploaded Python 3

File details

Details for the file sophyane-21.1.0.tar.gz.

File metadata

  • Download URL: sophyane-21.1.0.tar.gz
  • Upload date:
  • Size: 658.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.13

File hashes

Hashes for sophyane-21.1.0.tar.gz
Algorithm Hash digest
SHA256 f7539515e8a5cf4e8bcb009116b5ca746964a974b3c6781070911d992071b6d7
MD5 1e964b217836ce1abc8a985206618961
BLAKE2b-256 547b58925a8c2b78d86de2b2297d671a28ea20caa515eee7ec240a7ed56e64fa

See more details on using hashes here.

File details

Details for the file sophyane-21.1.0-py3-none-any.whl.

File metadata

  • Download URL: sophyane-21.1.0-py3-none-any.whl
  • Upload date:
  • Size: 696.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.13

File hashes

Hashes for sophyane-21.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b358307ba2fb69cfe4fd5031c147d31a94dbc7d4e97ea22b945fa5bc94051bb2
MD5 ab94410514aa243ed88a8ebeda02685e
BLAKE2b-256 df7000f9454528f151557e405987b472cd1f87307cc74b0b816c5728e835ed01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page