Evidence at a Glance
Anthropic, AWS Bedrock, OpenAI-compatible endpoints, and local Ollama models share one product surface.
The current repository contains 7,438 test declarations across 454 test and spec files.
A privileged main process, typed preload bridge, and sandboxed React renderer keep authority explicit.
Overview
ASE, the Agentic Simulation Engine, is an Electron and TypeScript desktop harness for applied AI work. It brings Anthropic, AWS Bedrock, OpenAI-compatible providers, and local Ollama models into one project-oriented environment without reducing the product to a generic chat wrapper.
The privileged Electron main process owns the agent loop, filesystem, shell, credentials, model providers, MCP connections, and durable session state. A typed preload contract exposes only intended operations to the sandboxed React renderer, where users work across sessions, files, diffs, plans, previews, permissions, traces, and artifacts.
Around that core are multi-model teams, subagents, skills, plugins, MCP over local and remote transports, scheduled routines, checkpoints, cost controls, and an AWS-backed institutional gateway. The result is a packaged desktop product whose execution can be inspected and governed rather than an opaque model call behind a polished interface.
The Challenge
Agent harnesses combine two difficult surfaces: providers disagree on streaming, reasoning, tool calls, context, caching, and accounting, while the product itself is allowed to read files, run commands, connect tools, and modify a real workspace.
That makes trust and recovery product requirements. A useful harness must stay responsive during long runs, preserve enough state to resume or rewind work, and make permissions, tool intent, token use, cost, and file mutations understandable to the person supervising it.
Key Engineering Decisions
Keep Privilege in the Main Process
Filesystem, shell, credentials, providers, and agent execution stay behind a typed IPC boundary; the renderer remains a sandboxed view over explicit capabilities.
Normalize Providers Without Erasing Them
A shared provider contract supports model switching, while provider-specific context, caching, reasoning, and subscription behavior remain visible where they materially affect a run.
Gate Capability Through Trust and Intent
Workspace trust, declarative rules, permission prompts, command intent, and OS-level confinement combine instead of relying on a single allow/deny switch.
Make Execution Inspectable
Per-turn traces record model and tool calls, file and command activity, approvals, tokens, cost, tests, and rollback information so failures can be reconstructed.
What I Owned
Results
Valuable Lessons
Provider interoperability is useful only when the surrounding tools, permissions, context, and artifacts travel with the model choice.
A capable agent is also a security and observability system; every new power needs a clear authority boundary, audit trail, and recovery story.
