chore: import upstream snapshot with attribution
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:20:55 +08:00
commit d25d482dc2
13754 changed files with 4996608 additions and 0 deletions
+101
View File
@@ -0,0 +1,101 @@
---
slug: copilot
title: 'Inside Sim Copilot — architecture, benchmarks, and how it fits'
description: 'A technical overview of Sim Copilot: the architecture behind it, our early benchmarks, and how Copilot integrates with agentic workflows in Sim.'
date: 2025-11-08
updated: 2025-11-08
authors:
- sid
readingTime: 7
tags: [Copilot, AI Assistant, Benchmarks, Architecture, Sim]
ogImage: /blog/copilot/cover.png
ogAlt: 'Sim Copilot technical overview'
about: ['AI Assistants', 'Agentic Workflows', 'Retrieval Augmented Generation']
timeRequired: PT7M
canonical: https://www.sim.ai/blog/copilot
featured: false
draft: true
---
> This is a technical deepdive scaffold for Sim Copilot. Well keep updating it as we publish more results and open up additional capabilities.
## TL;DR
- Copilot is a contextaware assistant embedded into the Sim editor.
- It has firstclass access (with user approval) to workflows, blocks, logs, and docs.
- The system is retrievalcentric with strong guardrails and deterministic execution paths.
## Architecture at a glance
1. Intent understanding
- Lightweight classifier + instruction parser directs requests into tools.
2. Context assembly
- Indexed sources (workflows, blocks, logs, docs) with semantic and lexical signals.
- Safety filters for scope + permission checks.
3. Tooling and actions
- Readonly tools (explain, compare, search), proposechanges tools, and execution tools.
4. Response synthesis
- Deterministic templates for diffs, plans, and explanations.
5. Humanintheloop
- All writes gated behind explicit user approval.
```mermaid
flowchart LR
U[User] --> I(Intent)
I --> C(Context Builder)
C -->|RAG| R[Retriever]
R --> T(Tools)
T --> S(Response Synth)
S --> U
```
## Retrieval and grounding
- Sources: workspace workflows, block metadata, execution logs, and product docs.
- Indexing: hybrid scoring (BM25 + embeddings) with recency decay and persource caps.
- Normalization: chunking with stable anchors so diffs remain linereferential.
## Early benchmarks (scaffold)
> Numbers below are placeholders for the structure; well replace with full runs.
| Task | Top1 Retrieval@K | Edit Accuracy | Time (p50) |
| ----------------------------------- | -----------------:| ------------: | ---------: |
| Explain a workflow block | 92% | 88% | 1.2s |
| Propose a safe fix for an error | 78% | 70% | 2.1s |
| Generate a new block configuration | 74% | 65% | 2.6s |
| Find relevant execution logs | 90% | 84% | 1.4s |
Measurement notes:
- Retrieval@K: correctness of the top candidate chunk for a labeled query.
- Edit Accuracy: humanvalidated acceptance rate for proposed changes.
- Time: serverside latency (excludes model coldstart).
## Guardrails and safety
- Scope enforcement: actions limited to the open workspace with explicit user triggers.
- Sensitive data policies and redaction in logs.
- Proposal mode: diffs are reviewed and applied only on user approval.
## How Copilot fits into Sim
- Ineditor assistant for building and editing workflows.
- Shortcut to documentation and examples with live context from your canvas.
- Bridge to evaluation: Copilot can set up test runs and compare outputs sidebyside.
- Works with the same permissions model you already use in Sim.
## Roadmap (highlevel)
- Multiturn plans with subtasks and rollback.
- Deeper evaluation harness and dataset management.
- Firstparty tool plugins for common blocks and providers.
## Repro and transparency
- Well publish a benchmark harness and anonymized evaluation sets.
- Expect a detailed methodology post as we widen the beta.
— Sid @ Sim