Local, event-sourced multi-agent desktop application running on your workstation.
Quick Start • Screenshots • Capabilities • Architecture • Subsystems • Models • Benchmarks • Structure • Docs
Trans4mers is a local desktop application for running autonomous agent swarms on your own computer. It combines an asynchronous Rust engine with local Ollama inference, an embedded SQLite database using sqlite-vec, and a native Tauri v2 desktop shell.
Every state transition writes to an append-only event log before updating database tables. If the application gets terminated mid-task, the engine reads the log on next startup, replays pending events, and picks up where it stopped. Dangerous actions like writing files outside scratch, executing shell commands, or changing database rules pause for operator review.
Warning
Project Status & Security Notice (Solo Student Developer • Alpha Project):
Trans4mers is an early-stage, active work-in-progress research and learning project built by a solo student developer. While it implements a zero-trust capability lattice, anti-TOCTOU argument hashing, and Myers LCS diff review gating, it has not undergone independent external third-party commercial security audits, nor has it been battle-tested across thousands of production environments.
Because this software executes shell commands and writes files directly to your workstation, there may be undiscovered edge cases, minor to critical bugs, or unexpected behavior. Always exercise strict operator caution with autonomous shell execution: carefully inspect proposed agent actions in the Human-in-the-Loop Diff Panel before approving, and test within sandboxed, containerized, or backed-up directories. Feedback, bug reports, and pull requests from experienced developers are warmly welcomed!
Clone the repository and run the automated startup script:
git clone https://github.com/abhayzangir1/trans4mer.git
cd trans4mer
.\run-app.batThe script checks if an Ollama daemon is active, starts the local Vite dev server on port 1420, and boots the native Tauri desktop shell.
Alternatively, run or package the desktop application manually using Cargo and npm:
# 1. Install frontend dependencies
cd apps/desktop
npm install
# 2. Run in development mode (hot reloading)
cargo tauri dev
# 3. Build standalone native installer (NSIS on Windows, DMG on macOS, AppImage on Linux)
cargo tauri buildNote on CI Releases: Pre-compiled binaries are generated via the automated GitHub Actions workflow (
.github/workflows/release.yml) whenever a release tag (e.g.,v0.1.0) is pushed to GitHub.
Trans4mers works with local inference endpoints as well as commercial APIs:
- Local Workstation Execution (Ollama): For private offline runs, connect to a local Ollama daemon. Large models such as
qwen2.5-coder:32b,deepseek-r1:32b, orllama3.3:70bhandle complex tool-calling and refactoring tasks without leaking data. - Cloud BYOK: When a task needs larger frontier models, you can enter API keys for Anthropic, OpenAI, or Google in Settings. Keys are stored in the operating system credential store (Windows Credential Manager, macOS Keychain, or Linux Secret Service) and requests go directly to the provider endpoints.
- Per-Agent Model Routing: You can assign specific models to specific agent roles in the Swarm Designer. For example, a small local model can handle terminal commands while a larger model handles system design and code reviews.
- All data and prompts stay on your workstation with zero external telemetry.
- State updates use event-sourced CQRS over SQLite, publishing domain events to the desktop interface over Tauri IPC.
- ReAct loops handle transient network errors with exponential backoff and prune context when tokens approach window limits.
- The Swarm Designer supports supervisor-worker hierarchies, two-agent adversarial debates, and parallel fan-out tasks.
- High-risk operations (modifying files, running shell scripts, external requests) generate unified diffs and pause for approval with canonical SHA-256 argument verification.
- Memory is split across four tiers (working, episodic, semantic, procedural) searched with SQLite FTS5 BM25 and dense vector similarity.
- Duplex terminal sessions run through
portable-ptyand display in an embeddedxterm.jswindow. - Browser automation controls sandboxed Chromium profiles using the Chrome DevTools Protocol, with point-in-time snapshot rollbacks.
- Document RAG parses repository files into chunks for hybrid lexical and vector search.
- Artifact panels let you read generated design docs and post inline comments that turn into agent tasks.
- Background workers support cron schedules and run a memory consolidation routine at 3:00 AM.
- The Model Context Protocol client handles both stdio and SSE connections, with an in-app traffic log and inspector window.
For complete technical specifications across all subsystems, read the Master System Architecture Specification (docs/ARCHITECTURE.md).
flowchart TB
subgraph UI ["Desktop Shell (Tauri 2 + React + TypeScript)"]
Chat["Slack-Style Team & Channel Chat"]
Swarm["Visual Swarm Map & Designer"]
Approvals["Diff Review & Human Gating"]
Editor["Monaco Code Editor & File Tree"]
Terminal["PTY XTerm.js Substrate"]
Panels["Deep Research • Memory Inspector • Live Mirror"]
end
subgraph IPC ["Tauri v2 IPC Bridge"]
Commands["70+ IPC Command Handlers"]
EventBridge["EventForwarder (DomainEvent Broadcast)"]
end
subgraph Engine ["Trans4mers Engine (Rust)"]
Scheduler["Scheduler (Concurrency Permits & Lock Manager)"]
Runtime["ReAct Agent Execution Loop"]
SelfHealing["Self-Healing Backoff & Compaction"]
CQRS["Event Commit & Projection Engine"]
Memory["4-Tier Cognitive Memory Substrate"]
SwarmOrch["Swarm Orchestrator (Debate / Supervisor / Fanout)"]
DocRAG["Document RAG (BM25 + sqlite-vec)"]
Policy["Zero-Trust Capability Enforcement"]
end
subgraph Storage ["Hardware & Local Persistence"]
GlobalDB[("Global SQLite DB (trans4mers.sqlite)")]
ProjectDB[("Project SQLite DB (.trans4mers/project.sqlite)")]
Worktrees["Isolated Git Worktrees (.trans4mers/worktrees/)"]
Ollama["Local Ollama Daemon (GPU / CPU Inference)"]
CDP["Chromium DevTools Protocol (Isolated User Profiles)"]
end
UI <--> IPC
IPC <--> Engine
Engine --> GlobalDB
Engine --> ProjectDB
Engine <--> Ollama
Engine <--> Worktrees
Engine <--> CDP
Each agent runs a Thought-Action-Observation loop. When an LLM inference fails due to context limits, rate throttling, or bad JSON formatting:
- The engine retries transient failures using exponential backoff with jitter.
- Context compaction summarizes older conversational turns while retaining learned rules and goals.
- If an endpoint fails repeatedly, the runtime falls back to secondary configured models.
You can assign agents specific roles (architect, engineer, security auditor, researcher):
- Adversarial Debate pairs a proponent and a critic across structured rounds to catch flaws before code gets written.
- Supervisor Orchestration lets a lead agent break down a goal into sequential milestones and assign them to workers.
- Parallel Fan-Out runs independent tasks across multiple workers concurrently and aggregates outputs.
Memory is organized into four levels based on lifespan and relevance:
- Working memory: in-flight conversation turns and ephemeral notes.
- Episodic memory: durable logs of finished tasks, tool outputs, and steps.
- Semantic memory: extracted facts and codebase invariants indexed with dense vectors.
- Procedural memory: learned constraints, bug fixes, and user preferences retained across sessions.
Dangerous capabilities require human oversight:
- File edits, elevated terminal commands, and external network calls generate an ActionDiff.
- The agent yields its execution permit and waits for review in the Diff Review Panel.
- Operators can review unified diffs line-by-line, accept or reject individual hunks, and approve execution.
Agents can read web docs and test local web servers through Chrome DevTools Protocol:
- Browser sessions use isolated profile directories in
.trans4mers/browser_profiles/. - The Live Mirror tab renders DOM snapshots, status codes, and viewport state in the desktop interface.
- You can roll back browser session state using stored directory tree hashes.
The research workflow breaks questions into sub-queries:
- Plans search facets based on the prompt.
- Searches the local codebase, memory tables, and web sources.
- Collects citations with file paths and URLs.
- Synthesizes findings into a Markdown report saved as an artifact.
The desktop interface includes four visual themes:
Note: The following measurements were captured locally by the author on development hardware (Apple M-series, Intel Core i7 / AMD Ryzen 7, 16GB RAM) during local test runs. They represent author-reported observations under standard local testing conditions, not independent third-party verified benchmarks.
| Metric | Measured Value | Standard Cloud Competitors |
|---|---|---|
| Desktop App Idle RAM | ~78 MB | 400 MB - 1.2 GB (Electron-based) |
| Database Transaction Latency | < 1.2 ms (SQLite WAL) | 80 - 350 ms (Remote Cloud DB) |
| Event Replay / Recovery Time | < 45 ms | Minutes / Not supported |
| Network Egress (Local Mode) | 0 KB/s (Strict Zero) | Continuous code/prompt egress |
| Concurrency Ceiling | 8 Concurrent Agents (Configurable) | Rate-limited by remote APIs |
trans4mers-local/
├── apps/
│ └── desktop/ # Tauri v2 Desktop Application
│ ├── src/ # React 18 + TypeScript + Tailwind UI
│ │ ├── components/ # Chat, Swarm Designer, Approvals, Terminal
│ │ ├── hooks/ # useAgents, useProject, useSettings
│ │ └── store/ # Zustand stores (project, conversation, swarm)
│ └── src-tauri/ # Rust Tauri application entrypoint & build hooks
├── assets/
│ └── branding/ # High-res logos and theme variants
├── core/
│ ├── trans4mers-app/ # 22 IPC command modules & event forwarder
│ ├── trans4mers-domain/ # Pure domain models, IDs, events, and config
│ ├── trans4mers-engine/ # Scheduler, ReAct runtime, RAG, Swarms, PTY
│ ├── trans4mers-providers/ # Ollama, OpenAI, Anthropic, Gemini, CDP, MCP
│ └── trans4mers-storage/ # SQLite engine, 27 repositories, FTS5 triggers
├── docs/ # Architecture decisions, tutorials, specifications
├── plugins/ # Example external Python/JSON-RPC plugins
├── scripts/ # Cross-platform installer & packaging scripts
├── skills/ # Declarative TOML skills (coding, research, debug)
├── Cargo.toml # Virtual workspace manifest
├── run-app.bat # One-click Windows launcher
└── README.md # Project documentation
- Rust: 1.85+ (
rustup default stable) - Node.js: v18+ &
npm - Ollama: https://ollama.com
# 1. Clone repository
git clone https://github.com/abhayzangir1/trans4mer.git
cd trans4mer
# 2. Run automated test suite
cargo test --workspace --exclude trans4mers-desktop
# 3. Build frontend assets
cd apps/desktop
npm install
npm run build
# 4. Launch in development mode
npm run tauri devRun the full Rust workspace test suite:
cargo test --workspace --exclude trans4mers-desktopValidate frontend TypeScript bundling:
cd apps/desktop && npm run buildVerify formatting and clippy lints across all core crates:
cargo check -p trans4mers-domain -p trans4mers-storage -p trans4mers-engine -p trans4mers-providers -p trans4mers-app- Product Requirements Document (PRD.md): Reverse-engineered product capabilities, personas, workflows, and operating constraints.
- Technical Requirements Document (TRD.md): Technical specification covering schemas, algorithms, IPC modules, and security invariants.
- Master System Architecture Specification (docs/ARCHITECTURE.md): System dependency graph and cross-subsystem event flow.
- Memory & Cognitive RAG Architecture (docs/architecture/MEMORY_AND_RAG_ARCHITECTURE.md)
- Agent Runtime & Swarm Architecture (docs/architecture/AGENT_AND_SWARM_ARCHITECTURE.md)
- Zero-Trust Governance & Security Architecture (docs/architecture/GOVERNANCE_AND_SECURITY_ARCHITECTURE.md)
- External Protocols & Native Tooling Architecture (docs/architecture/PROTOCOLS_AND_TOOLING_ARCHITECTURE.md)
- Desktop Shell & Tauri IPC Bridge Architecture (docs/architecture/FRONTEND_AND_IPC_ARCHITECTURE.md)
- Architecture Decisions (docs/ARCHITECTURE_DECISIONS.md): Design records for event sourcing, concurrency caps, and approval gating.
- Agent Tutorial (docs/AGENT_TUTORIAL.md): Guide to creating and deploying custom agent archetypes.
- Plugin Development (docs/PLUGIN_DEVELOPMENT.md): Writing external tools using JSON-RPC.
- Contributing Guide (docs/CONTRIBUTING.md): Code standards, pull request process, and verification rules.
- Internal Remediation Log (docs/SWARM_AUDIT_REPORT.md): Historical development punchlist of resolved defects and structural fixes identified during early builds.
Trans4mers is released under the MIT License.
Copyright © 2026 Abhay Zangir. All rights reserved.










