# Data handling Source: https://docs.cosmon.com/architecture/data-handling What data Argus keeps on the workstation, what leaves it and where it goes, what Cosmon stores per plan, and who at Cosmon can access it. This page is written for security reviewers. It describes every path by which data can leave an engineer's workstation, what Cosmon does with it, and the controls on Cosmon's side. For the connection model and deployment topologies see [Architecture overview](/architecture/overview); for network allowlisting see [IT prerequisites](/architecture/it-prerequisites). ## What stays on the workstation Argus is a desktop application. It stores its working data in the user's application data directory, readable only by that operating system user and covered by whatever disk encryption and endpoint policy the workstation already has. The following are never transmitted by Argus, in any deployment mode: * CAD models, assemblies and drawings * Simulation input and output files * The local databases holding chat history and agent state Conversation content itself does leave the workstation on two connections, the model request and history sync, described in the next section. The application accepts no inbound network connections and listens only on the loopback interface. ## What leaves the workstation Every outbound connection is listed below with what it carries. "Content" means the text of the conversation and the results of tool calls, which can include model parameters, script output, error messages and screenshots from the engineering application. | Connection | Carries content? | Destination | Default | User control | | - | - | - | - | - | | Model request | Yes. This is how the agent works. | Cosmon backend, then the model provider; or the provider directly in BYOK mode | Always on | Deployment mode | | Conversation history sync | Yes, on plans that retain it. See below. | Cosmon backend | On | Settings toggle | | Operational telemetry | No. Spans that would carry prompts or tool results are removed on the workstation before upload. | Cosmon backend | On | Settings toggle | | Error reports | No conversation content. Stack traces, application version, OS. | Cosmon backend, which relays to Cosmon's error-reporting service | On | Not user-configurable | | Product analytics | No conversation content. Feature usage events with clicked-element text limited to controls, and session replay with every input and all rendered text masked. | `analytics.cosmon.com` | On | Analytics off with the telemetry toggle; replay has its own toggle | | Updates and version check | Nothing. Asks for the current version and downloads the next release. | Cosmon backend, then Cosmon's release bucket | On | Not user-configurable | In the bring-your-own-key deployment, model requests go to the endpoint the customer configures and never touch Cosmon. The packaged application still makes the update, error-report and analytics connections above unless they are switched off or blocked at the network. A deployment with no Cosmon contact at all needs those connections disabled as well; see [Deployment options](/architecture/deployment-options) and talk to Cosmon about an offline configuration. ## What Cosmon stores, by plan The Cosmon backend is plan-aware. Whether conversation content is ever written to Cosmon's systems is decided server-side on every request, from the account's plan, and cannot be changed by the end user. | Data | Enterprise | Other plans | | - | - | - | | Model requests and responses | Relayed to the provider, not stored | Relayed to the provider, not stored | | Usage records (model, token counts, cost, timestamps) | Stored | Stored | | Conversation history from sync | **Discarded on arrival.** Only counts, token totals, tool names and model names are kept. | Stored, to support diagnostics and product analytics | | Telemetry spans | Operational spans only; anything else is dropped on arrival even if a client sent it | Operational spans; sensitive spans are filtered on the workstation | | Account, organization, seat and billing records | Stored | Stored | On the Enterprise plan the result is that Cosmon holds no copy of any conversation. There is nothing server-side to export, share or subpoena, and nothing for Cosmon staff to read. If an organization is on the Enterprise plan, its members are treated as Enterprise for this purpose regardless of any personal plan they hold. ## Model providers Cosmon does not train or fine-tune models. All models are third-party foundation models accessed by API under Cosmon's provider agreements, and Cosmon does not use customer content to train anything. Provider-side retention is governed by those agreements; ask your Cosmon contact for the current terms that apply to your deployment. In BYOK mode the provider relationship, and its retention terms, are yours. ## Sharing and export Argus has no share-link, publish or collaboration feature. Conversation content cannot be sent to another user or a third party through the product. The only export is user-initiated: a user can export a chat, including agent history, as a JSON file written to their own workstation through the operating system's save dialog. That file is then subject to the workstation's own data-loss-prevention policy like any other document. ## Encryption in transit All connections from the desktop application and the browser to Cosmon use HTTPS. Cosmon's public endpoints accept TLS 1.3 only, enforced at Cosmon's edge in front of the load balancer; TLS 1.0, 1.1 and 1.2 handshakes are refused. Plain HTTP is redirected to HTTPS and HSTS is set for one year including subdomains. Connections from the backend to the database and to model providers are encrypted. Customers that inspect TLS on their network configure the workstation's OS certificate store; see [TLS inspection](/architecture/it-prerequisites#tls-inspection-and-corporate-certificate-trust). ## Access on Cosmon's side * The production database has no public IP address and accepts encrypted connections only, from Cosmon's private network. * Backend services run under dedicated service accounts with per-service least-privilege grants. No service account holds a project-wide owner or editor role. * Cosmon's internal operations dashboard is reachable only over Cosmon's private network, with device approval and named identities, and requires a verified `@cosmon.com` staff identity. It fails closed. * Administrative changes to infrastructure are recorded in cloud audit logs. Infrastructure is defined in Terraform and changed through reviewed pull requests. * Application logs record user identifiers and routes, never passwords (Cosmon's servers never receive one) and, on the Enterprise plan, never conversation content. ## Retention and deletion | Data | Retention | | - | - | | Conversation history (Enterprise) | Not stored | | Conversation history (other plans) | Retained until the account is deleted or the customer requests deletion | | Usage and billing records | Retained for the life of the account and as required for billing | | Local data on the workstation | Under the customer's control; removed by uninstalling or deleting the application data directory | Deletion requests go to [support@cosmon.com](mailto:support@cosmon.com). Content deletion is performed per named account, never by domain sweep, so that the scope of a deletion is exactly what the customer approved. ## Revoking access Organization owners and admins can remove a member or unassign a seat in the team console. The backend checks entitlement against the database on every request, so the licence is withdrawn on the user's next request. On request, Cosmon disables an account in the identity provider, which blocks new sign-ins and token renewal; an already-issued session token remains valid until it expires, at most 60 minutes. Cosmon can also set a minimum desktop version; when a client's version check succeeds against the backend, a release below the minimum is blocked until the user updates. # Deployment options Source: https://docs.cosmon.com/architecture/deployment-options Compare Argus Cloud and Argus On-Premise (BYOK): what each includes, the tradeoffs, and how to choose. Argus runs as the same desktop application in both deployment models below. What changes is where LLM traffic goes and who operates the backend, if any is used at all. See [Architecture overview](/architecture/overview) for the full connection model, and [IT prerequisites](/architecture/it-prerequisites) for network and allowlisting detail. > [card] [Cloud](#cloud) > > Fully managed by Cosmon. OAuth sign-in, LLM calls proxied through the Cosmon backend, telemetry and sync included. > [card] [On-premise (BYOK)](#on-premise-byok) > > Runs entirely in your environment. No Cosmon backend, no account — bring your own LLM key or point at an internal model. ## Cloud Cloud is the fully managed offering. Users sign in with OAuth, and every LLM request is proxied through the Cosmon backend under Cosmon's provider agreements. Authorization, usage telemetry, cross-device sync, and application updates are all handled automatically. Dedicated single-tenant infrastructure is available for organizations that need physical data isolation while keeping the managed experience — see [backend topology](/architecture/overview#backend-topology). ```mermaid theme={null} flowchart LR A["Desktop app
OAuth sign-in"] -->|"HTTPS"| B["Cosmon backend
desktop-api.cosmon.com
Auth · LLM proxy · Telemetry · Sync · Updates"] B -->|"LLM proxy - Cosmon's key"| C["LLM provider"] ``` > [card] Advantages > > * No infrastructure to install, patch, or maintain > * New features and model upgrades ship automatically > * One consolidated invoice — no separate LLM provider contract > * Centralized user management, team collaboration, and sync > * Cosmon owns uptime, scaling, and security patching > * Dedicated single-tenant hosting available on request > [card] Considerations > > * Prompts and responses route through the Cosmon backend > * Requires outbound network access to Cosmon's domains > * Data residency is tied to Cosmon's hosting region, unless single-tenant > * Availability depends on Cosmon's service uptime ## On-premise (BYOK) On-premise runs the same desktop application inside your environment with no Cosmon account and no sync. The application is licensed either with an air-gapped license file or a floating product key (see [Install on-premise](#install-on-premise)). From there, you choose where the model lives: point Argus at a model hosted on your own infrastructure, so the LLM never leaves your network either, or call an external provider's API directly using your own key. Prompts and responses go only to that endpoint. The current build still sends update checks, error reports and operational traces to Cosmon, and a floating license checks in with its license server. See [What still reaches Cosmon](/architecture/on-premise/air-gapped-license#what-still-reaches-cosmon) for the hosts to allow or block. ```mermaid theme={null} flowchart LR subgraph env["Your environment"] direction LR A["Desktop app
local license key"] --- K["Your API key"] A -.->|optional| D["Internal model
self-hosted"] end A -->|"or external API - direct, your key"| E["External LLM provider"] ``` > [card] Advantages > > * Prompts, responses and files never pass through Cosmon, regardless of which model you point at (with history sharing off) > * With an internal model, conversation content never leaves your network; with an external API, only your LLM provider sees it > * Independent of Cosmon's uptime > * Minimal procurement overhead — no vendor security review of a hosted backend required > * Well suited to evaluations, strict data-sovereignty, and air-gapped-adjacent environments > [card] Considerations > > * No centralized user management, collaboration, or cross-device sync > * Updates install automatically only when Cosmon's update host is reachable; otherwise you apply them by hand > * No consolidated billing — LLM usage is billed directly to you by the provider > * Your team manages issuing, storing, and rotating API keys > * No usage analytics or admin dashboard, by design ### Install on-premise Pick the license that matches the machines' network access. Both use the same installer and the same LLM setup. > [card] [Air-gapped license](/architecture/on-premise/air-gapped-license) > > A signed license file locked to one machine and verified offline. For machines with no network access. > [card] [Floating license](/architecture/on-premise/floating-license) > > One product key shared across a pool of seats, activated online. For machines that can reach the license server. ## Compare | Capability | Cloud | On-premise (BYOK) | | - | - | - | | LLM routing | Proxied through Cosmon (Cosmon's key) | Direct to provider (your key) | | Authorization | OAuth, Cosmon-managed | Air-gapped license file, or floating product key | | Telemetry | Cosmon backend | Error reports and operational traces to Cosmon; analytics can be turned off | | Cross-device sync | Included | Not available | | Application updates | Automatic | Automatic when `desktop-api.cosmon.com` is reachable, otherwise manual | | Domains to allow | `desktop-api.cosmon.com`, `analytics.cosmon.com`, and the sign-in hosts listed in [IT prerequisites](/architecture/it-prerequisites#federated-sso) | Your LLM endpoint, plus `api.keygen.sh` for a floating license. Cosmon's update and telemetry hosts are optional | | Infrastructure to operate | None — fully managed by Cosmon | None — no backend required | | Billing | Single invoice from Cosmon | Billed directly by your LLM provider | | Data residency | Cosmon's hosting region (or dedicated, single-tenant) | Entirely within your environment (internal model), or your provider's, if external | ## Which should you choose? > [card] Choose Cloud if > > You want the fastest path to value, centralized team management, and automatic updates, and you're comfortable with a trusted vendor operating the infrastructure — with single-tenant hosting available if you need stricter isolation later. > [card] Choose On-premise if > > Data isolation is a hard requirement, your environment is air-gapped-adjacent, or minimizing your external vendor footprint matters, and your team can manage updates and API keys directly. > [!NOTE] > > For the full connection model — including authorization modes, telemetry, and LLM trace collection — see [Architecture overview](/architecture/overview). For network and IT allowlisting details, see [IT prerequisites](/architecture/it-prerequisites). # IT prerequisites Source: https://docs.cosmon.com/architecture/it-prerequisites What IT teams must permit on the workstation, the network, and identity systems for Argus to function. This page lists what IT must allow for users to install and run Argus. Workstation baseline applies to every deployment. Outbound network and identity apply only when the corresponding backend connections are enabled. Engineering software access applies for every CAD or CAE integration in use. See [Architecture overview](/architecture/overview) for the connection model. ## Workstation baseline Required for every deployment. ### Code signing On Windows, the installer and all bundled binaries are signed with an Authenticode certificate. IT teams that enforce execution policy through AppLocker, Windows Defender Application Control, or signature-based EDR rules should permit binaries signed by the Cosmon publisher certificate. On macOS, the app bundle and every binary inside it are signed with an Apple Developer ID certificate and the build is notarized by Apple, so Gatekeeper opens it without an "unidentified developer" prompt. IT teams that restrict launches through MDM or an EDR policy should permit software signed by the Cosmon Developer ID. On Linux there is no Authenticode equivalent, so the AppImage is unsigned. Integrity is verified instead through the SHA-512 digest published alongside each release, which the built-in updater checks before applying any update. IT teams that require a signature check at execution time should allowlist the AppImage by digest. ### Process spawning The desktop application is the parent process. While Argus is running, it spawns and supervises two child processes: the agent runtime and the tool server. EDR and behavior-monitoring tools (CrowdStrike, SentinelOne, Microsoft Defender for Endpoint, Carbon Black, and equivalents) may flag this parent-child pattern. The Cosmon parent process should be allowlisted to spawn its child binaries. The bundled runtime also includes a Python interpreter that ships inside the application package; allowlist it as part of the Cosmon process tree. ### Local network — loopback port binding The three processes communicate over `127.0.0.1` (loopback) on randomly assigned ports. Windows Defender Firewall, or any host-based firewall, must permit the Cosmon binaries to bind loopback ports. No ports are exposed on external network interfaces, and the application accepts no inbound connections from the network. ### File system The application reads and writes its data under the user's app data directory. Standard user permissions are sufficient — administrator privileges are not required to install or run Argus. | Path | Usage | | - | - | | `%LOCALAPPDATA%\Cosmon\` | Application data, chat history, agent state | | `%LOCALAPPDATA%\Cosmon\logs\` | Local logs | ## Outbound network Required only when one or more backend connections are enabled (see [Architecture overview](/architecture/overview)). A fully airgapped deployment — machine-locked license, BYOK to an internal endpoint, telemetry off, traces off — requires no outbound network rules. ### Egress rules per connection | Connection | Destination | Port | Protocol | Purpose | | - | - | - | - | - | | Authorization (named or floating) | `desktop-api.cosmon.com` (or tenant URL) | 443 | HTTPS | OAuth flow, token refresh, license heartbeat | | LLM routing — Cosmon-routed | `desktop-api.cosmon.com` (or tenant URL) | 443 | HTTPS | LLM proxy | | LLM routing — BYOK | Customer-configured endpoint | 443 | HTTPS | Direct LLM API calls | | Operational telemetry | `desktop-api.cosmon.com` (or tenant URL) | 443 | HTTPS | Telemetry upload | | Conversation history sync | `desktop-api.cosmon.com` (or tenant URL) | 443 | HTTPS | History upload; content discarded server-side on the Enterprise plan | | Error reports | `desktop-api.cosmon.com` (or tenant URL) | 443 | HTTPS | Crash and error reports, relayed by the backend to Cosmon's error-reporting service; no conversation content | | Product analytics | `analytics.cosmon.com` | 443 | HTTPS | Feature usage events; no conversation content | | Updates | `desktop-api.cosmon.com` (or tenant URL), then `storage.googleapis.com` | 443 | HTTPS | Version check through the backend; the installer download is redirected to Cosmon's release bucket | For shared-tenant deployments, the backend destination is `desktop-api.cosmon.com`; analytics and the update download use the fixed hosts above. For single-tenant or customer-hosted backends, the backend destination is replaced by the customer-specific URL. See [Data handling](/architecture/data-handling) for what each connection carries. In BYOK mode, IT must permit egress to the customer-chosen LLM endpoint. Cosmon does not place any other constraint on that endpoint. ### Proxy Argus reads proxy configuration from the standard environment variables. There is no application-specific proxy configuration to set inside Argus. | Variable | Value | | - | - | | `HTTPS_PROXY` | The corporate proxy URL (e.g. `http://proxy.example.com:`) | | `HTTP_PROXY` | Same as `HTTPS_PROXY` if the proxy serves both schemes | | `NO_PROXY` | Must include `localhost,127.0.0.1` so that loopback IPC between Argus processes is not routed through the proxy | If the proxy presents a custom root CA (TLS inspection), see [TLS inspection and corporate certificate trust](#tls-inspection-and-corporate-certificate-trust) — the CA must be installed in the OS certificate store, not configured inside Argus. ### TLS inspection and corporate certificate trust Argus trusts the operating system's certificate store. If the corporate environment performs TLS inspection through a proxy with a custom root CA, that CA must be installed in the Windows certificate store. Once installed at the OS level, no Cosmon-specific configuration is needed. ### Streaming connections (SSE) For shared-tenant and customer-hosted deployments, Argus opens a Server-Sent Events (SSE) stream to the backend so that model output appears incrementally as the agent runs. Some VPN and forward-proxy products (Netskope, Zscaler, and similar) buffer or aggregate streamed responses by default, which causes Argus to receive the full response only after the model has finished rather than token by token. If a VPN or inspecting proxy is in the egress path, SSE responses must be passed through without buffering — no man-in-the-middle aggregation of `text/event-stream` bodies. The built-in network diagnostics (see [Diagnostics](#diagnostics)) verifies this end-to-end. ## Identity Required only when authorization is set to a named license (SSO) or a floating license. Skip this section if all users are activated with machine-locked licenses. ### OAuth sign-in flow When a user signs in, the desktop application opens the user's default browser to the Cosmon sign-in page. After the user authenticates, the browser redirects to a localhost callback URL that the desktop application listens on for the duration of the sign-in. | Component | Detail | | - | - | | Authorization endpoint | `desktop-app.cosmon.com` (or tenant sign-in domain) | | Callback URL | `http://127.0.0.1:/...` | | Default browser | Required — the application does not embed a browser | #### Hosts the browser must reach These apply to **every sign-in**, whether the user signs in with an email and password or through federated SSO. The user's browser must be able to reach the following during sign-in, in addition to the backend host in the egress table above: | Destination | Purpose | | - | - | | `desktop-app.cosmon.com` (or tenant sign-in domain) | The Cosmon sign-in page, and the redirect handler your IdP returns to when SSO is used | | `identitytoolkit.googleapis.com` | Identity platform that checks the user's credentials. Blocking it makes sign-in fail with "Network error. Please check your connection and try again." | | `securetoken.googleapis.com` | Identity platform that issues and refreshes the sign-in session | | `challenges.cloudflare.com` | Bot-protection check on the Cosmon sign-in page. Blocking it makes sign-in fail with "Could not verify your browser". | | `apis.google.com`, `www.gstatic.com` | Scripts loaded by the redirect handler. Needed for Google, Microsoft and SSO sign-in; email and password sign-in works without them. | If a proxy performs TLS inspection, exempt `identitytoolkit.googleapis.com` and `securetoken.googleapis.com` from inspection as well as allowing them. An allowlisted host that is still inspected can have its connection reset, which the browser reports as `ERR_CONNECTION_RESET` and the sign-in page reports as a network error. ### Federated SSO Enterprise customers can federate sign-in to their own identity provider (Okta, Microsoft Entra ID, Google Workspace, etc.) over OpenID Connect. Your IdP admin registers Cosmon as an OIDC client; Cosmon maps your email domains to that provider. Registering the provider is done once per organization. For the sign-in flow, the redirect URI, required claims, and the enrollment steps, see [Single sign-on](/architecture/single-sign-on). With SSO, the browser must also reach your IdP's sign-in host for the OIDC redirect to and from your IdP, in addition to the [hosts above](#hosts-the-browser-must-reach). The sign-in page also contacts the following. Sign-in works without them: | Destination | Purpose | | - | - | | `widget.intercom.io`, `*.intercom.io`, `*.intercomcdn.com` | Support chat widget | ## Engineering software access Required for every deployment that uses CAD or CAE integrations. The tool server drives the engineering software installed on the same machine. To do that, IT must permit two patterns. **Spawning third-party CAD/CAE processes.** The tool server starts the engineering application's executable (or attaches to an already-running instance). EDR will see the Cosmon tool server spawning a third-party binary like `abaqus.exe`, `SLDWORKS.exe`, or `ANSYS.exe`. The tool server should be allowlisted to spawn these binaries. **Loading a Cosmon-shipped plugin inside the host application.** Each integration ships with a plugin — a DLL, add-in, or script extension depending on the host — that loads into the CAD/CAE process. The plugin binds a loopback port and receives commands from the tool server. Both the plugin loading into the host process and the loopback bind must be permitted. **Runtime-generated automation executables.** Some integrations rely on automation executables that the host application generates at runtime (for example, SolidWorks COM automation helpers). These appear in a per-user folder and are not signed by the host vendor, so antivirus and EDR may quarantine them on creation or first execution. The folder used for these helpers should be added to the AV/EDR exclusion list, or the Cosmon tool server permitted to launch unsigned children of that folder. ## Diagnostics Argus ships a network diagnostics panel under **Settings → Network**. IT can use it to verify, from the user's machine, that: * DNS resolves and TLS handshakes succeed against every required egress destination (auth, LLM routing, telemetry, traces). * Streaming responses (SSE) arrive token by token rather than buffered into a single late response — the test that catches VPN/proxy buffering described in [Streaming connections (SSE)](#streaming-connections-sse). * Loopback ports between the desktop application, agent runtime, and tool server bind without firewall interference. If a deployment misbehaves in a way that suggests network policy (timeouts, late responses, sign-in callbacks not arriving), running this panel on the affected machine is the recommended first step before opening a support ticket. # Air-gapped license Source: https://docs.cosmon.com/architecture/on-premise/air-gapped-license Install Argus with a node-locked, cryptographically signed license file that is verified on the machine, with no license server. This is one of the two ways to license an [on-premise (BYOK)](/architecture/deployment-options#on-premise-byok) install. For machines that can reach a license server, see [Floating license](/architecture/on-premise/floating-license). An air-gapped license is a file (`.lic`) that Cosmon signs for one specific machine. Argus verifies the signature and the machine on every start, entirely offline: no license server, no account, no check-in. | | | | - | - | | Bound to | One machine, by its fingerprint | | Verified | Locally, against Cosmon's Ed25519 signature — editing the file in any way invalidates it | | Network for licensing | None | | Valid until | The expiry date signed into the file, set to your contract term | | Renewal | Cosmon sends a new file before expiry; import it the same way | | Revocation | None remotely — the file stops working only at its expiry | ## What you receive Cosmon sends your team the installer for each operating system you're testing on, plus a provenance file for each one (`.sigstore.json`) that proves where the build came from — see [Release integrity](/architecture/release-integrity). The installer is the same however the machine is licensed; there is no separate on-premise build. > [tab] Windows > > | | | > | - | - | > | File | `Cosmon Setup .exe` | > | Format | 64-bit NSIS installer, Authenticode-signed | > | Requires | Windows 10 or 11, 64-bit (ARM is not supported) | > > **Install:** run `Cosmon Setup .exe`. It installs for the current user into `%LOCALAPPDATA%\Programs\Cosmon` and never asks for administrator rights. > [tab] macOS > > | | | > | - | - | > | File | `Cosmon--arm64.dmg` | > | Format | Disk image, Developer ID-signed and notarized by Apple | > | Requires | macOS 11 or newer on Apple Silicon (Intel Macs are not supported) | > > **Install:** open the `.dmg` and drag the app to **Applications**. No administrator rights are needed. > [tab] Linux > > | | | > | - | - | > | File | `Cosmon-.AppImage` | > | Format | AppImage, unsigned — check it against the SHA-512 digest Cosmon publishes with the release | > | Requires | x86\_64 with glibc 2.28 or newer (RHEL/Rocky 8, Debian 10, Ubuntu 20.04 or later) | > > **Install:** make the file executable (`chmod +x Cosmon-.AppImage`) and run it. Allow about 2 GB of disk for the installed application. If your EDR restricts what runs, allowlist the Cosmon publisher certificate and process tree first, as described in [IT prerequisites](/architecture/it-prerequisites#workstation-baseline). You also receive one `.lic` file per machine, after you send Cosmon that machine's fingerprint (step 2). ## Install and activate **1. Install the application** Install it as described in [What you receive](#what-you-receive) for the machine's operating system. **2. Send Cosmon the machine fingerprint** Open Argus. On the first screen, choose **Activate a license key**. In the **Air-gapped** section, choose **Copy** next to the fingerprint — a 64-character code unique to this machine. Send it to Cosmon together with the machine's hostname, so each license file can be matched back to its machine. The fingerprint is a hash; the raw hardware identifier never leaves the machine. **3. Import the license file** When the `.lic` file arrives, return to the same screen, choose **Import license file…** in the **Air-gapped** section and select it. Argus opens immediately and makes no license calls from then on. The file only works on the machine it was issued for. Moving to another machine, or reinstalling the operating system, changes the fingerprint and needs a new file. **4. Connect your LLM** On the **Bring your own key** step of setup, or later under **Settings → Model & provider**: 1. Pick the **Provider**: Anthropic, OpenAI or Google. 2. Enter the **API key**. 3. For a gateway or internal model, enter its root address in **Gateway URL** (or **Anthropic Base URL** / **OpenAI Base URL** in Settings). Argus adds `/v1/messages` (Anthropic) or `/v1/chat/completions` (OpenAI) itself; OpenAI reasoning and Responses-only models use `/v1/responses` instead, so a gateway serving them must expose that path too. Gateways such as LiteLLM work with the Anthropic and OpenAI providers only. 4. Choose **Test connection**. It shows **Connected** with the response time once the endpoint answers. Keys are encrypted with the operating system's keystore: DPAPI on Windows, Keychain on macOS, and the Secret Service keyring (GNOME Keyring or KWallet) on Linux. On a Linux machine with no keyring running, keys are stored base64-encoded, not encrypted — run a keyring, or pass the key through the `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or `GOOGLE_API_KEY` environment variable instead. Prompts, responses and files go straight to this endpoint, never through Cosmon. If the machine reaches the internet through a proxy, set it first: choose **Network / proxy settings** on the first screen (or **Settings → Network**), set **Proxy mode** to **Manual**, and enter the **Proxy URL**. A TLS-inspecting proxy's root CA goes in the operating system's certificate store — see [TLS inspection](/architecture/it-prerequisites#tls-inspection-and-corporate-certificate-trust). **5. Check it works** Open a supported CAD or CAE application, start a new chat and send a short prompt. See [Quickstart](/getting-started/quickstart#your-first-prompt) for examples. To move a license off a machine, open **Settings → Account** and choose **Deactivate license**. This removes the file from the machine; importing it again restores access. ## What still reaches Cosmon The current build contacts Cosmon for the connections below, whichever license the machine uses. The machine only talks to the hosts in the **Destination** column; the **Processed by** column names the services the Cosmon backend forwards that data to. > [!WARNING] > > Turn off **Share conversation history for analytics** under **Settings → Privacy & security** on every machine. It is on by default, and while it is on, operational traces include prompts, responses and tool results. With it off, none of the connections below carry conversation content. | Connection | Destination | Processed by | Can it be turned off? | | - | - | - | - | | Update check and download | `desktop-api.cosmon.com`, then `storage.googleapis.com` | Cosmon | No. Blocking it stops automatic updates; install new versions by hand. | | Error reports | `desktop-api.cosmon.com` | Sentry | No. Stack traces, app version and OS only. | | Operational traces | `desktop-api.cosmon.com` | Logfire, and Sentry for error-level spans | No. Conversation content only while history sharing is on. | | Product analytics | `analytics.cosmon.com` | PostHog | Yes: turn off **Send anonymous telemetry** under **Settings → Privacy & security**. | See [Data handling](/architecture/data-handling#what-leaves-the-workstation) for what each connection carries. ## Updates To update by hand, run the new installer over the current version; chats, settings and the license are kept. Keep the previous installer in case you need to roll back. ## Where Argus stores data > [tab] Windows > > | | | > | - | - | > | Application | `%LOCALAPPDATA%\Programs\Cosmon` | > | Chats, settings, license | `%APPDATA%\nexus` | > | Logs and traces | `%APPDATA%\nexus\logs` | > > **Uninstall:** remove **Cosmon** in **Settings → Apps**. To also delete chats, settings and the license, delete `%APPDATA%\nexus`. > [tab] macOS > > | | | > | - | - | > | Application | `/Applications` | > | Chats, settings, license | `~/Library/Application Support/nexus` | > | Logs and traces | `~/Library/Logs/nexus` | > > **Uninstall:** move the app from **Applications** to the Trash. To also delete chats, settings and the license, delete `~/Library/Application Support/nexus`. > [tab] Linux > > | | | > | - | - | > | Application | Wherever you saved the AppImage | > | Chats, settings, license | `~/.config/nexus` | > | Logs and traces | `~/.config/nexus/logs` | > > **Uninstall:** delete the AppImage. To also delete chats, settings and the license, delete `~/.config/nexus`. When you report a problem, send the logs folder from the affected machine. # Floating license Source: https://docs.cosmon.com/architecture/on-premise/floating-license Install Argus with one product key shared across a pool of seats, activated online and released when a machine is deactivated. This is one of the two ways to license an [on-premise (BYOK)](/architecture/deployment-options#on-premise-byok) install. For machines with no network access at all, see [Air-gapped license](/architecture/on-premise/air-gapped-license). A floating license is one product key with a set number of seats. Any machine can activate with the key while a seat is free; deactivating a machine frees its seat for another. There is no Cosmon account involved — the key is the credential. | | | | - | - | | Bound to | A seat in your pool, taken by each machine that activates | | Verified | Online at activation, then by a signed certificate on the machine | | Network for licensing | `api.keygen.sh` on port 443 (HTTPS) | | Check-in | Every 3 hours while Argus runs (the license server marks a machine inactive after 6 hours without one) | | Offline tolerance | Up to 7 days — the on-machine certificate's lifetime — before Argus needs to check in again | | Revocation | Immediate on the next check-in | ## What you receive Cosmon sends your team the installer for each operating system you're testing on, plus a provenance file for each one (`.sigstore.json`) that proves where the build came from — see [Release integrity](/architecture/release-integrity). The installer is the same however the machine is licensed; there is no separate on-premise build. > [tab] Windows > > | | | > | - | - | > | File | `Cosmon Setup .exe` | > | Format | 64-bit NSIS installer, Authenticode-signed | > | Requires | Windows 10 or 11, 64-bit (ARM is not supported) | > > **Install:** run `Cosmon Setup .exe`. It installs for the current user into `%LOCALAPPDATA%\Programs\Cosmon` and never asks for administrator rights. > [tab] macOS > > | | | > | - | - | > | File | `Cosmon--arm64.dmg` | > | Format | Disk image, Developer ID-signed and notarized by Apple | > | Requires | macOS 11 or newer on Apple Silicon (Intel Macs are not supported) | > > **Install:** open the `.dmg` and drag the app to **Applications**. No administrator rights are needed. > [tab] Linux > > | | | > | - | - | > | File | `Cosmon-.AppImage` | > | Format | AppImage, unsigned — check it against the SHA-512 digest Cosmon publishes with the release | > | Requires | x86\_64 with glibc 2.28 or newer (RHEL/Rocky 8, Debian 10, Ubuntu 20.04 or later) | > > **Install:** make the file executable (`chmod +x Cosmon-.AppImage`) and run it. Allow about 2 GB of disk for the installed application. If your EDR restricts what runs, allowlist the Cosmon publisher certificate and process tree first, as described in [IT prerequisites](/architecture/it-prerequisites#workstation-baseline). You also receive the product key, in the form `COSMON-XXXX-XXXX-XXXX-XXXX`, and the number of seats it carries. ## Install and activate **1. Install the application** Install it as described in [What you receive](#what-you-receive) for the machine's operating system. **2. Allow the license server** Allow outbound HTTPS from the machine to `api.keygen.sh`. If the machine uses a proxy, set it on the first screen under **Network / proxy settings** before activating. **3. Activate with the product key** On the first screen, choose **Activate a license key**, enter the product key and choose **Activate license**. The machine takes one seat. If every seat is taken, Argus says *All seats for this license are in use. Deactivate another machine first.* **4. Connect your LLM** On the **Bring your own key** step of setup, or later under **Settings → Model & provider**: 1. Pick the **Provider**: Anthropic, OpenAI or Google. 2. Enter the **API key**. 3. For a gateway or internal model, enter its root address in **Gateway URL** (or **Anthropic Base URL** / **OpenAI Base URL** in Settings). Argus adds `/v1/messages` (Anthropic) or `/v1/chat/completions` (OpenAI) itself; OpenAI reasoning and Responses-only models use `/v1/responses` instead, so a gateway serving them must expose that path too. Gateways such as LiteLLM work with the Anthropic and OpenAI providers only. 4. Choose **Test connection**. It shows **Connected** with the response time once the endpoint answers. Keys are encrypted with the operating system's keystore: DPAPI on Windows, Keychain on macOS, and the Secret Service keyring (GNOME Keyring or KWallet) on Linux. On a Linux machine with no keyring running, keys are stored base64-encoded, not encrypted — run a keyring, or pass the key through the `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or `GOOGLE_API_KEY` environment variable instead. Prompts, responses and files go straight to this endpoint, never through Cosmon. If the machine reaches the internet through a proxy, set it first: choose **Network / proxy settings** on the first screen (or **Settings → Network**), set **Proxy mode** to **Manual**, and enter the **Proxy URL**. A TLS-inspecting proxy's root CA goes in the operating system's certificate store — see [TLS inspection](/architecture/it-prerequisites#tls-inspection-and-corporate-certificate-trust). **5. Check it works** Open a supported CAD or CAE application, start a new chat and send a short prompt. See [Quickstart](/getting-started/quickstart#your-first-prompt) for examples. ## Moving a seat A seat is freed only when its machine is deactivated. A machine that is switched off or offline keeps its seat, so a closed laptop opens a week later without losing it. * **From the machine:** open **Settings → Account**, choose **Deactivate license** and confirm. The seat is free right away. * **Machine lost or rebuilt:** ask Cosmon to release its seat. ## What still reaches Cosmon The current build contacts Cosmon for the connections below, whichever license the machine uses. The machine only talks to the hosts in the **Destination** column; the **Processed by** column names the services the Cosmon backend forwards that data to. > [!WARNING] > > Turn off **Share conversation history for analytics** under **Settings → Privacy & security** on every machine. It is on by default, and while it is on, operational traces include prompts, responses and tool results. With it off, none of the connections below carry conversation content. | Connection | Destination | Processed by | Can it be turned off? | | - | - | - | - | | Update check and download | `desktop-api.cosmon.com`, then `storage.googleapis.com` | Cosmon | No. Blocking it stops automatic updates; install new versions by hand. | | Error reports | `desktop-api.cosmon.com` | Sentry | No. Stack traces, app version and OS only. | | Operational traces | `desktop-api.cosmon.com` | Logfire, and Sentry for error-level spans | No. Conversation content only while history sharing is on. | | Product analytics | `analytics.cosmon.com` | PostHog | Yes: turn off **Send anonymous telemetry** under **Settings → Privacy & security**. | See [Data handling](/architecture/data-handling#what-leaves-the-workstation) for what each connection carries. ## Updates To update by hand, run the new installer over the current version; chats, settings and the license are kept. Keep the previous installer in case you need to roll back. ## Where Argus stores data > [tab] Windows > > | | | > | - | - | > | Application | `%LOCALAPPDATA%\Programs\Cosmon` | > | Chats, settings, license | `%APPDATA%\nexus` | > | Logs and traces | `%APPDATA%\nexus\logs` | > > **Uninstall:** remove **Cosmon** in **Settings → Apps**. To also delete chats, settings and the license, delete `%APPDATA%\nexus`. > [tab] macOS > > | | | > | - | - | > | Application | `/Applications` | > | Chats, settings, license | `~/Library/Application Support/nexus` | > | Logs and traces | `~/Library/Logs/nexus` | > > **Uninstall:** move the app from **Applications** to the Trash. To also delete chats, settings and the license, delete `~/Library/Application Support/nexus`. > [tab] Linux > > | | | > | - | - | > | Application | Wherever you saved the AppImage | > | Chats, settings, license | `~/.config/nexus` | > | Logs and traces | `~/.config/nexus/logs` | > > **Uninstall:** delete the AppImage. To also delete chats, settings and the license, delete `~/.config/nexus`. When you report a problem, send the logs folder from the affected machine. # Architecture Overview Source: https://docs.cosmon.com/architecture/overview How Argus is structured: a local-first desktop application with optional, opt-in connections to a Cosmon backend. Argus runs as a single desktop application on the engineer's workstation. Every connection it makes to a Cosmon backend is an independent opt-in — customers configure only the connections they need. > [!NOTE] > > Windows, macOS (Apple Silicon) and Linux (x86\_64, glibc 2.28 or newer) are supported today. See [Supported Software](/getting-started/supported-software#operating-systems) for the platform requirements and which integrations each platform covers. ## What runs on the workstation Argus consists of a desktop application and plugins that integrate with the engineering software installed on the same machine. The application accepts no inbound connections from the network. CAD models, simulation files, and generated code stay on the workstation. ## Optional connections to a Cosmon backend By default, the desktop application can run without contacting a Cosmon backend at all. Each connection below is configured independently. ### Authorization Argus is licensed under one of three models. | Model | Backend connection? | | - | - | | Machine-locked license | None. The license is bound to a hardware fingerprint on the workstation. | | Named license (SSO) | Required. The user signs in with a Cosmon account, or through the organization's own identity provider — see [Single sign-on](/architecture/single-sign-on). | | Floating license pool | Required. Seats are checked out from a shared pool at runtime. *(coming soon)* | Machine-locked licensing is used by customers that need the application to run with no contact with Cosmon at any point. ### LLM routing The agent calls a large language model over HTTPS. Routing is configured per deployment. | Mode | Path | API key handling | | - | - | - | | Cosmon-routed | Desktop → Cosmon backend → LLM provider | Cosmon manages the API key. | | Bring your own key (BYOK) | Desktop → customer-configured endpoint | Customer manages the API key. | In BYOK mode the desktop application calls the customer's chosen endpoint directly. The endpoint does not have to be hosted by Cosmon. ### Operational telemetry When enabled, the desktop application sends operational telemetry to the Cosmon backend: usage counts, error reports, the application version, and OS metadata. Spans that would carry prompts or tool results are removed on the workstation before upload, and the backend drops any such span that reaches it from an Enterprise account. Telemetry is on by default and can be turned off in Settings. ### Conversation history sync When enabled, the desktop application sends the conversation history to the Cosmon backend after each agent run. On the Enterprise plan the backend discards the content on arrival and keeps only counts, token totals, tool names and model names; on other plans the history is stored to support diagnostics and product analytics. Because history includes prompts and tool results, and those may contain engineering context, this is the one connection that can carry engineering content to Cosmon. Sync is on by default and can be turned off in Settings. Three further connections carry no conversation content: the version check and update download, error reports (stack traces, application version, OS) relayed through the Cosmon backend, and product analytics to `analytics.cosmon.com` with all replayed text masked. See [Data handling](/architecture/data-handling) for the full per-connection breakdown and what Cosmon stores on each plan. ## Backend topology When backend connections are enabled, the destination depends on what the customer has provisioned. | Topology | Destination | Availability | | - | - | - | | Shared tenant | `desktop-api.cosmon.com` | Default. Used by most customers. | | Single-tenant, Cosmon-hosted | Customer-specific URL | Available to enterprise customers on request. | | Customer-hosted | Customer-managed URL inside their network | Available to enterprise customers on request. | The set of opt-in connections behaves identically across topologies. Only the destination URL changes. ## Configuration spectrum The four connections above are set independently, so deployments fall on a spectrum. Two endpoints of that spectrum: > [card] Fully airgapped > > Machine-locked license, BYOK to an internal LLM endpoint, telemetry off, history sync off, and the update check blocked or disabled. Only then are there no outbound connections to Cosmon. > [card] Fully Cosmon-connected > > Named (SSO) license, Cosmon-routed LLM, telemetry on, history sync on. All connections active, against `desktop-api.cosmon.com`. Other combinations are valid. Common middle grounds include a machine-locked license with Cosmon-routed LLM, or named licenses with BYOK and history sync off. ## Further reading > [card] [Data handling](/architecture/data-handling) > > What leaves the workstation, what Cosmon stores per plan, staff access, retention and deletion. > [card] [Release integrity](/architecture/release-integrity) > > Code signing, checksums, SLSA provenance and how to verify a build. # Release integrity Source: https://docs.cosmon.com/architecture/release-integrity How Argus releases are signed, checksummed and attested, how to verify a build you received, and how dependencies are tracked. Every production release of Argus is built by Cosmon's CI from a protected release branch. This page describes the integrity guarantees attached to each release and how to verify them independently. For what IT must allowlist on the workstation, see [IT prerequisites](/architecture/it-prerequisites). ## Code signing | Platform | Artifact | Signing | | - | - | - | | Windows | NSIS installer (`.exe`) | Authenticode, SHA-256 digests, RFC 3161 timestamped. The certificate's private key is held in an HSM-backed cloud signing service and never leaves it. The installer, the main executable, helper executables, the bundled Python interpreter and Cosmon's integration DLLs are each signed individually, and signature verification is a build gate. | | macOS | `.dmg` and `.zip` (Apple Silicon) | Apple Developer ID with the hardened runtime, notarized by Apple, notarization ticket stapled. A post-build check runs `codesign`, the Gatekeeper assessment and stapler validation and fails the release if any does not pass. | | Linux | AppImage | Unsigned; there is no platform signing mechanism. Integrity is provided by the checksum manifest and the provenance attestation below. | ## Checksums Each release publishes a manifest next to the installer with the SHA-512 of every file (`latest.yml`, `latest-mac.yml`, `latest-linux.yml`). The built-in updater downloads only over HTTPS from Cosmon's release endpoint and refuses to apply any file whose SHA-512 does not match the manifest. To verify a download by hand, compare the base64 SHA-512 in the manifest with: ```bash theme={null} # macOS / Linux shasum -a 512 | awk '{print $1}' | xxd -r -p | base64 ``` ```powershell theme={null} # Windows $hex = (Get-FileHash -Algorithm SHA512).Hash [Convert]::ToBase64String([byte[]] -split ($hex -replace '..', '0x$& ')) ``` ## Build provenance Every installer on every platform ships with a [SLSA](https://slsa.dev) v1.0 build provenance attestation, a Sigstore bundle named `.sigstore.json` published beside the installer. On macOS one bundle covers both the `.dmg` and the `.zip` and is published under the `.dmg` name; verify the `.zip` against that same bundle. It is issued by GitHub Actions and binds the artifact's SHA-256 digest to the exact source commit and workflow that built it, so a binary that did not come out of Cosmon's release pipeline cannot carry a valid attestation. Verify offline with the GitHub CLI: ```bash theme={null} gh attestation verify "" --bundle ".sigstore.json" -R Cosmon-Inc/cosmon ``` ## Runtime hardening The packaged application enables Electron's integrity fuses: embedded ASAR integrity validation, load-only-from-ASAR, and `runAsNode` and Node CLI inspection disabled. Application code cannot be swapped after installation without breaking both the signature and the integrity check. ## Software bill of materials A CycloneDX SBOM is available for each release on request, covering the Electron application's runtime dependencies and the bundled Python agent's dependencies, generated from the pinned lockfiles the release was built from. Contact [support@cosmon.com](mailto:support@cosmon.com) with the release version. ## Dependencies and maintenance Dependencies are pinned by lockfile. Automated dependency update pull requests run daily for the Python packages and the CI workflow actions; coverage for the Electron application's npm packages is being added. GitHub code scanning with CodeQL runs on every pull request and on a weekly schedule across the JavaScript, TypeScript, Python, C/C++, C# and Java code in the repository. Core runtimes are kept within their upstream support windows: Electron on a currently supported major, Node.js on an LTS line, and CPython 3.12. ## Updates The desktop application checks Cosmon's release endpoint over HTTPS and applies updates through the platform mechanism: the signed NSIS installer on Windows, the signed and notarized bundle on macOS, and the AppImage on Linux. Each update is verified against the checksum manifest before it is applied. Cosmon can set a minimum supported version; a client whose version check succeeds and falls below it must update before it can continue. # Single sign-on (SSO) Source: https://docs.cosmon.com/architecture/single-sign-on Let your team sign in to Argus with your company identity provider over OpenID Connect: what your users see, what your IdP admin configures, and how accounts behave. Enterprise customers can federate Argus sign-in to their own identity provider (IdP) — Okta, Microsoft Entra ID, Google Workspace, Auth0, PingFederate, or any other provider that speaks **OpenID Connect (OIDC)**. Once your email domain is enrolled, everyone at your company signs in through your IdP: no Cosmon password, no separate button to find. SSO is available on the [Enterprise plan](/getting-started/plans-and-credits). It is configured once per organization, not per workstation. > [!NOTE] > > SSO governs **how people sign in**. Licences are still assigned in the team console — see [Teams](/getting-started/plans-and-credits#teams). Signing in through SSO does not by itself grant a licence. ## What your users see Argus uses an identifier-first sign-in: the login page asks for an email address before anything else, and the email domain decides what happens next. **1. Enter a work email** The user opens Argus, which sends them to the Cosmon sign-in page in their default browser. They type their work email and click **Continue**. **2. Argus recognizes the domain** Because the domain is enrolled for SSO, the page shows **Your organization uses SSO** and a single **Sign in with \** button. No password field appears. **3. Authenticate with your IdP** The browser redirects to your IdP. The user signs in the way they always do — including any MFA or device policy your IdP enforces. If they already have an IdP session, this step is instant. **4. Return to Argus** Your IdP redirects back to Cosmon, which completes the sign-in and hands the browser back to the desktop application. The user is signed in. Users on a domain that is *not* enrolled see a password field at step 2 instead, exactly as before. Enrolling a domain therefore changes nothing for anyone outside it. ## Requirements | Requirement | Detail | | - | - | | Plan | Enterprise | | Protocol | OpenID Connect (authorization code flow). SAML 2.0 is available on request — contact [sales@cosmon.com](mailto:sales@cosmon.com). | | Email domain | One or more domains you own, such as `acme.com`. Public mailbox providers (Gmail, Outlook.com, and similar) cannot be enrolled. | | Claims | `sub`, `email`, and optionally `name`. See [Claims](#claims). | | Browser access | Users must be able to reach both the Cosmon sign-in page and your IdP from their default browser. See [IT prerequisites](/architecture/it-prerequisites#identity). | Domains are matched exactly. If your people sign in as both `@acme.com` and `@eu.acme.com`, enroll both. ## Setting up SSO Enrollment is a short exchange between your IdP administrator and Cosmon. Cosmon registers your IdP as a trusted provider and maps your domains to it; you register Cosmon as a client in your IdP. **1. Tell Cosmon you want SSO** Email [support@cosmon.com](mailto:support@cosmon.com) (or your account manager) with the email domains to enroll and which IdP you use. Cosmon confirms the redirect URI for your tenant — for the shared cloud backend it is: ``` https://desktop-app.cosmon.com/__/auth/handler ``` Single-tenant deployments get a redirect URI on their own sign-in domain. **2. Create an OIDC application in your IdP** In your IdP's admin console, create a new **web application** using OpenID Connect with these settings: | Setting | Value | | - | - | | Grant type | Authorization code | | Sign-in redirect URI | The redirect URI from step 1 | | Scopes | `openid`, `email`, `profile` | | Assignment | The users or groups who should be able to use Argus | Your IdP issues a **client ID** and a **client secret** for the application. **3. Send Cosmon the provider details** Share the following with Cosmon. Send the client secret through a secure channel — never in plain email. | Item | Where to find it | | - | - | | Issuer URL | Your IdP's OIDC discovery document (`/.well-known/openid-configuration`) publishes it. For Okta it looks like `https://acme.okta.com`; for Entra ID, `https://login.microsoftonline.com//v2.0`. | | Client ID | The application you created in step 2 | | Client secret | The application you created in step 2 | **4. Test with one user** Cosmon registers the provider and maps your domains, then asks you to confirm. Have one assigned user sign in from the Argus login page: they should see **Your organization uses SSO** and land back in the app after authenticating with your IdP. **5. Roll out** Assign the application to the rest of your users in your IdP. Nothing changes on the workstations — the same Argus build discovers SSO from the email domain. ## Claims Cosmon reads the following claims from the ID token your IdP issues. | Claim | Required | Used for | | - | - | - | | `sub` | Yes | Stable identifier for the user within your IdP | | `email` | Yes | The user's Argus account. Sign-in fails if it is absent. | | `name` | No | Display name shown in Argus | No group or role claims are consumed. Team roles (owner, admin, member) and licences are managed in the Cosmon team console. > [!WARNING] > > The Argus account is keyed by the `email` your IdP returns, and that address is taken as-is once the user is back from your IdP. Make sure the application releases each user's primary work address: if it returns an alias or a personal address, the user is signed in to an account under that address instead of the one their colleagues invited. ## How accounts behave **Accounts are created on first sign-in.** There is no separate provisioning step: a user who authenticates through your IdP for the first time gets an Argus account for that email. To give them a licence, invite them to your team or assign them a seat in the team console. **Existing accounts are kept.** If someone already had an Argus account with the same email — for example, they signed up with a password before SSO was enrolled — their first SSO sign-in links to that account. Chat history, team membership, and licence carry over. From then on, the password path is no longer offered for that domain. **Sign-in follows your IdP.** Disabling or unassigning a user in your IdP stops them from signing in again. A desktop session that is already open stays valid until it expires or the user signs out. To cut off team access immediately, also revoke their licence in the team console — that takes effect at once and drops them to a personal Free account. **Automated provisioning (SCIM) is not available.** Users are provisioned just-in-time as described above. ## Troubleshooting > [accordion] The login page shows a password field instead of the SSO button > > The email domain is not enrolled, so the page falls back to the password path. Check that the user typed their work address (not a personal one) and that the exact domain — including any subdomain — is in the list you gave Cosmon. Contact Cosmon to add a missing domain. > [accordion] “Too many sign-in attempts. Please try again in 60 seconds.” > > The sign-in page rate-limits domain lookups per network address. On a shared corporate egress this can trip if many people sign in at once. Wait a minute and retry. > [accordion] Your IdP shows a redirect URI mismatch > > The redirect URI registered in your IdP's application does not exactly match the one Cosmon gave you. Compare scheme, host, and path character by character. > [accordion] Your IdP signs the user in, but Argus reports the sign-in failed > > The ID token is missing an `email` claim. Confirm the application in your IdP releases the `email` scope for the assigned users. > [accordion] The user is signed in, but not on the team that invited them > > Your IdP returned a different address than the one the invitation went to — an alias, a secondary domain, or a personal address. Fix the released `email` in your IdP, or re-invite the address it returns. > [accordion] “Could not verify your browser” > > The Cosmon sign-in page includes a bot-protection check served from `challenges.cloudflare.com`. Ad-blockers, privacy extensions, and inspecting proxies that block that host make the check fail. Allow the host in the browser and on the network egress path — see [IT prerequisites](/architecture/it-prerequisites#identity). # 2D to 3D Source: https://docs.cosmon.com/cad/2d-to-3d Rebuild a parametric 3D model from a 2D drawing — PDF, scanned print, or DWG — when no native CAD file exists. ## Overview Legacy parts, purchased components, and old vendor prints often exist only as a 2D drawing — a PDF, a scanned paper print, or a DWG with no attached model. Modelling from that by hand means reading every view, inferring the third dimension, and manually placing every feature. Attach the drawing and Argus reads the views, infers the third dimension, and builds a parametric feature tree that matches the dimensions on the sheet — not a flat extrusion, but a model you can edit, dimension, and re-drawing the same way you would anything modelled from scratch. ## What Argus can help with * **Part reconstruction** — Build a fully parametric solid from a multi-view 2D drawing (front, top, right, and any sections or details). * **Assembly reconstruction** — Rebuild an assembly from an exploded view and BOM, positioning components per the drawing's reference dimensions. * **Scanned and low-quality prints** — Work from a scanned paper drawing or low-resolution PDF, flagging any dimension that's illegible rather than guessing at it. * **Validation** — Compare the rebuilt model back against the source drawing to confirm every dimension matches before you use it downstream. ## Example prompts > [accordion] Rebuild a part from a PDF drawing > > ```text theme={null} > Attach C:/Incoming/legacy_bracket.pdf. Build a parametric 3D model matching the Front, Top, and Right views. Use the dimensions as given — units are millimetres. Flag any dimension you can't read clearly instead of guessing. > ``` > [accordion] Rebuild from a scanned paper print > > ```text theme={null} > This is a scanned 1998 vendor drawing (image quality is rough in places). Build the 3D solid from the two views shown. Where a dimension is smudged or unreadable, list it separately as "needs manual confirmation" rather than estimating. > ``` > [accordion] Rebuild an assembly from an exploded view > > ```text theme={null} > Attach C:/Incoming/gearbox_assembly.pdf. It shows an exploded view with a BOM and item balloons. Create each component as a separate part using the dimensions given for that item, then assemble them per the exploded view order and the centre-distance dimensions on sheet 2. > ``` > [accordion] Validate the rebuilt model against the source > > ```text theme={null} > Compare every dimension on the model you just built against the source PDF. List each one with the drawing value, the model value, and whether they match. Flag any mismatch for review before I use this model downstream. > ``` ## Tips for 2D-to-3D prompts * **Attach the clearest version you have** — a native PDF export reads far more reliably than a photographed or low-resolution scan. If only a scan exists, say so — Argus will flag uncertain dimensions instead of silently guessing. * **State the units** — old drawings frequently don't have units called out clearly, or mix inches and millimetres across a converted print. Confirm it explicitly. * **Call out ambiguity upfront** — if you already know a dimension is hard to read or a view is missing, mention it. Argus will ask for the missing value rather than infer one. * **Ask for a validation pass** — always compare the rebuilt model back against the source drawing before using it downstream. This catches misread dimensions before they propagate into a design. * **Treat the result as a starting model** — a reconstructed model reflects what's on the sheet, which may itself be out of date. Confirm fit against the physical part if precision matters. # CAD & Drawing Automation Source: https://docs.cosmon.com/cad/automation Apply the same operation — defeaturing, drawing creation, export, renaming — across many files at once. ## Overview Some CAD work isn't hard, it's just repetitive: the same drawing template applied to two hundred parts, the same defeaturing rule run across a supplier library, the same title-block field updated on every sheet in a project. Doing it by hand doesn't take skill, it takes hours. Argus runs a single instruction across an entire folder, assembly, or file list — applying the same operation consistently everywhere, and reporting back what changed on each file. Anything you'd otherwise do with a macro, Argus can usually do from a plain-language instruction, and it can save the sequence as a reusable skill for the next time the same job comes up. ## What Argus can help with * **Bulk drawing creation** — Generate a standard drawing for every part in a folder or assembly, using the same template and view scheme. * **Batch defeaturing** — Apply a simplification rule (suppress fasteners, remove small fillets, strip cosmetic features) across every file in a set. * **Batch export** — Convert a folder of parts to STEP, IGES, PDF, or another format in one pass, with consistent naming. * **Bulk metadata and title-block updates** — Update a custom property, revision, or title-block field across every drawing in a project. * **Repeatable skills** — Save a sequence you run often as a named skill, then re-run it on a new file or folder with one prompt. ## Example prompts > [accordion] Bulk drawing creation > > ```text theme={null} > For every part in C:/Projects/Bracket_Family/, generate a standard drawing using the template at C:/Templates/ISO_A3.drwdot: Front + Right view, third-angle, fully dimensioned from the model's DimXpert data. Save each drawing next to its part with the same file name and a .SLDDRW extension. Report which parts failed and why. > ``` > [accordion] Batch defeaturing across a supplier library > > ```text theme={null} > Across every part in C:/Projects/Supplier_Parts/, suppress all fasteners (screws, nuts, washers), remove fillets below 1mm radius, and strip embossed logos and cosmetic text. Save each result as a new file with a "_simplified" suffix, leaving the originals untouched. > ``` > [accordion] Batch export > > ```text theme={null} > Export every part in C:/Projects/Release_Candidates/ to STEP AP242 and PDF. Use the same base file name for both outputs and place them in a new /export subfolder. List any parts that failed to export cleanly. > ``` > [accordion] Bulk title-block or metadata update > > ```text theme={null} > Across every drawing in C:/Projects/Pump_Assembly/, update the title-block revision to "C" and add the note "Updated per ECN-4471" to the revision table. Do not touch drawings already at revision C. Report the list of files changed. > ``` > [accordion] Save a repeatable skill > > ```text theme={null} > Save the steps we just ran — suppress fasteners, remove sub-1mm fillets, export to STEP — as a skill called "prep-supplier-part". Next time I attach a new supplier part, I'll just say "run prep-supplier-part on this". > ``` ## A typical batch workflow **1. Scope the batch** Tell Argus exactly which files are in scope — a folder, a file list, or every component in an assembly — so nothing outside the intended set gets touched. ```text theme={null} List every SLDPRT file in C:/Projects/Bracket_Family/ and its subfolders. Confirm the count before we proceed. ``` **2. Dry-run on one file** Validate the rule on a single representative file before applying it everywhere. ```text theme={null} Run the defeaturing rule (suppress fasteners, remove sub-1mm fillets) on just C:/Projects/Bracket_Family/bracket_01.SLDPRT and show me the result before continuing. ``` **3. Run across the batch** Apply the validated rule to the full set. ```text theme={null} Apply the same rule to the rest of the files in that folder. Save each as a new file with a "_simplified" suffix and leave the originals untouched. ``` **4. Report results** Ask for a structured summary rather than assuming every file succeeded silently. ```text theme={null} Give me a table: file name, whether it succeeded, and how many features were removed. Flag any file that failed or needed manual review. ``` ## Feature tree optimization A feature tree that only makes sense to the person who built it is a liability the moment anyone else — a teammate, a reviewer, a configuration tool — has to touch the part. Renaming and reorganizing it by hand, feature by feature, is exactly the kind of repetitive work Argus can take on directly. ### What Argus can help with * **Descriptive renaming** — Replace generic names ("Boss-Extrude12", "Cut-Extrude3") with names that describe what each feature does. * **Folder organization** — Group related features into folders by function or build stage, so the tree reads top to bottom as a sequence of intentional steps. * **Redundancy cleanup** — Flag features that duplicate or could be consolidated with another (two separate fillet features that could be one, a sketch with unused geometry). * **Automation prep** — Name and tag the specific features and dimensions that drive variation, so a configuration tool like DriveWorks — or a design table — can reference them reliably. ### Example prompts > [accordion] Rename and organize a feature tree > > ```text theme={null} > Name every feature in the open part based on what it does, not its default name. Then group related features into folders: mounting features, venting features, and structural ribs. > ``` > [accordion] Prep a model for DriveWorks automation > > ```text theme={null} > This part will drive a DriveWorks configuration. Rename and tag every feature and dimension that changes across the family — hole pattern, boss diameter, overall length — so the logic can reference them by name instead of by position in the tree. > ``` ## Generative design assistance Sometimes the question isn't "automate this known step" but "show me options I haven't thought of." Argus can generate alternative geometry for a part under a stated load case and target — a starting point to explore, not a finished design. > [!NOTE] > > Treat generative output as a concept to evaluate, not a part to release. Validate the strongest candidate with a full analysis (see [Simulation preprocessing](/cae/preprocessing)) and a [DFMA pass](/cad/dfma-design-review) before it goes anywhere near production. ### What Argus can help with * **Concept generation** — Propose alternative geometry (rib layouts, lattice regions, load paths) for a part given boundary conditions and an objective, such as minimum mass or maximum stiffness. * **Variant comparison** — Generate several distinct concepts side by side so you can compare trade-offs before committing to one direction. * **Constraint-aware exploration** — Respect stated keep-out zones, mounting interfaces, and envelope limits while exploring the rest of the geometry freely. ### Example prompts > [accordion] Explore alternative geometry under a load case > > ```text theme={null} > Generate three alternative rib layouts for this intake manifold under the stated pressure load (350 kPa internal), optimizing for minimum mass. Keep the mounting bosses and port locations fixed. I'll validate the best candidate with a full FEA run before committing to one. > ``` > [accordion] Lightweight a bracket within a fixed envelope > > ```text theme={null} > Within the existing 120x80x40mm envelope, explore lattice or rib-based alternatives to the solid bracket that reduce mass by at least 30% while keeping the two mounting faces and four bolt holes exactly as they are. Show me two to three distinct concepts. > ``` ## Tips for automation prompts * **Scope the batch explicitly** — name the folder, file list, or assembly, and confirm the count before running. This catches an over-broad or under-broad selection before it touches the wrong files. * **Validate on one file first** — for a new rule, run it on a single representative file and check the result before applying it to hundreds of files. * **State what should not change** — "leave the originals untouched", "don't touch files already at revision C" — batch operations are only safe when the exclusions are explicit. * **Ask for a per-file report** — request a table of what happened to each file, not just a summary. Batch failures are usually a handful of edge-case files, and you need to know which ones. * **Save recurring jobs as skills** — if you run the same batch operation more than once, save it as a skill. Reusing it by name is faster and more consistent than re-describing the steps each time. # DFMA / Design Review Source: https://docs.cosmon.com/cad/dfma-design-review Analyse designs for manufacturability and assembly, and run structured design reviews, without leaving your CAD tool. ## Overview DFMA (Design for Manufacturing and Assembly) and design review are both about finding problems before the design is locked — DFMA by checking geometry against manufacturing and assembly constraints, design review by checking the design against requirements, standards, and the judgment of other engineers. Argus runs both directly on your CAD models: it flags problem areas, explains why they're a problem, and can apply the fix. It can also prepare and run the review itself — comparing revisions, checking against a requirement set, and producing a findings list for the meeting. What normally takes hours of manual review can be done in a single prompt. ## DFMA The most common DFMA variants: * **DfM** — Design for Manufacturability * **DfA** — Design for Assembly * **DfS** — Design for Sustainability * **DfR** — Design for Reliability ### What Argus can help with * **DfM** — Identify features that will be difficult or expensive to manufacture: undercuts, thin walls, sharp internal corners, non-standard tool sizes, insufficient draft angles. * **DfA** — Flag components that are hard to access during assembly, have no clear insertion direction, or require special tooling. * **DfS** — Estimate material usage, identify overbuilt sections that can be lightweighted, and flag high embodied-carbon materials. * **DfR** — Identify stress concentrations, fatigue-prone geometry, and features likely to fail under repeated loading. ### Example prompts > [accordion] DfM — Check for CNC machineability > > ```text theme={null} > Analyse the active part for CNC machineability. Flag any undercuts, wall thickness below 1.5mm, and internal corner radii smaller than R3. List each issue with its location and a suggested fix. > ``` > [accordion] DfM — Injection moulding check > > ```text theme={null} > Check the current part for injection moulding issues. The draw direction is +Z. Flag any undercuts, draft angles below 1°, wall thickness outside 2–4mm, and sink risk areas. Prioritise by severity. > ``` > [accordion] DfA — Assembly review > > ```text theme={null} > Review the assembly at C:/Projects/Pump_Housing/pump_asm_v2.SLDASM for assembly difficulty. Identify any components that cannot be inserted without first removing another part, and list them in order of severity. > ``` > [accordion] DfS — Lightweighting > > ```text theme={null} > Identify regions in the bracket where material can be removed without significantly reducing stiffness. Suggest topology changes and estimate the mass reduction for each. > ``` > [accordion] DfR — Fatigue-prone geometry > > ```text theme={null} > Review the weldment for fatigue risk under cyclic loading (10^6 cycles, load reverses through zero). Flag sharp re-entrant corners, sudden section changes, and unsupported cantilevered features. Suggest geometry changes to reduce stress concentration at each. > ``` ## Design review A design review checks the model against requirements, standards, and previous decisions — not just manufacturability. Argus can prepare the review package, run the requirement checks, and diff revisions so the meeting starts with a findings list instead of a blank model. ### What Argus can help with * **Requirement compliance** — Check the model against a written requirement set and list every feature that doesn't comply. * **Revision comparison** — Diff two versions of a part or assembly and summarise what changed: geometry, mass, dimensions, custom properties. * **Review packages** — Generate the summary document a review board expects: overview, open questions, DFMA findings, and requirement compliance in one place. * **Open-question tracking** — Surface areas of the design that are ambiguous, underspecified, or depend on an assumption that hasn't been confirmed. ### Example prompts > [accordion] Compliance review against requirements > > ```text theme={null} > Review this part against the following requirements: max weight 250g, material PA66-GF30, wall thickness 2.5–4mm, no undercuts, all radii ≥ R2. List every feature that does not comply and explain why. > ``` > [accordion] Compare two revisions > > ```text theme={null} > Compare C:/Projects/Bracket/bracket_rev_a.SLDPRT against C:/Projects/Bracket/bracket_rev_b.SLDPRT. List every dimensional change, any features added or removed, and the resulting change in mass. Flag anything that would affect the mating clearance plate. > ``` > [accordion] Generate a design review package > > ```text theme={null} > Prepare a design review package for the pump housing assembly: a one-page summary of the design intent, the DfM and DfA findings from this session, a list of open questions, and a compliance check against the attached requirements document. Format it for a PDF handout. > ``` > [accordion] Surface open questions > > ```text theme={null} > Go through this assembly and list anything that looks underspecified or assumption-driven — missing tolerances, generic materials, mates that don't reflect a real fastening method, or features with no clear function. I'm prepping for design review and want the gaps, not a pass/fail. > ``` ## Tips for DFMA and design review prompts * **Name the process** — The rules for CNC differ from injection moulding, casting, or 3D printing. Always state the manufacturing process so Argus applies the right checks. * **Specify standards** — Include tolerancing standards (ISO 2768, GD\&T) or internal guidelines if relevant. * **Attach the requirements document** — For compliance reviews, attach the actual spec rather than restating it from memory — Argus checks against what's written, not what's implied. * **Ask for a prioritised list** — Argus can rank issues by severity, cost impact, or ease of fix. * **Apply the fixes** — After reviewing the list, prompt "apply the highest-priority fixes" and Argus will make the geometry changes directly. * **State what changed, not just what to compare** — When diffing revisions, mention any context (a customer request, a failed test) so Argus can flag whether the change actually addresses it. # Drawing Creation (3D to 2D) Source: https://docs.cosmon.com/cad/drawing-creation Get a drawing most of the way there — views, initial dimensions, notes, and tolerance assistance, directly inside your CAD modeler. ## Overview Argus gets a drawing most of the way there: it picks views, places initial dimensions on the view that reveals them, adds notes, and helps apply tolerances and GD\&T. You describe the intent and the standard; Argus drafts to it, following ASME Y14.5, ISO 128/8015, or your own house rules. > [!NOTE] > > Treat Argus as a drafting assistant, not a replacement for a final check. It gets you to a strong first pass — views, dimensioning scheme, tolerances, notes — but a full production-grade, release-ready drawing still needs a pass from an engineer. Run [Drawing Review](/cad/drawing-review) and a human check before it goes out. **Always select the Drawing agent** — then describe the goal, attach context, and send. Capabilities: Part & Assembly Drawings · Multi-view · Section & Detail · BOM & Balloons · GD\&T ## Doing the same drawing over and over? Train a workflow If you generate the same style of drawing repeatedly — same template, same view scheme, same tolerancing rules, just a new part each time — this is the best way to do it. A [Workflow](/getting-started/workflows) turns that entire drawing procedure into a button: train it once on a real part, then create every drawing after that with a click instead of a prompt. **1. Build it on one part** Produce a drawing exactly the way you want it — your template, your views, your dimensioning scheme — in a workflow chat. ```text theme={null} "Using our A3 template, generate Front + Right view, third-angle, fully dimensioned from DimXpert data, title block filled from the model's custom properties." ``` **2. Test run to validate** Run it once for real on a representative part. Once it passes, Argus saves it as a validated workflow. **3. Run it for every new part** For the next part, open the workflow, swap in the new file, and hit **Run**. Same template, same views, same rules — no re-prompting. See [Workflows](/getting-started/workflows) for the full guide to building, validating, and running one. ## Two ways to work You can steer every step or hand Argus the goal and let it run — either way produces the same drawing. > [card] Step by step — fast & precise > > You make the calls. Each step runs straight through and lands exactly what you asked for. > > ```text theme={null} > "Front + right view on A3 + dimensions." > ``` > [card] Hands-off — least effort > > Describe the goal and Argus picks the views, scheme, and layout for you. > > ```text theme={null} > "Make a fully dimensioned A3 drawing." > ``` **What steering looks like — one prompt at a time:** ```text theme={null} 1 "Front + Right view on A3, third-angle." 2 "Add Section A-A through the front view." 3 "Dimension it — ordinate from the bottom-left corner." 4 "Add GD&T: position on the 4 bolt holes to datums A|B|C." ``` Each step is small and you can check it before the next. Prefer hands-off? The same drawing from one prompt: *"A3 third-angle, fully dimensioned, with a section through the bore."* ## Three built-in workflows Argus ships with three predefined drawing workflows. Launch them from the buttons at the top of the chat. Treat them as starting points — open any workflow and edit the steps to match your standards: your template, your planning rules, your review checklist. > [accordion] Drawing Plan — plan before you draw > > Decides *how* to draw the part first — manufacturing method, primary view, the view set, dimensioning scheme, sheet, scale, and GD\&T. You approve or adjust, then it executes. > > Edit it to encode your planning standards. > [accordion] Drawing Recipe — make a standard drawing > > Produces a standard drawing end to end, the way your shop always does it. > > Edit it to point at your template and house conventions. > [accordion] Drawing Review — check the result > > A manufacturing and standards review — checks the drawing feature by feature against ASME/ISO and your house rules: missing or wrong-view dimensions, blank title-block fields, missing tolerances, overlaps. > > Edit it to match your review standards. See [Drawing Review](/cad/drawing-review) for the full workflow and example prompts. ## Example prompts > [accordion] Generate a drawing from scratch > > ```text theme={null} > Front + Top + Right, third-angle, A3 landscape. > ``` > > ```text theme={null} > A3 third-angle. Front + Right, then Section A-A through the bore. Dimension ordinate from the bottom-left, hole callouts on the circular view. GD&T: position on the bolt holes to A|B|C. Title block material 6061-T6. > ``` > [accordion] Add a section or detail view > > ```text theme={null} > Section A-A through the bore, aligned vertical. > ``` > > ```text theme={null} > Add a 2:1 detail view on the keyway. > ``` > [accordion] Dimension and tolerances > > ```text theme={null} > Dimension the front view — ordinate from the bottom-left corner. > ``` > > ```text theme={null} > Hole callouts on the circular view, PCD reference circle. > ``` > > ```text theme={null} > Turned part — dimension from the spindle face as datum A. > ``` > [accordion] Add GD\&T > > ```text theme={null} > Add GD&T: position on the 4 bolt holes to datums A|B|C. > ``` > > ```text theme={null} > Add a flatness tolerance of 0.05mm to the bottom face. > ``` > [accordion] Title block and template > > ```text theme={null} > Title block: material 6061-T6, finish anodized, drawn-by . > ``` > > ```text theme={null} > Use the template at C:\Templates\ISO_A3.drwdot. > ``` > [accordion] Generate a BOM > > ```text theme={null} > Generate a BOM from the active assembly. Include columns for Item, Part Number, Description, Material, Quantity, and Mass (kg). Format it for inclusion on the assembly drawing sheet. > ``` ## You're in control ### 1. Attach a template — anywhere Drop your `.drwdot` into a workflow, attach it in the chat with the clip icon, or specify its path. Argus uses it either way. ### 2. Select it, then say what to do Select dimensions or views in your CAD modeler, tell Argus you've selected them, and it edits, deletes, or updates just those. ```text theme={null} "Change the tolerance on these to ±0.05." "Make these bores H7." "Move the Ø12 callout off the section line." ``` ### 3. Stop it when it deviates If Argus heads the wrong way, hit stop and redirect — you're never locked into a run. Correct it in a sentence and carry on from where it was. ### 4. Teach it once, reuse it forever Run a task — say, applying your tolerance standard. Once it's right, tell Argus to save those steps as a skill, then reuse it by name: ```text theme={null} "Use apply-tolerances-mystandard on this part." ``` For a full drawing you regenerate for every new part — not just one sub-step — save it as a [Workflow](/getting-started/workflows) instead: same idea, but triggered with a Run button instead of a prompt. See [Doing the same drawing over and over?](#doing-the-same-drawing-over-and-over-train-a-workflow) above. ## Tips for drawing creation prompts * **Specify the standard upfront** — ISO and ASME Y14.5 have different annotation conventions, projection methods, and tolerance interpretation rules. State which applies. * **Be specific about views and layout** — name the views, sheet size, projection angle, and scale. The more you name, the more precisely Argus lands it. * **Name datums explicitly** — when applying GD\&T, specify datum letters and which faces they correspond to so references are consistent across features. * **Describe what's already there** — if a drawing exists and you're adding to it, tell Argus what views and dimensions are already present so it doesn't duplicate them. * **Run Drawing Review before sending it out** — after generating, run [Drawing Review](/cad/drawing-review) to check for undimensioned features, blank title-block fields, and missing tolerances before sending for approval. * **Plan for a final human check** — Argus gets views, dimensions, notes, and tolerances most of the way there in one pass, but treat the output as a strong draft. Have an engineer review it before it's treated as production-grade and released. * **Train a workflow for repeat jobs** — if you generate the same drawing style from a template over and over, validate it as a [Workflow](/getting-started/workflows) once, then run it for every new part instead of re-prompting. # Drawing Review Source: https://docs.cosmon.com/cad/drawing-review Check a drawing against standards, house rules, and prior revisions before it goes out for approval or to a supplier. ## Overview A drawing that looks complete can still have blank title-block fields, undimensioned features, or a tolerance that doesn't match the model. Catching these manually means reading every view, every dimension, and every note — and it's easy to miss one on a dense sheet. Argus reviews a drawing feature by feature against ASME Y14.5, ISO 128/8015, or your own house rules, and can also check it against a previous revision or an incoming supplier drawing. You get a structured issue list, not a redlined guess — each item with its location and what's wrong. **Use the built-in Drawing Review workflow** for a standards and manufacturability pass in one step — see [Drawing Creation](/cad/drawing-creation#three-built-in-workflows) for how to launch it, or drive the checks below directly with a prompt. ## What Argus can help with * **Standards compliance** — Check every dimension, tolerance, and annotation against ASME Y14.5 or ISO 128/8015 conventions. * **Completeness** — Flag undimensioned features, blank title-block fields, missing tolerances, and dangling leaders. * **Model-to-drawing consistency** — Cross-check drawing dimensions against the native 3D model to catch a drawing that's gone stale. * **Revision comparison** — Diff the current drawing against a previous revision and list exactly what changed. * **Incoming drawing review** — Check a supplier or vendor drawing against your requirements: material, tolerance class, finish, and callouts. * **House rules** — Apply your own review checklist — anything from "no dimensions on hidden lines" to "every hole must reference the drilling standard." ## Example prompts > [accordion] Full standards compliance review > > ```text theme={null} > Review C:/Projects/Bracket/bracket_v3.SLDDRW against ASME Y14.5. List every issue: undimensioned features, missing tolerances, blank title-block fields, dangling or overlapping leaders, and any dimension placed on the wrong view. Prioritise by severity. > ``` > [accordion] Compare against a previous revision > > ```text theme={null} > Compare the current drawing against C:/Projects/Bracket/bracket_v2.SLDDRW (Rev A). List every dimension, tolerance, and note that changed, and flag anything that changed without a corresponding revision table entry. > ``` > [accordion] Model-to-drawing consistency check > > ```text theme={null} > Check every dimension on this drawing against the current state of the model. Flag any dimension that doesn't match, any feature on the model with no corresponding dimension, and any drawing view marked out of date. > ``` > [accordion] Review an incoming supplier drawing > > ```text theme={null} > Attach C:/Incoming/Supplier/valve_body_supplier.pdf. Check it against our requirements: material 316 stainless, all wetted surfaces Ra 1.6 or better, wall thickness minimum 3mm, and NPT thread callouts per ANSI B1.20.1. List anything that doesn't comply or isn't specified. > ``` > [accordion] Apply a custom house-rules checklist > > ```text theme={null} > Review this drawing against our house rules: (1) no dimensions on hidden lines, (2) every through-hole references a drill standard callout, (3) title block "Checked By" is never blank at release, (4) all critical-to-function dimensions are flagged with a note. Report pass/fail on each rule with locations for any failure. > ``` ## Tips for drawing review prompts * **State the standard** — ASME and ISO differ on tolerance interpretation, projection convention, and annotation style. Say which one applies before asking for a compliance check. * **Say what to compare against** — a blank standards check, a previous revision, or an incoming supplier spec each need a different comparison target. Be explicit about which one you want. * **Ask for a structured issue list, not a summary** — request each finding with its location (view, dimension, or title-block field) and severity, so the list can be worked through directly. * **Provide your house rules once, reuse them** — if you review drawings against the same checklist repeatedly, save it as a skill so you don't have to restate it every time. * **Run it before release-critical gates** — use drawing review before sending a drawing to a supplier, submitting for approval, or gating a [part release](/cad/part-release). # Fixing Errors Source: https://docs.cosmon.com/cad/fixing-errors Diagnose and fix rebuild errors, broken references, mate conflicts, and other CAD errors. ## Overview Rebuild errors, broken external references, mate conflicts, and corrupted feature trees are routine in CAD work — and routinely time-consuming, because the error message rarely points straight at the cause. An over-defined sketch, a missing mate reference, or a broken link after a file move can each take longer to trace than to fix. Describe what you're seeing — the error message, what changed recently, what you expected instead — and Argus works through the likely causes the way an experienced user would, then applies the fix on your confirmation. ## What Argus can help with * **Rebuild errors** — Diagnose failed features: over-defined or under-defined sketches, missing geometry references, invalid feature parameters. * **Broken external references** — Repair dangling links after a file was renamed, moved, or a referenced part changed shape. * **Assembly mate and constraint errors** — Identify which mate is over-constraining or conflicting, and why, in assemblies with many components. * **Corrupted or unstable feature trees** — Isolate which feature in a long history is the actual source of instability, not just the first one flagged. * **Drawing errors after a model change** — Fix out-of-date or broken views, dangling dimensions, and missing annotations after the underlying model changes. * **Import and translation errors** — Diagnose why an imported STEP or IGES file failed to translate cleanly or won't open. ## Example prompts > [accordion] Rebuild error — over-defined sketch > > ```text theme={null} > Feature "Boss-Extrude3" fails to rebuild with "sketch is over-defined." I haven't touched this sketch recently — the error started after I changed the base plate thickness in an earlier feature. Diagnose the conflicting relation and fix it without changing design intent. > ``` > [accordion] Broken external reference > > ```text theme={null} > This assembly has a broken reference: "Could not find external reference 'Bracket_Mount' in Housing_Assy." The part was recently renamed from Bracket_Mount.SLDPRT to Mount_Bracket_v2.SLDPRT and moved to a new folder. Repair the reference to point at the renamed file. > ``` > [accordion] Assembly mate conflict > > ```text theme={null} > The assembly shows "Mates in conflict" on three mates involving the Idler_Pulley component. Identify which mates are actually conflicting versus which are just downstream of the real conflict, explain the root cause, and suggest which mate to modify. > ``` > [accordion] Unstable feature tree > > ```text theme={null} > This part has 40 features and rebuild instability appears intermittently — sometimes it rebuilds clean, sometimes three features fail. Find the actual source feature (not just the first one flagged) and explain why it's unstable. > ``` > [accordion] Drawing view out of date > > ```text theme={null} > The Section A-A view on this drawing shows "view out of date" and two dimensions are showing as dangling. The model's bore diameter changed from 20mm to 25mm. Refresh the view and reattach the dangling dimensions to the correct edges. > ``` > [accordion] Import translation failure > > ```text theme={null} > C:/Incoming/housing_supplier.step fails to open with "invalid or corrupt geometry data" in the second body. Identify which entities are causing the failure and attempt to recover a valid solid from what can be translated. > ``` ## The debugging mindset The most effective error-fixing prompts follow the **describe symptoms** rule from the [Prompting Guide](/getting-started/quickstart#prompting-guide): 1. **State what happened** — the exact error message, the feature or mate it's attached to, and when it started. 2. **State what you expected** — what a correct rebuild or result should look like. 3. **State what changed recently** — the edit, import, or rename that likely triggered it, so Argus doesn't have to guess at the trigger. Here's an example that does all three: ```text theme={null} Part fails to rebuild at "Cut-Extrude5" with "the sketch plane could not be found." I expected it to rebuild clean — it worked before I suppressed the "Reference_Plane2" feature earlier in the tree. I've already tried un-suppressing that feature — the error goes away, but I need this feature suppressed for the lightweight configuration. Find an alternative sketch plane that doesn't depend on the suppressed feature. ``` ## Tips for error-fixing prompts * **Paste the exact error message** — the precise wording usually names the feature, mate, or entity Argus needs to locate the problem, rather than a paraphrase. * **Say what changed recently** — a rename, a suppressed feature, an edited dimension. Most CAD errors are triggered by a specific prior change, and naming it narrows the diagnosis immediately. * **Distinguish the trigger from the symptom** — in assemblies and long feature trees, the first error shown often isn't the root cause. Ask Argus to trace back to the actual source. * **State constraints on the fix** — "don't change the outer profile", "this feature needs to stay suppressed for the lightweight configuration" — so the fix doesn't solve one problem by creating another. * **Ask for the explanation, not just the fix** — understanding why an error happened prevents the same class of error on the next model. # CAD Modeling Source: https://docs.cosmon.com/cad/modeling Build, modify, and parameterise geometry in your CAD tool using natural language. ## Overview Argus can create and modify geometry directly in SolidWorks — sketches, features, surfaces, and assemblies. You describe the shape and intent; Argus handles the feature tree. This is useful when creating geometry from a specification, making systematic edits across many features, re-parameterising existing models, or applying changes that are tedious to perform manually. ## What Argus can help with * **Part modelling** — Create bosses, cuts, fillets, ribs, shells, sweeps, lofts, and complex surfaces from a written description. * **Parametric editing** — Change dimensions and relationships across an entire feature tree without opening each feature individually. * **Assembly management** — Add, suppress, or reorder components; create and update mates; run interference checks. * **Configuration and variants** — Generate a family of parts (small, medium, large) from a master model, or create a simplified body for simulation. * **Import and repair** — Import STEP/IGES files and repair common translation issues (missing faces, open bodies, duplicate geometry). * **File export** — Export the active part or assembly to a neutral or downstream format (STEP, IGES, Parasolid, STL, DXF, PDF) with the right options for the destination — tessellation quality for STL, simplified vs. as-modeled geometry, units, and configuration selection. ## Example prompts > [accordion] Create a part from a description > > ```text theme={null} > Create a new part: a rectangular base plate 120mm x 80mm x 6mm. Add four M6 counterbored holes at each corner, 10mm from each edge. Add a 2mm fillet on all top edges. Set the material to Aluminium 6061-T6. > ``` > [accordion] Parametric edit across files > > ```text theme={null} > In C:/Projects/Bracket/bracket_v3.SLDPRT, change the boss diameter from 20mm to 25mm. Then update the clearance hole in the mating part at C:/Projects/Bracket/clearance_plate.SLDPRT to match, with 0.5mm clearance. > ``` > [accordion] Assembly operation > > ```text theme={null} > Open C:/Projects/Pump/pump_asm_v2.SLDASM. Suppress all fasteners (screws, bolts, washers, nuts) and hide the housing body. Take a screenshot of the exposed internal components. > ``` > [accordion] Create a part family > > ```text theme={null} > From the current master part, create three configurations named Small (scale factor 0.8), Standard (as-is), and Large (scale factor 1.25). Save each as a separate SLDPRT file in C:/Projects/Family/. > ``` > [accordion] Import and repair > > ```text theme={null} > Import C:/Incoming/housing_supplier.step and check it for translation issues. Report any open bodies, missing faces, or duplicate geometry. Attempt automatic healing and confirm the resulting body is solid. > ``` > [accordion] Export to a neutral format > > ```text theme={null} > Export the active assembly to STEP AP242, units millimetres, as-modeled geometry (not simplified). Also export a lightweight STL at 0.05mm tessellation tolerance for a 3D print check. Save both to C:/Projects/Pump/export/ using the assembly file name. > ``` ## Tips for geometry prompts * **Reference features by name** — "The Base-Extrude feature" or "the M8 tapped hole pattern" is more reliable than "the first boss" when editing existing models. * **Specify the plane** — For sketches, say "on the top face" or "on the Front plane" to avoid ambiguity. * **Use relative positioning** — "10mm from the edge", "centred on the face", "offset 5mm from Datum Plane 1" — Argus understands spatial language. * **State current state** — If modifying an existing part, briefly describe the relevant current state if it's not obvious from the file name or context. * **Name the destination format's requirements** — exporting for a supplier, a simulation, or a 3D print each call for different settings (as-modeled vs. simplified geometry, tessellation tolerance, units). State what the export is for so Argus picks sensible defaults. # Part Release Source: https://docs.cosmon.com/cad/part-release Run pre-release checks and generate release packages before a part or assembly goes to manufacturing or PLM. ## Overview Releasing a part means more than the model being finished — it means no rebuild errors, no dangling external references, correct metadata, and a package of the right files in the right formats waiting for whoever picks it up next: a supplier, a PLM system, or a shop. Missing any one of these is a common source of a release getting bounced back. Argus runs the pre-release check, tells you exactly what's blocking release (not just that something is), and generates the release package once the model is clean. Where you use a PDM or PLM system, it can also push the revision and metadata update. ## What Argus can help with * **Pre-release checks** — Confirm no rebuild errors or warnings, no suppressed features left unexplained, no in-context (external) references, and correct material and custom properties. * **BOM verification** — Confirm the BOM structure matches the assembly as modelled, with no missing, duplicate, or mismatched-quantity items. * **Release packages** — Generate the standard bundle for release: dimensioned PDF drawing, neutral-format model (STEP, IGES), and BOM, in your defined folder structure and naming convention. * **Revision and metadata updates** — Bump the revision and update title-block and custom-property metadata across a part and everywhere it's referenced in parent assemblies. * **PDM/PLM sync** — Where connected, check in files and update state and metadata in SolidWorks PDM or Teamcenter as part of the release step. ## Example prompts > [accordion] Run a pre-release check > > ```text theme={null} > Run a pre-release check on C:/Projects/Pump/pump_asm_v2.SLDASM and every part it references. Confirm: no rebuild errors or warnings, no suppressed features without a design-table or configuration reason, no in-context references to other assemblies, and every part has material and part number custom properties set. List every blocker before I proceed. > ``` > [accordion] Verify the BOM before release > > ```text theme={null} > Compare the BOM on the assembly drawing against the actual component structure in pump_asm_v2.SLDASM. Flag any component in the model missing from the BOM, any BOM line with no matching component, and any quantity mismatch. > ``` > [accordion] Generate a release package > > ```text theme={null} > Generate a release package for the bracket at C:/Projects/Bracket/bracket_v3.SLDPRT: a dimensioned PDF of the drawing, a STEP AP214 export of the model, and the BOM as a CSV. Name each file _. and place them in C:/Releases/ECN-4471/. > ``` > [accordion] Bump revision across an assembly > > ```text theme={null} > Bump the revision from B to C on C:/Projects/Bracket/bracket_v3.SLDPRT and update every parent assembly drawing that references it. Add a revision table entry noting "Updated per ECN-4471" on each affected drawing. > ``` > [accordion] Sync release metadata to PDM > > ```text theme={null} > Once the pre-release check passes, check in C:/Projects/Bracket/bracket_v3.SLDPRT to SolidWorks PDM, set its state to "Released", and update the revision and effective date custom properties to match the drawing. > ``` ## Tips for part release prompts * **State your release checklist explicitly** — "no rebuild errors" means different things at different companies. If you have a house checklist, give it to Argus once and reuse it as a skill for every release. * **Name your PDM/PLM system** — if metadata needs to sync to SolidWorks PDM or Teamcenter, say so — the check-in and state-update steps are system-specific. * **Ask for blockers, not silent fixes** — for release-critical items (missing material, in-context references), ask Argus to report the issue rather than guess at a fix. Some decisions belong to you. * **Specify the package contents and naming convention** — file formats, naming pattern, and destination folder should be explicit so the package matches what your downstream process expects. * **Run the pre-release check before generating the package** — catching a blocker before the package is built avoids releasing files that need to be redone. # Reverse Engineering Source: https://docs.cosmon.com/cad/reverse-engineering Turn a 3D scan — mesh, STL, or point cloud — into an editable, parametric CAD model. ## Overview A 3D scan gives you a mesh or point cloud — millions of facets with no feature history, no datums, and nothing you can parametrically edit. That's fine for visual reference or inspection, but it isn't usable for design changes, mating with other parts, or driving a drawing. Argus takes scan data and builds a real, editable feature tree behind it: recognising planes, cylinders, and other primitive features in the mesh, fitting parametric geometry to them within a stated tolerance, and reconstructing the part the way an engineer would model it from scratch — not a surface wrapped around the scan. ## What Argus can help with * **Feature recognition** — Identify planar faces, cylindrical bosses and bores, fillets, and other primitives directly from mesh data. * **Parametric reconstruction** — Build a native feature tree (extrudes, revolves, fillets) fitted to the recognised features, editable like any modelled part. * **Alignment and datums** — Establish a coordinate system on the scan from reference features, so the reconstructed model lands in a usable orientation. * **Scan-to-model deviation** — Compare a scan against an existing CAD model (or the reconstruction itself) and report where they diverge, for inspection or as-built verification. * **Mixed-fidelity modelling** — Model functional, mating features (bores, mounting faces, threads) exactly, while approximating organic or cosmetic surfaces where exact reconstruction isn't the goal. ## Example prompts > [accordion] Reconstruct a part from an STL scan > > ```text theme={null} > Import C:/Scans/housing_scan.stl (structured-light scan, units millimetres). Identify the primary planar and cylindrical features and build a parametric solid matching the scan within 0.1mm. This part has no functional surfaces requiring higher precision — a good general fit is fine. > ``` > [accordion] Align a scan to a reference coordinate system > > ```text theme={null} > On the imported mesh, identify the bottom mounting face, the two dowel-pin bores, and use them to establish an aligned coordinate system: bottom face as the XY plane, one bore as the origin, the second bore defining the X axis. Reorient the scan to that coordinate system before reconstruction. > ``` > [accordion] Scan-to-model deviation report > > ```text theme={null} > Compare the scan at C:/Scans/pump_housing_asbuilt.stl against the nominal CAD model at C:/Projects/Pump/pump_housing.SLDPRT. Generate a colour deviation map and report the maximum positive and negative deviation, and any region exceeding ±0.5mm. > ``` > [accordion] Reconstruct a legacy part with no CAD file > > ```text theme={null} > This bracket has no existing CAD model — it's out-of-production tooling we scanned to replicate. Reconstruct it as a fully parametric part from C:/Scans/bracket_legacy.stl. The two bolt holes and the mating flange face are functional and must match the scan within 0.05mm; the rest of the body can be a clean approximation of the scanned surface. > ``` ## Tips for reverse engineering prompts * **Say how the scan was captured** — structured-light, laser, CT, or photogrammetry scans differ in noise characteristics and typical accuracy. This helps Argus judge what's real geometry versus scan noise. * **State a target tolerance** — "within 0.1mm" gives Argus a concrete fit criterion. Without one, it has to guess how tightly to chase the mesh. * **Separate functional from cosmetic features** — call out which features must match exactly (mating faces, bores, thread engagement) versus which can be a clean approximation (organic surfaces, cosmetic curvature). This is the single biggest lever on how usable the result is. * **Give a reference for alignment** — if the part needs to sit in a specific orientation or coordinate system (to mate with another part, or match a drawing), name the reference features to align to. * **Ask for a deviation report when accuracy matters** — for inspection or as-built verification, always request the scan-to-model comparison rather than assuming the fit is good. # Tolerance Stack-up Source: https://docs.cosmon.com/cad/tolerance-stackup Verify assembly-level requirements against individual part tolerances, directly from your CAD models and drawings. ## Overview A tolerance stack-up checks whether the tolerances assigned to individual parts still let the assembly meet its functional requirement — a gap that must stay open, a shaft that must turn freely in a bore, a stack of shims that must land within a target range. Building the chain by hand means tracing every contributing dimension across multiple parts and drawings, then working the arithmetic worst-case or statistical. Argus builds the dimension chain directly from your CAD models and drawings, runs the stack-up, and tells you whether the requirement holds — and if it doesn't, which tolerances are driving the overrun. ## What Argus can help with * **Worst-case stack-up** — Sum contributing tolerances at their extremes to find the guaranteed bound on the resulting dimension. * **Statistical (RSS) stack-up** — Combine contributing tolerances in root-sum-square to estimate the realistic variation, assuming independent, normally distributed contributors. * **Chain identification** — Trace the dimension chain across multiple parts in an assembly, including GD\&T call-outs, and confirm nothing in the path was missed. * **Sensitivity analysis** — Rank contributors by how much of the total variation each one accounts for, so you know which tolerance to tighten first. * **Tolerance allocation** — Given a target assembly requirement, recommend a tolerance for each contributor that meets it without over-tightening the whole chain. ## Example prompts > [accordion] Worst-case 1D stack-up > > ```text theme={null} > Run a worst-case tolerance stack-up on the gap between the bracket face and the housing wall in C:/Projects/Pump/pump_asm_v2.SLDASM. The chain runs through: bracket thickness (25 ±0.1mm), spacer height (10 ±0.05mm), and housing wall position (40 ±0.15mm). The gap must stay between 3mm and 7mm. Report the worst-case min and max gap and whether the requirement is met. > ``` > [accordion] Statistical (RSS) stack-up > > ```text theme={null} > Run an RSS stack-up on the same gap chain, assuming each contributor is normally distributed with the drawing tolerance at ±3σ. Report the resulting mean, standard deviation, and the 3σ range. Compare against the worst-case result from the earlier run. > ``` > [accordion] Sensitivity / contributor ranking > > ```text theme={null} > For the gap stack-up we just ran, rank the three contributors by their share of the total variation. Tell me which one tolerance I'd need to tighten to bring the 3σ range under 3.5mm, and to what value. > ``` > [accordion] Tolerance allocation from a target > > ```text theme={null} > The bore-to-shaft clearance must be 0.05–0.15mm (RSS, 3σ). The chain has three contributors: bore diameter, shaft diameter, and bushing wall thickness. Assume equal contribution from each and recommend a tolerance for each dimension that satisfies the requirement. > ``` > [accordion] Stack-up from GD\&T on a drawing > > ```text theme={null} > Attach C:/Projects/Bracket/bracket_asm.pdf. Build the dimension chain for the position tolerance stack between the two mounting holes and the datum edge, including the position tolerance (⌀0.2mm at MMC) and datum feature simulator. Run a worst-case stack-up and report the resulting positional bound. > ``` ## Tips for tolerance stack-up prompts * **State the requirement and its direction** — say what the resulting dimension is (a gap, a clearance, an offset), its target range, and which direction is critical (minimum, maximum, or both). * **List every contributor explicitly** — name each part, the dimension, and its tolerance. Argus can trace a chain from the model, but stating it upfront removes ambiguity about which path through the assembly counts. * **Say worst-case or statistical** — the two methods give very different answers. Worst-case guarantees the bound; RSS estimates the realistic spread assuming independent, normally distributed contributors. State which one your requirement calls for. * **Include GD\&T, not just size tolerances** — position, concentricity, and MMC/LMC modifiers change the stack-up math. Reference the datum scheme so Argus applies the right bonus tolerance. * **Give process capability if you have it** — real distributions are rarely centred on nominal. If you have Cpk or historical measurement data for a contributor, share it — the RSS result will be more realistic than assuming ±3σ equals the drawing tolerance. * **Ask for the driving contributor, not just the answer** — when a stack-up fails, "which tolerance should I tighten" is usually more useful than the raw number. # Work Instructions & Documentation Source: https://docs.cosmon.com/cad/work-instructions Generate assembly work instructions, inspection checklists, and other operator-facing documents directly from your CAD data. ## Overview Assembly work instructions, first-article inspection sheets, and shop travelers all get built the same tedious way: step through the assembly or drawing by hand, capture a screenshot, write the callout, repeat. The information is already in the model — it just needs to be pulled out and formatted for a different audience. Argus generates these documents directly from your CAD assembly or drawing: stepping through the build sequence, capturing views at each stage, and writing instructions at the level of detail the audience needs — shop floor, field service, or QA. ## What Argus can help with * **Assembly work instructions** — Step-by-step build documents with an exploded or staged view and a parts callout at each step. * **Inspection and first-article checklists** — A dimension-by-dimension checklist pulled from the drawing's tolerances and GD\&T, with space for measured values. * **Shop travelers and cut sheets** — Quick-reference documents for a machining or fabrication operation, listing setup, tooling, and key dimensions. * **Field service and maintenance docs** — Disassembly/reassembly instructions for service procedures, built from the same assembly data. ## Example prompts > [accordion] Generate an assembly work instruction > > ```text theme={null} > Generate a step-by-step assembly work instruction for C:/Projects/Pump/pump_asm_v2.SLDASM. One step per sub-assembly stage, each with an isometric screenshot showing only the components added in that step, and a numbered parts callout referencing the BOM item numbers. Target audience: shop-floor assembler, no CAD experience assumed. > ``` > [accordion] Generate a first-article inspection checklist > > ```text theme={null} > Generate a first-article inspection checklist from C:/Projects/Bracket/bracket_v3.SLDDRW. List every dimension and GD&T callout on the drawing, its nominal value and tolerance, and a blank column for the measured value and pass/fail. Group by view. > ``` > [accordion] Generate a shop traveler > > ```text theme={null} > Generate a shop traveler for this part: material, stock size, the operation sequence (turning, then milling, then deburr), key dimensions to hold at each operation, and required tooling. This will be printed and travel with the part through the shop. > ``` > [accordion] Field service disassembly instructions > > ```text theme={null} > Generate a disassembly and reassembly procedure for replacing the impeller in C:/Projects/Pump/pump_asm_v2.SLDASM. Include which fasteners to remove and in what order, any components that must be supported during removal, and required torque values on reassembly. Audience: field service technician. > ``` > [accordion] Add safety and consumables notes > > ```text theme={null} > Add PPE and safety notes to the work instruction we just generated: safety glasses for the press-fit step, torque wrench calibration note before the fastener steps, and a Loctite 243 callout on the four M6 screws in step 5. > ``` ## Tips for work instruction prompts * **Name the audience** — a shop-floor operator, a field technician, and an engineer need different levels of detail and different assumed vocabulary. State who's reading it. * **Specify the format** — PDF, Word, or a specific internal template. If you have a template, attach it the same way you would a drawing template. * **Tell Argus what's pre-assembled** — if some sub-assemblies ship already built, say so, or the instructions will include steps that don't apply to your process. * **Ask for consumables and safety notes explicitly** — torque values, adhesives, PPE, and calibration notes aren't always in the model; state which ones matter and where. * **Review against the physical process once** — a generated instruction reflects the CAD build order, which isn't always the same as the physical assembly order. Confirm the sequence matches your actual process before releasing it. # Geometry Cleanup Source: https://docs.cosmon.com/cae/geometry-cleanup Prepare simulation-ready geometry using Argus — defeaturing, healing, and repair at any scale. ## Overview Geometry cleanup is one of the most time-consuming stages of any simulation workflow. CAD models built for manufacturing are dense with features that are irrelevant to simulation — small fillets, logo embossments, thin slivers, fastener detail — and imported geometry from suppliers often arrives with translation artefacts: gaps, duplicate faces, non-manifold edges, and missing surfaces. Argus can carry out geometry cleanup directly inside your simulation pre-processor, working through an inspection-and-repair loop that mirrors what an experienced analyst would do manually — but faster and without the repetitive overhead. Argus is particularly effective in **Ansys Discovery** and **Ansys SpaceClaim**, both of which expose a rich set of programmatic geometry operations that the agent can drive precisely and repeatably. *** ## What Argus is good at ### Rules-based defeaturing Many cleanup tasks follow a clear rule: "remove all fillets below 2mm", "suppress all holes smaller than M4", "delete cosmetic features on exterior faces". Argus excels at this class of task because the rule can be stated once and applied systematically across the entire model — including assemblies with dozens of bodies — without the analyst touching each feature individually. This is the highest-value use of Argus in cleanup: tasks that are conceptually simple but manually expensive due to repetition. ### Geometry healing Imported STEP, IGES, and Parasolid files frequently carry translation defects. Argus can run a structured inspection, categorise the issues it finds, and apply targeted fixes: * **Gap closure** — stitch open edges where faces don't meet within tolerance * **Missing face repair** — reconstruct faces that failed to translate * **Duplicate geometry removal** — collapse coincident faces or bodies that cause solver errors * **Normal consistency** — flip reversed face normals on surface models ### Small face and sliver removal Short edges, needle-shaped triangular faces, and sliver surfaces cause poor mesh quality and often force the mesher to generate extremely small elements at localised regions — degrading solve time and solution accuracy. Argus can identify these features by size threshold and remove or merge them automatically. ### Idealisations For thin-walled structures, Argus can extract mid-surfaces and replace the solid geometry with shell representations suitable for structural or thermal analysis. It can also create beam idealisations from cylindrical features such as pipes or struts. ### Repair validation After cleanup, Argus will confirm that the geometry is watertight, manifold, and free of the issues it targeted — giving you a structured report to review before handing off to the mesher. *** ## Supported environments Geometry cleanup with Argus runs natively inside: | Platform | Notes | | - | - | | **Ansys Discovery** | Full geometry kernel access; rules-based cleanup, healing, mid-surface extraction | | **Ansys SpaceClaim** | Same geometry kernel as Discovery; also used as the geometry stage in Ansys Mechanical workflows | | **Ansys Mechanical** (SpaceClaim geometry stage) | Cleanup applied to the geometry component before meshing | *** ## Example prompts > [accordion] Defeaturing by rule > > ```text theme={null} > In the current Discovery model, remove all fillets and rounds with a radius smaller than 1.5mm. Also suppress all threaded hole features — replace them with simple cylindrical holes at the nominal diameter. Report how many features were removed. > ``` > [accordion] Translation healing > > ```text theme={null} > The file at C:/Projects/Supplier/housing_v2.step was imported and likely has translation issues. Run a full geometry check: identify gaps, non-manifold edges, missing faces, and duplicate bodies. List each issue with its location, then apply automatic healing where possible and confirm whether the resulting body is a valid closed solid. > ``` > [accordion] Small face cleanup > > ```text theme={null} > Find all faces with an area smaller than 0.25mm² and all edges shorter than 0.1mm on the current body. Merge or collapse them to improve mesh quality. Do not change any face that forms part of a bolt hole, fillet, or external boundary. > ``` > [accordion] Mid-surface extraction > > ```text theme={null} > This sheet metal bracket has a uniform wall thickness of 1.5mm. Extract the mid-surface from all bodies and replace the solid geometry with a surface model. Set the shell thickness to 1.5mm. Confirm that the resulting surface model is continuous and has no free edges at internal connections. > ``` > [accordion] Pre-mesh inspection report > > ```text theme={null} > Before I mesh this assembly, run a geometry health check and give me a summary report covering: > 1. Any bodies that are not closed solids > 2. Faces or edges below my minimum mesh size of 0.5mm > 3. Non-manifold topology > 4. Shared faces between bodies that may require contact definition > Do not make any changes — I want the report only. > ``` > [accordion] Assembly-level cleanup > > ```text theme={null} > Open C:/Projects/Pump/pump_assembly.scdoc. For each body in the assembly: > 1. Remove all fillets below 0.8mm radius > 2. Suppress all cosmetic holes smaller than 3mm diameter > 3. Merge small faces below 0.1mm² > When done, list each body, how many features were removed from it, and whether it passes a solid body check. > ``` *** ## Cleanup before meshing: a typical workflow A structured cleanup sequence that works well as an Argus prompt chain: **1. Import and inspect** Start with a full geometry report before making any changes. This gives you a baseline and prevents unnecessary operations. ```text theme={null} Import C:/Projects/Part/bracket_supplier.step into a new Discovery session. Run a geometry health check and list all issues: gaps, short edges, small faces, non-manifold topology, and any bodies that are not closed solids. ``` **2. Heal translation defects** Fix structural issues first — these are blockers that can prevent defeaturing tools from working correctly. ```text theme={null} Heal all gaps with a tolerance of 0.05mm. Close any open shells where the missing face can be reconstructed from adjacent edges. Report what was repaired. ``` **3. Defeature for simulation** Apply simulation-specific simplification rules. ```text theme={null} Remove all fillets below 1mm radius, all holes below 4mm diameter, and all embossed text or logo features. Do not touch any face that is part of the load application region or the fixed support region. ``` **4. Validate** Confirm the model is ready to mesh. ```text theme={null} Run a final geometry check. Confirm: (1) all bodies are closed solids, (2) no edges shorter than 0.2mm remain, (3) no faces smaller than 0.05mm² remain. List any remaining issues. ``` *** ## Tips for geometry cleanup prompts * **Set size thresholds explicitly** — "remove fillets below 1mm" is actionable; "remove small fillets" is ambiguous. Give Argus a number to work to. * **Protect important faces** — Tell Argus which faces must not change: load application surfaces, mounting interfaces, datum references. This avoids unintended simplification at critical regions. * **Separate inspection from repair** — Ask for a report first, review it, then instruct cleanup. This gives you control over what gets changed and prevents unwanted modifications. * **State the target mesh size** — Cleanup thresholds are relative to mesh size. Telling Argus "my target mesh size is 2mm" lets it calibrate what counts as a problematic small feature. * **Use rules for assemblies** — Rules-based prompts scale much better than feature-by-feature instructions on assemblies with many bodies. "Remove all features below X" across the whole assembly is more reliable than targeting each body individually. * **Validate before handing off** — Always ask Argus to run a final health check before passing geometry to the mesher. A watertight, manifold solid is the minimum bar. # Postprocessing Source: https://docs.cosmon.com/cae/postprocessing Extract results, generate reports, and interpret simulation data with Argus. ## Overview Simulation results are only as useful as your ability to extract, interpret, and communicate them. Scoping results to specific regions, comparing across load cases, computing safety margins, exporting data, and writing reports can be just as time-consuming as the setup itself. Argus can scope, extract, compare, and report results directly from solver output. Describe what you want to know and Argus will find it — whether it's a single peak stress value or a structured engineering report ready for design review. ## What Argus can help with * **Results extraction** — Query maximum, minimum, and average values for any result quantity (stress, strain, deformation, temperature, pressure, velocity) across the whole model or scoped to specific regions or named selections. * **Safety factor and margin** — Calculate safety factors against yield, ultimate, or fatigue limits for any body, face, or region. * **Load case comparison** — Compare results across multiple load cases or design variants and summarise the critical case. * **Path and probe results** — Extract values along a defined path or at specific probe points for plotting and export. * **Data export** — Export result arrays to CSV, Excel, or text format for further analysis or plotting outside the solver. * **Report generation** — Generate a structured results summary — model setup, mesh statistics, key results, and conclusions — formatted for engineering review. ## Example prompts > [accordion] Extract key results > > ```text theme={null} > For the completed static structural run, report: (1) maximum von Mises stress and its location, (2) maximum total deformation and its location, (3) minimum safety factor against yield (Structural Steel, yield = 250 MPa). Scope all results to the bracket body only, excluding the fasteners. > ``` > [accordion] Compare load cases > > ```text theme={null} > Compare the results from Load Case 1 (500N vertical) and Load Case 2 (200N horizontal). For each case, report max von Mises stress and location, max deformation, and safety factor. State which load case is more critical and by how much. > ``` > [accordion] Extract path results > > ```text theme={null} > Extract von Mises stress values along the path named "stress_path_top_edge" and export them to C:/Results/stress_path.csv. Include columns for path coordinate (mm), S_x, S_y, S_z, and von Mises (MPa). > ``` > [accordion] Generate an engineering report > > ```text theme={null} > Generate a results report for the bracket analysis. Include: model summary, material, mesh statistics, load case descriptions, key result values (max stress, max deformation, safety factor per load case), and a brief interpretation. Format it as a structured engineering report suitable for a design review. > ``` > [accordion] Thermal results > > ```text theme={null} > For the steady-state thermal run, report the maximum temperature and its location, the minimum temperature, and the temperature at the three probe points named "probe_inlet", "probe_mid", and "probe_outlet". State all values in °C. > ``` *** ## Tips for postprocessing prompts * **Name the result quantity precisely** — "Von Mises stress", "principal stress S1", "total deformation", "equivalent plastic strain", "heat flux" — the exact name avoids ambiguity in multi-physics models. * **Scope to named selections** — "Scope to the weld fillet named selection" is more reliable and repeatable than "near the weld". * **Ask for units** — Argus will confirm the unit system in use alongside each value. * **Tailor reports to the audience** — "For a design review with a non-simulation audience" will produce a different level of technical detail than "for the simulation team". Both are valid — just say which. * **Combine with comparison** — Ask Argus to compare current results to a previous run or a target threshold in the same prompt: "Is the safety factor above 2 everywhere? If not, list the regions where it falls below." # Preprocessing Source: https://docs.cosmon.com/cae/preprocessing Set up simulations faster with Argus — from geometry cleanup to mesh, materials, and boundary conditions. ## Overview Preprocessing is often the bottleneck in simulation workflows. Getting geometry clean, mesh quality acceptable, and boundary conditions correct can take hours — and a single missed setting can invalidate the entire run. Argus accelerates every stage of preprocessing. It understands your model, applies settings intelligently, and flags issues before you hit Solve. For teams working from published test methods or internal simulation standards, Argus can replicate those setups consistently across every new model. ## What Argus can help with * **Geometry cleanup** — Identify and fix small faces, slivers, gaps, and non-manifold edges that prevent meshing. * **Material assignment** — Apply materials from your library by name or specification, across single bodies or entire assemblies. * **Contacts and connections** — Define bonded, frictional, or no-separation contacts; set up joints, springs, and beams. * **Mesh** — Apply global and local sizing, add refinement zones, sweep-mesh structured regions, and verify mesh quality metrics. * **Boundary conditions** — Apply loads (force, pressure, thermal, fluid) and constraints (fixed support, displacement, symmetry) by describing them in engineering terms. * **Named selections** — Create and manage named selections for scoping BCs, mesh controls, and results. ## Example prompts > [accordion] Geometry cleanup > > ```text theme={null} > Check the imported geometry in the current Mechanical model for meshing issues. List any small faces below 0.5mm², gaps, or non-manifold edges and apply automatic fixes where possible. Report what was changed. > ``` > [accordion] Material and mesh setup > > ```text theme={null} > Apply Structural Steel to all bodies. Set a global mesh size of 5mm. Add a refinement zone of 1mm on all fillet faces. Verify that no elements have skewness above 0.9 and report the mesh statistics. > ``` > [accordion] Boundary conditions > > ```text theme={null} > 1. Fix all four bolt hole faces (underside of each boss). > 2. Apply a 2000N force in the -Z direction, distributed over the top pad face. > 3. Add a frictionless support on the two symmetry faces. > Confirm each BC has been applied and report the total constrained DOF count. > ``` *** ## Paper-to-simulation example One of the most powerful uses of Argus in CAE is converting a published test method or design standard into a ready-to-run simulation — without manually translating every setup step. **Scenario:** Your team needs to validate a bracket against load cases defined in an internal test protocol (PDF). Normally this means reading the document, cross-referencing it with the CAD geometry, and manually entering every setting. With Argus: **1. Describe the test** Share the key parameters from the protocol with Argus in a single prompt: ```text theme={null} Set up a static structural analysis for C:/Projects/Bracket/bracket_v3.x_t based on our test protocol: - Material: Aluminium 6061-T6 (E = 68.9 GPa, ν = 0.33, yield = 276 MPa) - Fixed constraint: all four M6 bolt hole faces - Load case 1: 500N in -Y at the free end pad face - Load case 2: 200N in +X at the free end pad face - Mesh: 2mm global, 0.5mm at stress concentration zones (fillets, holes) - Output: von Mises stress, total deformation, safety factor against yield ``` **2. Review and adjust** Argus sets up the full model and provides a setup summary. Review it and refine: ```text theme={null} The fixed support is on the wrong face — it should be on the underside of the flange, not the top. Also add load case 3: combined 500N -Y and 200N +X applied simultaneously. ``` **3. Run and report** ```text theme={null} Run all three load cases. For each, report the maximum von Mises stress, its location, and the minimum safety factor. ``` Once a setup is correct, Argus can reproduce it on a new geometry in minutes. This is especially valuable for recurring validation studies or teams running the same protocol on multiple design variants. *** ## Tips for preprocessing prompts * **State the analysis type first** — "Static structural", "transient thermal", "steady-state CFD" — it sets the context for all subsequent settings decisions. * **Use engineering language for loads** — "500N force", "1 MPa pressure", "fixed support" — Argus translates these into solver-specific inputs. * **Chain your setup steps** — List them in a numbered sequence so Argus confirms each one before moving to the next. * **Request a setup summary before running** — Argus will list all applied materials, contacts, mesh settings, and BCs for you to review before committing to the solve. # Troubleshooting Source: https://docs.cosmon.com/cae/troubleshooting Diagnose and resolve solver errors, meshing failures, and convergence issues with Argus. ## Overview Simulation errors are inevitable. Solver failures, diverging residuals, highly distorted elements, negative volumes, unconstrained rigid body motion — each one can take hours to diagnose without knowing where to look. Argus shortens the diagnostic loop significantly. Describe what you're seeing, paste in the error message, and Argus will identify the most likely cause, suggest a fix, and apply it on your confirmation. ## What Argus can help with * **Solver errors** — Interpret cryptic error codes, identify the failing step or element, and suggest targeted fixes. * **Mesh failures** — Locate problematic geometry, explain why meshing failed, and apply geometry repairs or local sizing overrides. * **Convergence** — Diagnose slow or non-converging runs (structural nonlinear, CFD, transient thermal) and suggest solver settings, relaxation factors, or stabilisation options. * **Unexpected results** — Flag results that look physically unreasonable, trace them back to incorrect BCs, material assignments, or unit mismatches. * **Model verification** — Check that units, materials, contacts, and loads are consistent before committing to a long compute run. ## Example prompts > [accordion] Solver error — rigid body motion > > ```text theme={null} > The solver failed with: "ERROR: Pivot too small — check for unconstrained rigid body motion (node 8241)." The model is a bracket with four fixed supports applied. What's most likely causing this and how do I fix it? > ``` > [accordion] Mesh failure on imported geometry > > ```text theme={null} > Meshing failed on the imported STEP file. The error says "unable to mesh body 3 — geometry defects detected." Identify the problem faces, describe the defects, and apply repairs to allow meshing to proceed. > ``` > [accordion] Nonlinear convergence issue > > ```text theme={null} > My nonlinear static analysis is not converging after 12 substeps. The force residual is oscillating around 3%. I'm running large deflection with a bonded contact and a 5kN point load. What solver settings should I adjust? > ``` > [accordion] Suspicious results > > ```text theme={null} > The maximum von Mises stress is showing 1.2 GPa on a steel part loaded with 500N. That seems unrealistically high. Check the material properties, units system, and applied loads — tell me what might be causing it. > ``` > [accordion] CFD divergence > > ```text theme={null} > My Fluent run is diverging after 50 iterations. Continuity residuals are climbing. It's a steady-state incompressible internal flow case at Re ≈ 50,000. I'm using k-ε turbulence with standard wall functions. What should I check first? > ``` *** ## The debugging mindset The most effective troubleshooting prompts follow the **describe symptoms** rule from the Prompting Guide: 1. **State what happened** — the exact error message, the step at which it failed, or what the result looks like. 2. **State what you expected** — what a correct result or successful run would look like. 3. **State what you've already tried** — so Argus doesn't suggest the same thing twice. Here's an example that does all three: ```text theme={null} The static structural run fails at substep 4 with "element distortion errors near node group 12400." I expected the run to complete — it converged fine on a coarser mesh. I've already tried reducing the mesh to 1mm in that region — no change. The geometry is an imported STEP with a sharp re-entrant corner (R ≈ 0) in the failing region. What else should I try? ``` Argus will work through the most likely causes systematically and apply fixes directly when you confirm. *** ## Tips for troubleshooting prompts * **Paste the full error message** — The exact text usually contains the node ID, element ID, load step, or iteration number that Argus needs to locate the problem. * **Describe the model briefly** — Analysis type, material, loading, constraint type — enough context for Argus to reason about the problem even if it can't read the full setup. * **Say what you've already tried** — Argus will skip those approaches and move to the next candidate fix. * **Ask for an explanation alongside the fix** — Understanding the root cause prevents the same error next time, especially for recurring model types. # Introduction Source: https://docs.cosmon.com/getting-started/introduction What Argus is, how it works, and what it can do for your engineering workflow. ## What is Argus? Argus is Cosmon's AI agent for engineering. It connects directly to your installed CAD and simulation software and lets you control it through conversation — creating geometry, running analyses, debugging errors, and extracting results. Unlike general-purpose AI assistants, Argus has real access to your tools. When you ask it to create a sketch, it creates it in SolidWorks. When you ask it to run a mesh, it runs it in Ansys. ## What Argus can do > [card] CAD > > Model and draft parts, run DFMA and design reviews, stack up tolerances, reverse engineer scans, and automate bulk CAD work — directly inside SolidWorks and other CAD tools. > [card] CAE > > Set up simulations from scratch, diagnose solver failures, extract results, and generate reports — across Ansys, COMSOL, Abaqus, and Star-CCM+. ## How it works Argus sits between you and your software. You describe what you want, Argus determines the right sequence of operations, calls the appropriate tools in your CAD or simulation package, and reports back with results. ``` You → Argus → SolidWorks / Ansys / COMSOL / Abaqus / Star-CCM+ → Results ``` The Cosmon Connector runs on your machine and gives Argus secure, local access to your installed software. No files leave your machine without your knowledge. ## Explore Argus > [card] [Quickstart](/getting-started/quickstart) > > Connect your tools and run your first command in minutes. > [card] [Prompting Guide](/getting-started/quickstart#prompting-guide) > > Learn the eight rules for getting precise, reliable results. > [card] [Workflows](/getting-started/workflows) > > Train Argus on a repeatable task once, then re-run it with a button. > [card] [CAD](/cad/drawing-creation) > > Modeling, drafting, DFMA, tolerance stack-up, and more. > [card] [CAE](/cae/preprocessing) > > Preprocessing, troubleshooting, and postprocessing. > [card] [Supported Software](/getting-started/supported-software) > > CAD and simulation platforms supported by Argus, with version requirements. # Plans & Credits Source: https://docs.cosmon.com/getting-started/plans-and-credits What each Argus plan includes, how credits are measured, and how allowances work on a team. ## Plans Argus comes in two plans: **Free**, to try it, and **Enterprise**, for teams that run it in production. Enterprise is set up as an agreement with your organization, so talk to sales or your Cosmon reseller to get started. | | Free | Enterprise | | - | - | - | | Included allowance | 100 credits, one time | Custom, refills each billing period | | CAD integrations | All supported CAD | All supported CAD, including Siemens NX, CATIA and Creo | | CAE integrations | All supported CAE | All supported CAE | | More credits | — | Expand your allowance through support | | Bring your own key | — | **Yes** | | Team licences and console | — | **Yes** | | Single sign-on | — | **Yes** | | No conversation retention | — | **Yes** | | Dedicated deployment | — | **Yes** | | On-premise, air-gapped and floating licences | — | **Yes** | > [card] [Contact sales](https://www.cosmon.com/contact-us) > > Tell us about your team and the tools you use, and we will put together an > Enterprise agreement. > [card] [Call sales](tel:+12036446691) > > +1 (203) 644-6691 You can also email [sales@cosmon.com](mailto:sales@cosmon.com). > [!NOTE] > > **Core and Professional** are legacy plans, available only to existing > subscribers. Your subscription keeps working as it is. To change it, contact > [support@cosmon.com](mailto:support@cosmon.com). ### What Enterprise includes Enterprise is for organizations that need to govern how Argus is deployed and what leaves the building: * **Every supported integration** — the full CAD catalog, including Siemens NX, CATIA and Creo, plus all CAE platforms. See [Supported software](/getting-started/supported-software). * **Single sign-on** through your identity provider over OpenID Connect. See [Single sign-on](/architecture/single-sign-on). * **No conversation retention.** Cosmon discards conversation content on arrival and holds no copy of any conversation. See [Data handling](/architecture/data-handling). * **Dedicated deployment** — a single-tenant Cosmon-hosted backend, or one you host inside your own network. See [Deployment options](/architecture/deployment-options). * **On-premise licensing**, including [air-gapped](/architecture/on-premise/air-gapped-license) and [floating](/architecture/on-premise/floating-license) licences. * **Custom credit allowance** and bring your own key. > [!NOTE] > > The Free allowance is **one time, not monthly**. It is what you get to try > Argus with; it does not refill. Every paid plan refills each billing period. ## What a credit is Credits measure **model usage**. You are charged for what a request actually consumes, so cost varies with the model, the size of your prompt, and how much the agent has to reason — a short question costs a fraction of a credit, a long CAE debugging session costs many. Because it is measured rather than counted, there is no fixed "number of messages" a plan buys. The usage page shows what you have spent and what is left. ## How the monthly allowance works Your allowance is not a wallet that gets topped up on the 1st. It is measured across a **rolling billing period** that starts on the day you subscribed. Argus adds up what you have spent since your period began and compares it to your plan's allowance. When your period rolls over, that start date moves forward and the earlier spend falls outside the window — which is what makes the allowance available again. Two consequences worth knowing: * **Unused allowance does not accumulate.** Leaving half of this period's allowance unspent does not add it to the next period. The window moves; it does not carry a balance. * **Your reset day is your signup day**, not the first of the month. Subscribe on the 14th and your allowance refreshes on the 14th. ## Going past your allowance On Enterprise, contact [support@cosmon.com](mailto:support@cosmon.com) to expand your monthly allowance. On a legacy Core or Professional plan, you can buy a **credit pack** of 300 credits. Unlike the monthly allowance, purchased credits **are** a balance: they sit on your account, they are only ever drawn down by usage, and they do not expire. Argus uses your monthly allowance first and only draws on purchased credits once it is spent. > [!NOTE] > > Credit packs are not available on Free or Enterprise. ## Bring your own key Enterprise can point Argus at your own Anthropic or OpenAI API key, in **Settings → Model & provider**. Traffic sent with your own key does not pass through Argus, so it costs you nothing from your allowance — you are billed by the provider directly. On Free the provider is fixed to Cosmon-hosted models. ## Teams A team buys **licences**, and an owner or admin assigns each one to a person. A person holding a licence gets that plan's capabilities, including BYOK on Enterprise. ### The allowance is shared A team's allowance is **the number of licences, multiplied by the allowance per licence in your agreement**, shared by everyone holding one: ``` team allowance = licences × allowance per licence ``` That pot is shared, not divided. One person can use more than their notional share, and the team runs out when the pot does. Allowances are pooled **per plan**, so a team with licences on more than one plan has a separate pot for each. To stop one person exhausting the pot before their colleagues start, an admin can set a **per-member monthly cap** in the team console. A capped member is limited to their cap; everyone else still draws on the pot. ### Moving a licence between people Reassigning a licence does not reset anything. The allowance belongs to the licence, not to the person holding it — so if a team has spent 95% of its pot, the next holder starts with the remaining 5%. ### If you are on a team Your licence comes from your team, so the plan on your personal account stays free. You do not need a personal subscription, and buying one would not add anything: while you hold a licence, that is what Argus serves. Use the account switcher next to your avatar to move between your personal account and your team's. > [!NOTE] > > A person belongs to at most one team. ## Checking your usage The **Usage** page shows your current period, what has been spent against it, and any purchased credits. On a team it shows the shared pot and your own share of it, plus your cap if an admin set one. # Quickstart Source: https://docs.cosmon.com/getting-started/quickstart Connect Argus to your tools and run your first command. ## Requirements See [Supported Software](/getting-started/supported-software) for the full list of supported CAD and simulation platforms. Argus runs on Windows 10 or Windows 11 (64-bit), on macOS 11 or newer (Apple Silicon), and on Linux (x86\_64, glibc 2.28 or newer) — see [Operating systems](/getting-started/supported-software#operating-systems) for the requirements. *** ## Connect in three steps > [!NOTE] > > **How long does this take?** About 5 minutes end to end — roughly 2 minutes to > download and install the Cosmon Connector, then it auto-detects your CAD/CAE > software the first time you open it. No manual configuration required. **1. Sign in** Go to [desktop-app.cosmon.com/login](https://desktop-app.cosmon.com/login) and sign in with your Cosmon account. **2. Install the Cosmon Connector** Download and install the Cosmon Connector on your engineering workstation. This is the bridge between Argus and your installed CAD/CAE software. > [!NOTE] > > The Connector runs locally on your machine. Your files and models never leave your workstation without your explicit action. **3. Open your software and connect** Launch SolidWorks, Ansys, COMSOL, or Abaqus. The Connector will detect the running application and establish a connection automatically. You'll see a status indicator in the Argus interface confirming the link. ## Your first prompt Once connected, try a simple command to confirm everything is working. **In SolidWorks:** ```text theme={null} Open a new part and create a 50mm x 50mm x 10mm rectangular block. ``` **In Ansys Mechanical:** ```text theme={null} What's the current state of the model? List the boundary conditions and any active load steps. ``` Argus will describe what it's doing and confirm the result. *** ## Prompting Guide The quality of your results depends on how you prompt. These eight rules will help you get reliable, precise outputs from Argus every time. ### 1. Lead with outcome Start with what you're trying to achieve, not the specific operations you think are needed. Argus can figure out the steps — your job is to define the goal. > [card] Better > > "Create a support bracket that can withstand a 200N downward load at the free end with a safety factor of 2 or greater." > [card] Worse > > "Add a fillet here and make the wall thicker." ### 2. Be specific Include exact values: dimensions, tolerances, material grades, load magnitudes, mesh sizes. Precision in equals precision out. ```text theme={null} Create a cylindrical boss, diameter 12mm, height 8mm, centred on the top face of the bracket. Add a 1mm chamfer on the top edge. ``` ### 3. Give file paths When referencing parts, assemblies, or simulation files, include the full path. This removes ambiguity and ensures Argus acts on the right file. ```text theme={null} Open C:/Projects/Arm_Assembly/arm_v4.SLDASM and suppress the Cover_Plate component. ``` ### 4. State what should not change Tell Argus which features, constraints, or dimensions are locked. This is especially important when editing existing models. ```text theme={null} Increase the rib thickness from 3mm to 5mm. Do not change the bolt hole pattern or the outer profile. ``` ### 5. Chain steps For multi-step workflows, list the steps explicitly and in order. Argus will confirm progress at each stage before moving on. ```text theme={null} 1. Apply Structural Steel to all bodies. 2. Mesh using a 3mm element size with refinement at fillets. 3. Apply a fixed support at the base face. 4. Apply a 500N force in the -Y direction on the top face. 5. Run the static structural analysis. ``` ### 6. Attach context Share relevant background: design specs, applicable standards, prior results, or customer requirements. This helps Argus make better decisions throughout the task. ```text theme={null} This bracket must comply with ISO 2768-m tolerancing. The part will be injection-moulded in PA66-GF30. Wall thickness must stay between 2.5mm and 4mm for uniform cooling. ``` ### 7. Describe symptoms when debugging When something isn't working, describe what you observe — not the fix you think is needed. Argus diagnoses better from symptoms. > [card] Better > > "The solver is failing at step 3 with: 'Highly distorted elements detected near node 4521.' It's happening at the sharp re-entrant corner on the inner rib." > [card] Worse > > "Fix the mesh error." ### 8. Iterate You don't need to get the perfect prompt first time. Start with a clear goal, review the result, then refine. Argus maintains context across the conversation. ```text theme={null} That looks good. Now reduce the fillet radius to 2mm, re-run the mesh, and check whether the maximum stress changes significantly. ``` # Supported Software Source: https://docs.cosmon.com/getting-started/supported-software CAD and simulation platforms supported by Argus, with version requirements. ## CAD platforms | Platform | Supported versions | | - | - | | SolidWorks | 2020 and later | | Siemens NX | 2312 and later | | CATIA V5 | 2024 and later | | CATIA V6 (3DEXPERIENCE) | R2024x and later | | Creo | 9 through 13 | | AutoCAD | Coming soon | | Autodesk Inventor | Coming soon | | Autodesk Fusion (Fusion 360) | Latest version | | Onshape | Latest release (see note below) | > [!NOTE] > > CATIA V6 runs in the 3DEXPERIENCE native app on Windows. Argus connects to a session you already have open; it does not launch or close the app. Before you start, open 3DEXPERIENCE, sign in with 3DPassport and select your collaborative space. Argus works within that session's roles and licences, and saves changes to the 3DEXPERIENCE database only when you ask it to. > [!NOTE] > > Onshape is browser-based, so there is nothing to install and no version for you to pick — your company is always on the release Onshape has rolled out. Argus connects through the Onshape REST API and targets **API v16**, the current API version as of Onshape release 1.217. We track the latest Onshape release; coverage against release 1.218 is still being validated. If something doesn't work on your release, contact [support@cosmon.com](mailto:support@cosmon.com). ## CAE platforms | Platform | Category | Supported versions | | - | - | - | | Ansys Mechanical | Structural | 2024 and later | | Ansys Fluent | Fluid | 2024 and later | | Ansys Discovery | Geometry / Simulation | 2024 and later | | Ansys SpaceClaim | Geometry | 2024 and later | | COMSOL Multiphysics | Multiphysics | 5.3 and later | | Abaqus | Structural | 2024 and later | | Star-CCM+ | Fluid / Multiphysics | 2402 and later | | SolidWorks Simulation | FEA | 2020 and later | | HyperMesh | Meshing / Pre-processing | 2024 and later (tested on 2026) | | ANSA | Meshing / Pre-processing | Coming soon | ## PLM / PDM platforms | Platform | Supported versions | | - | - | | SolidWorks PDM | Limited support | | Teamcenter | 2312 and later | ## Operating systems The Cosmon Connector runs on the same machine as your CAD or simulation software. | Operating system | Minimum | Support | | - | - | - | | Windows 10 (64-bit) | — | Supported | | Windows 11 (64-bit) | — | Supported | | macOS (Apple Silicon) | macOS 11 | Supported (DMG) | | Linux (x86\_64) | glibc 2.28 | Supported (AppImage) | > [!NOTE] > > Integration coverage on macOS is Autodesk Fusion and Onshape, the two CAD platforms that run there. Integration coverage on Linux is currently limited to Ansys, Abaqus, and COMSOL on a case-by-case basis. Contact [support@cosmon.com](mailto:support@cosmon.com) if you need Linux compatibility or a macOS integration not listed here. ### macOS system requirements The macOS app ships as a DMG for Apple Silicon (M-series) Macs running macOS 11 or newer. Drag Argus to Applications and open it; no administrator rights are required. Intel Macs are not supported yet. The app is signed with an Apple Developer ID certificate and notarized by Apple, so Gatekeeper opens it without an "unidentified developer" prompt. Updates are downloaded and applied by the built-in updater. ### Linux system requirements The Linux app ships as a single x86\_64 AppImage. There is no installer and no package manager involvement — mark the file executable and run it. Root is not required. Argus requires **glibc 2.28 or newer**. glibc is a core component of the operating system, so its version is determined by your distribution release and cannot be upgraded independently. | Distribution | Minimum release | glibc | | - | - | - | | RHEL, Rocky Linux, AlmaLinux | 8 | 2.28 | | Debian | 10 (Buster) | 2.28 | | Ubuntu | 20.04 LTS (Focal) | 2.31 | To check the version on a workstation: ```bash theme={null} ldd --version | head -1 ``` **Not supported:** RHEL 7 and earlier, Ubuntu 18.04 LTS and earlier, and SUSE Linux Enterprise 15. These ship glibc 2.17–2.27, below the minimum. On these systems the application will not start. > [!NOTE] > > Voice input is the one feature with a higher requirement — it needs glibc 2.38 or newer (Ubuntu 24.04 LTS, Debian 13, RHEL 10). On earlier releases every other feature works normally and only speech-to-text is unavailable. # Workflows Source: https://docs.cosmon.com/getting-started/workflows Train Argus on a task once, then re-run it with one click — no re-prompting, just new inputs. ## Overview Some tasks you do exactly the same way, over and over: the same drawing template applied to a new part, the same defeaturing rule on a new supplier file, the same review checklist before every release. Prompting Argus from scratch each time works, but it's wasted effort when the procedure never actually changes — only the file or a value or two does. **Workflows** let you do the task once, save it, and reuse it as a button. Build the procedure in chat, validate it on a real file, and it's saved to your Workflows library. From then on, running it is: open it, confirm or swap the inputs, hit **Run** — no re-describing the steps. ## How it works **1. Build it** Open **Workflows** in the sidebar and select **Create workflow**. This starts a normal chat — describe the task like you always would. As you go, Argus proposes a step-by-step plan alongside the conversation, with editable chips for the parts that should change on future runs: a file path, a dimension, a material, a template. ```text theme={null} "Generate an assembly drawing of the current assembly from our A3 template — Front + Right view, third-angle, fully dimensioned from DimXpert data." ``` Click any chip or step to edit it directly, or just say what to change in chat — the plan updates either way. **2. Test run to validate** A workflow can't be run until it's proven to actually work. Click **Test run** to have Argus execute the full plan end to end on a real file. If it succeeds, the workflow is marked **Validated** and saved to your library. If a step fails, fix it and test again. This single validated run is what "trains" the workflow — you don't re-teach it after this. **3. Run it, anytime** From the Workflows library, click **Run** on a validated workflow. A dialog shows the parameters from your original run — swap in a new file or new values, add optional custom instructions for anything specific to this run, and confirm. Argus executes the entire procedure without you re-typing a single instruction. Every run is logged under the workflow's **Runs** tab, so you can check history or confirm what happened on a past run. > [!NOTE] > > Only validated workflows can be run. If you edit a workflow's steps significantly after validation, test it again before trusting the Run button on the new version. ## Where workflows are useful * **Recurring drawing templates** — the same view set, dimensioning scheme, and title block, applied to a new part every time. See [Drawing Creation](/cad/drawing-creation#doing-the-same-drawing-over-and-over-train-a-workflow). * **Standard review checklists** — the same compliance or house-rules pass run before every release. * **Repeated defeaturing or export rules** — a simplification or format-conversion rule your team runs on every incoming supplier file. * **Routine simulation setup** — the same preprocessing or postprocessing steps rebuilt for every new geometry or load case. * **Any multi-step task where only the inputs change** — the procedure itself is stable; only a file, a value, or a target varies between runs. If a task is genuinely one-off, just prompt Argus directly — Workflows pay off once you're repeating the same procedure. ## Workflows vs. skills Both let you avoid re-explaining a task, but they're triggered differently: * **A skill** is invoked by name in a prompt — you type something like *"run apply-tolerances-mystandard on this part."* * **A workflow** is triggered from the UI — no prompt required. Open it in the library and click **Run**. Under the hood, validating a workflow also saves a reusable skill — so a workflow is effectively a skill wrapped in a parameter form and a run history, with a button in place of a prompt. Use a skill when you want to reference a procedure by name mid-conversation; use a workflow when the task deserves its own place in your library with tracked runs and an explicit input form. ## Tips for building workflows * **Validate on a real, representative file** — the test run is what proves the workflow works. Don't validate on a trivial or unusual case if most future runs won't look like it. * **Turn the varying parts into parameters, not hard-coded values** — a file path, a dimension, a target — so future runs only need new inputs, not an edited plan. * **Use custom instructions for one-off tweaks** — if a single run needs a small deviation, add it in the run dialog rather than editing the saved workflow. * **Check the Runs tab before re-running blind** — confirm what actually happened on the last run, especially if the result looked unexpected. * **Re-test after a meaningful edit** — if you change the steps significantly after validation, run it again before relying on it. # Argus Source: https://docs.cosmon.com/index Cosmon's AI agent for engineering — connected directly to your CAD and simulation tools. ## What is Argus? Argus is an AI agent that works directly inside your engineering software. It understands your designs, runs your simulations, and helps you move from concept to validated design faster — all through natural language. Connect Argus to SolidWorks, Ansys, COMSOL, Abaqus, or Star-CCM+ and start working the way you think, not the way your software was designed. Work with it interactively in the app, or drive the same agent from your own Python with the [Argus SDK](/sdk/overview) — to batch, script, and embed it in your pipelines. > [card] [Introduction](/getting-started/introduction) > > What Argus is and how it works. > [card] [Quickstart](/getting-started/quickstart) > > Connect your tools and run your first command. > [card] [CAD](/cad/drawing-creation) > > Modeling, drawings, DFMA, tolerance stack-up, and reverse engineering. > [card] [CAE](/cae/preprocessing) > > Simulation preprocessing, troubleshooting, and postprocessing. > [card] [Argus SDK](/sdk/overview) > > Drive Argus from Python — batch, script, and embed it in your pipelines. # Command line Source: https://docs.cosmon.com/sdk/cli The cosmon CLI — check the connection, run a task from the shell, and list the conversations your runs left behind. Installing the SDK also installs the **`cosmon`** command — the fastest way to check your setup and to fire a one-off task without writing any Python. It's the same client under the hood, so anything the CLI does you can also do from [Python](/sdk/python-reference). ```bash theme={null} pip install cosmon-agent-sdk # installs the `cosmon` command ``` > [!NOTE] > > The CLI is **headless** — it can't answer an `ask_user`, so it always runs the > agent unattended (questions are never offered; the agent proceeds on its own > judgment). For interactive runs where you answer the agent's questions, use the > [Python handlers](/sdk/guide#attended-vs-unattended). ## `cosmon doctor` Check that the app is reachable, you're signed in, and the agent runtime is ready. Run this first whenever something isn't connecting. ```bash theme={null} cosmon doctor ``` A healthy check prints each step and the agents your app exposes: ```text theme={null} Cosmon Agent SDK — connection check descriptor (default): ~/Library/Application Support/nexus/mcp-gateway.json ✓ reached the app ✓ signed in (you@company.com) ✓ agent runtime ready ✓ tool server ready agents: nexus, solidworks, abaqus, fluent, ansys_mechanical, comsol model: claude-sonnet-5 Ready. Try: cosmon run "what can you do?" ``` Any line marked `✗` names what to fix — check that the app is open, you're signed in, and **Settings → Developer access** is on. `doctor` exits `0` only when the runtime is ready; otherwise it exits `1`, so it drops straight into a CI readiness gate. ## `cosmon run` Run one task. By default it **streams the work** — the answer to stdout, tool steps and `[agent]` speaker labels to stderr — so you can pipe the answer while still watching progress on your terminal. ```bash theme={null} cosmon run "mesh and solve" --agent abaqus cosmon run "what can you do?" --agent nexus -q cosmon run "compare these revisions" --agent solidworks \ --attach v7.sldprt --attach v6.sldprt ``` **prompt** `string` *required* The task, as a single positional argument. Quote it. **--agent NAME** `string` The platform agent — e.g. `solidworks`, `abaqus`, `fluent`. Omit for the default agent. `cosmon doctor` lists the agents your app exposes. **--attach PATH** `string` Attach a file to the prompt (read on the machine running the app). Repeatable — pass `--attach` once per file. Relative paths resolve against your working directory; a missing file fails before the agent runs. **-q, --quiet** `flag` Print only the finished transcript in one block (tool steps inline as `▶ ` lines) instead of streaming it live. Use it when you want just the result, e.g. `answer=$(cosmon run "..." -q)`. **--auto-approve** `flag` Approve confirmation requests, **including dangerous ones**. Without it the CLI auto-declines dangerous actions (approve safe, decline dangerous) — the same safe default as an unattended Python run. See the warning below. > [!WARNING] > > `--auto-approve` approves **every** confirmation gate the agent raises, including > destructive operations (deleting bodies, overwriting files). Use it only for > runs you fully trust and control — never on untrusted prompts. It's the shell > equivalent of `on_confirm=lambda c: True` in Python. The streaming layout is exactly what `.text(live=True)` renders in Python: ```text theme={null} ▶ Open bracket.sldprt ▶ Run static structural study The peak von Mises stress is 187.4 MPa, at the inner fillet of the mounting lug. ``` `run` exits `0` on success and `1` if the run fails (printing `error: ` to stderr) — so `cosmon run ... && deploy` chains correctly. ## `cosmon chats` List the conversations your scripts left on the server — SDK-owned only, never the app user's own chats — newest first. ```bash theme={null} cosmon chats ``` ```text theme={null} 9f3c… 2026-07-20T15:04:11Z Static study on bracket.sldprt 2a71… 2026-07-19T09:22:03Z Mesh convergence sweep ``` Each row is `id updated_at title`. Resume a conversation from Python with `client.session(id="9f3c…")` (see [multi-turn sessions](/sdk/guide#multi-turn-sessions)). Prints `No SDK conversations on the server.` when there are none. ## Discovery & the descriptor The CLI finds your running app the same way the library does: the app writes an `mcp-gateway.json` descriptor while Developer access is on, and the SDK reads it automatically. Point at a different one with the `COSMON_SDK_DESCRIPTOR` environment variable (a dev build's data dir differs — `doctor` prints the path it used): ```bash theme={null} export COSMON_SDK_DESCRIPTOR="$HOME/Library/Application Support/nexus/mcp-gateway.json" cosmon doctor ``` ## Next steps > [card] [Python reference](/sdk/python-reference) > > The full library surface — clients, runs, handlers, streaming, and errors. > [card] [Examples](/sdk/examples/one-shot-run) > > Runnable scripts for every capability — copy, run, adapt. # Async Source: https://docs.cosmon.com/sdk/examples/async The same surface on AsyncClient — for pipelines and FastAPI. `AsyncClient` is the async twin of `Client` — same surface, `await`ed. It's the native form (the sync client wraps it on a background event loop), so reach for it in asyncio programs, FastAPI handlers, and pipelines. ```python theme={null} import asyncio from cosmon_agent_sdk import AsyncClient async def main() -> None: async with AsyncClient() as client: print(await client.run("What can you do?", agent="nexus").text()) asyncio.run(main()) ``` Streaming is `async for`, and one process can drive several runs at once — useful behind an HTTP endpoint: ```python theme={null} from fastapi import FastAPI from cosmon_agent_sdk import AsyncClient app = FastAPI() @app.post("/analyze") async def analyze(part_path: str) -> dict[str, str]: async with AsyncClient() as client: answer = await client.run( "Run a static structural study and report peak von Mises.", agent="solidworks", attachments=[part_path], ).text() return {"result": answer} ``` > [card] [Reference: async](/sdk/python-reference#async) > > The full `AsyncClient` / `AsyncRun` / `AsyncSession` surface. # Attach files Source: https://docs.cosmon.com/sdk/examples/attachments Hand files to a run — the agent reads them alongside the prompt. Pass `attachments` to hand specific files to a run. Relative paths resolve against **your** working directory (the SDK absolutizes them before sending), and a missing file raises `CosmonError` immediately — before the agent runs. ```python theme={null} from cosmon_agent_sdk import Client with Client() as client: print(client.run( "Compare the attached revision against the current model and list what changed.", agent="solidworks", attachments=["bracket_v7.sldprt"], ).text()) ``` > [card] [Guide: attaching files](/sdk/guide#attaching-files) > > How paths resolve and when attachments are read. # Unattended batch Source: https://docs.cosmon.com/sdk/examples/batch Run one analysis across many files, no handlers, with a timeout. No handlers (so the agent runs unattended — questions aren't offered, dangerous confirmations are declined), a `timeout`, and decisions baked into the prompt: leave it running over a list of files. ```python theme={null} from cosmon_agent_sdk import Client, CosmonError files = ["beam1.sldprt", "beam2.sldprt", "beam3.sldprt"] with Client(timeout=600) as client: # no handlers → unattended for path in files: try: answer = client.run( f"Run a static structural study on {path} and report peak von Mises.", agent="solidworks", ).text() print(f"{path}: {answer}") except CosmonError as err: print(f"{path}: failed — {err}") ``` Catching `CosmonError` keeps one bad file from killing the batch. To retry a run the CAD instance was busy for, branch on `CosmonRunError.code == "busy"`. > [card] [Guide: unattended batches](/sdk/guide#unattended-batches) > > Timeouts, triggering runs from your own code, and error handling. # Answer the agent Source: https://docs.cosmon.com/sdk/examples/handlers Supply on_question / on_confirm to run interactively. Passing handlers makes the run interactive — the app forwards the agent's `ask_user` and `confirm_action` to your callbacks (over MCP elicitation) while `.text()` runs. There's no event loop to drive; the handlers are called as needed, and they may block on a human for up to \~2 minutes. ```python theme={null} from cosmon_agent_sdk import Client, Question, Confirmation def answer(question: Question) -> str: # question.options lists any offered choices ([] if free-form) return input(f"{question.prompt} {question.options or ''}\n> ") def approve(confirmation: Confirmation) -> bool: return input(f"{confirmation.summary} — approve? [y/N] ").strip().lower() == "y" with Client(on_question=answer, on_confirm=approve) as client: print(client.run("Run a static structural study on bracket.sldprt", agent="solidworks").text()) ``` The two handlers are independent: with only `on_confirm`, the run is question-free (the agent is never offered `ask_user`) but every approval gate reaches your handler; with only `on_question`, questions reach you while confirmations auto-resolve (approve safe, decline dangerous). > [card] [Guide: attended vs unattended](/sdk/guide#attended-vs-unattended) > > The full handler matrix, timeouts, and the safe-by-default rule. # Multi-agent handoff Source: https://docs.cosmon.com/sdk/examples/handoff Attribute a run that spans a handoff chain via event.agent. A run can span a **handoff chain** — one agent delegating to another mid-run. Both event types carry `agent` (which agent produced the event), so multi-agent output stays attributable. Label the stream by the agent in control: ```python theme={null} from cosmon_agent_sdk import Client, TextChunk with Client() as client: speaker = "" for event in client.run("Set up the model, then hand off to COMSOL to solve it", agent="solidworks"): if event.agent and event.agent != speaker: # who's talking now speaker = event.agent print(f"\n[{speaker}]") if isinstance(event, TextChunk): print(event.text, end="", flush=True) ``` In a session, later turns follow the agent in control — so a handoff carries into the next turn, the same as in the app. `.text(live=True)` prints these `[agent]` labels for you. > [card] [Guide: streaming the run](/sdk/guide#streaming-the-run) > > Agent attribution across a handoff chain. # Images from tools Source: https://docs.cosmon.com/sdk/examples/images Decode the data: URIs a tool produces (CAD screenshots) and save them. Some tools produce images for the user — a CAD screenshot, a plotted result. They ride the `ToolCall`'s **finish** event as `event.images`, a `tuple[str, ...]` of image `data:` URIs (empty on the start event, and from apps too old to send them). Decode each on the finish event: ```python theme={null} import base64, re from pathlib import Path from cosmon_agent_sdk import Client, ToolCall with Client() as client: for i, event in enumerate(client.run("Screenshot the open part", agent="solidworks")): if isinstance(event, ToolCall) and event.finished: for uri in event.images: # () when the tool produced none m = re.match(r"^data:image/\w+;base64,(.+)$", uri) if m: # http links stay stream-only Path(f"shot-{i}.png").write_bytes(base64.b64decode(m[1])) ``` Each `data:` image is also embedded in the run's final result as a spec-native MCP image content block, so plain MCP clients see it too. `.text()` is unaffected — it joins only the text. > [!NOTE] > > Only `data:` URIs are embedded in the final result — a tool that returns an > `http(s)` image link surfaces it on the stream event but can't embed it, so it > stays stream-only. > [card] [Reference: ToolCall.images](/sdk/python-reference) > > The `images` field on the streamed `ToolCall` event. # One-shot run Source: https://docs.cosmon.com/sdk/examples/one-shot-run Run a prompt and print the final answer. The simplest call: `client.run(...)` starts a one-shot run and returns a `Run`; `.text()` drives it to completion and returns the transcript — the answer with each tool step inline. ```python theme={null} from cosmon_agent_sdk import Client with Client() as client: answer = client.run( "What is the peak von Mises stress in bracket.sldprt?", agent="solidworks", ).text() print(answer) ``` Pass `live=True` to `.text()` to watch the run print while you wait; the returned string stays the authoritative version. > [card] [Guide: run(...).text()](/sdk/guide) > > Transcripts, live output, and when to reach for a session instead. # Interactive REPL Source: https://docs.cosmon.com/sdk/examples/repl Drive the agent turn by turn from your terminal, in one session. A small read-eval-print loop over one session, so each turn builds on the last. Handlers answer the agent's questions inline; steps stream as it works. ```python theme={null} from cosmon_agent_sdk import Client, Confirmation, Question, TextChunk, ToolCall def answer(q: Question) -> str: return input(f"{q.prompt} {q.options or ''}\n> ") def approve(c: Confirmation) -> bool: return input(f"{c.summary} [y/N] ").strip().lower() == "y" with Client(on_question=answer, on_confirm=approve) as client: with client.session(agent="nexus") as chat: # one conversation across turns while (prompt := input("\nyou> ").strip()) not in ("/quit", ""): for event in chat.run(prompt): if isinstance(event, TextChunk): print(event.text, end="", flush=True) elif isinstance(event, ToolCall) and not event.finished: print(f"\n▶ {event.summary}") ``` If the agent hands off to another agent, later turns follow it. Leaving the session (quit) ends the conversation. > [card] [Guide: multi-turn sessions](/sdk/guide#multi-turn-sessions) > > How sessions keep and resume context. # Multi-turn session Source: https://docs.cosmon.com/sdk/examples/sessions Keep context across turns; persist and resume by id. `client.run(...)` is one-shot — each call is an independent conversation. Open a **session** to keep context across turns: every `run` on it reuses one conversation, so the agent remembers earlier turns. ```python theme={null} from cosmon_agent_sdk import Client with Client() as client: with client.session(agent="solidworks") as chat: chat.run("Mesh bracket.sldprt").text() chat.run("Now double the load and re-run").text() # remembers the mesh saved = chat.id # persists after close with client.session(id=saved) as chat: # resume later print(chat.run("What load did we end up with?").text()) chat.delete() # remove it entirely ``` Leaving the `with` block ends the session; the conversation **persists** server-side (hidden from the app) until you `delete()` it — or open it with `ephemeral=True` to delete on close. `client.chats()` lists what your scripts left behind. > [card] [Guide: multi-turn sessions](/sdk/guide#multi-turn-sessions) > > Entry agent vs. following a handoff, persistence, and cleanup. # Stream the work Source: https://docs.cosmon.com/sdk/examples/streaming Iterate the run — typed ToolCall / TextChunk events as they happen. Iterate the run to get events **as data** — route them to a GUI, a websocket, metrics, or `break` mid-stream to cancel. Each iteration yields a typed event: `ToolCall` (a tool-call boundary, `finished=False` on start and `True` on finish) or `TextChunk` (the answer, as it streams). ```python theme={null} import sys from cosmon_agent_sdk import Client, TextChunk, ToolCall with Client() as client: for event in client.run("Mesh and solve the model", agent="abaqus"): if isinstance(event, TextChunk): print(event.text, end="", flush=True) # answer, token by token elif isinstance(event, ToolCall) and not event.finished: print(f"▶ {event.summary}", file=sys.stderr) # tool steps ``` A run is single-use: iterate it **or** call `.text()`, not both. The `TextChunk`s reconstruct the same answer `.text()` returns. > [card] [Guide: streaming the run](/sdk/guide#streaming-the-run) > > Observe vs respond, agent attribution, and cancelling mid-stream. # Guide Source: https://docs.cosmon.com/sdk/guide Run attended or unattended, answer the agent's questions and confirmations with handlers, stream the work, attach files, and run batches. ## One call: `run(...).text()` `client.run(...)` starts a one-shot run and returns a **`Run`**; `.text()` drives it to completion and returns the run's **transcript** — the agent's answer with each tool step inline as a `▶ ` line, paragraph-separated. Pass `live=True` to also print the run while you wait (answer tokens to stdout, tool steps and `[agent]` speaker labels to stderr); the return value stays the authoritative, loss-free version. For a follow-up that builds on a previous turn, use a [session](#multi-turn-sessions). ```python theme={null} from cosmon_agent_sdk import Client with Client() as client: print(client.run("Open beam.inp and describe the model", agent="abaqus").text()) # or watch it work while it runs: # client.run("...", agent="abaqus").text(live=True) ``` > [!NOTE] > > SDK runs don't appear in the app's chat list or search — they're managed > entirely through the SDK. The app UI shows only its own conversations. ## Multi-turn sessions `client.run(...)` is one-shot: each call is an independent conversation. To keep context across turns — so a follow-up like *"now double the load"* builds on the previous run — open a **session**. Every `run` on it reuses one conversation, and the agent remembers the earlier turns. ```python theme={null} from cosmon_agent_sdk import Client with Client() as client: with client.session(agent="solidworks") as chat: chat.run("Mesh bracket.sldprt").text() chat.run("Now double the load and re-run").text() # remembers the mesh # leaving the `with` block ends the session; the conversation persists ``` * **Entry agent, then follow the work.** Pass `agent=` to `session(...)` to pick the agent for the first turn. Later `run`s omit it and continue with the agent in control — so if the first turn **hands off** to another agent, the next turn keeps going with that agent (the same behaviour as the app). * **Cleanup.** Leaving the `with` block (or calling `chat.close()`) ends the session — the conversation **persists** server-side (hidden from the app) and can be picked up again later with `client.session(id=chat.id)`. Call `chat.delete()` to remove it entirely, or open the session with `ephemeral=True` to have it deleted automatically on close. Both are idempotent. The same applies to one-shots: `client.run(..., ephemeral=True)` deletes the conversation when the run finishes. * **Finding old conversations.** `client.chats()` lists what your scripts left on the server — `id`, `title`, `updated_at` — so a persisted conversation is never orphaned even if you lost the id (`cosmon chats` from the shell). * **Handlers still apply.** `on_question` / `on_confirm` on the client work inside a session exactly as for a one-shot run. `AsyncClient` mirrors it — `async with client.session() as chat:` and `await chat.run(...).text()`. ## Attended vs unattended One rule decides whether the agent can stop to ask you something: **the handlers you pass**. There's no mode flag, and each handler controls its own mechanism: | You pass | Questions (`ask_user`) | Confirmation gates | | - | - | - | | neither | not offered — the agent proceeds on its own | auto: approve safe, decline dangerous | | `on_question` only | your handler | auto: approve safe, decline dangerous | | `on_confirm` only | not offered (question-free run) | your handler — **every** gate | | both | your handler | your handler — **every** gate | Registering `on_confirm` is opting in to being asked: the app forwards every confirmation gate to it, including ones the app's own "Confirm tool calls" toggle would auto-approve for UI users. Omitting a handler never silently declines — the unwired mechanism falls back to the safe auto-rule. The handlers are called as the agent needs input, while `.text()` runs: ```python theme={null} from cosmon_agent_sdk import Client, Question, Confirmation def answer(question: Question) -> str: # ask the human; question.options lists any offered choices ([] if free-form) return input(f"{question.prompt} {question.options or ''}\n> ") def approve(confirmation: Confirmation) -> bool: return input(f"{confirmation.summary} — approve? [y/N] ").strip().lower() == "y" with Client(on_question=answer, on_confirm=approve) as client: print(client.run("Run a static structural study on bracket.sldprt", agent="solidworks").text()) ``` A few things follow from this: * **Safe by default.** The auto-rule never rubber-stamps a destructive op — dangerous confirmations are declined unless *your* `on_confirm` approves them. `on_confirm=lambda c: True` approves **everything, dangerous included** — that's a deliberate, explicit choice (the CLI's `--auto-approve`), not something you can fall into by omission. * **Handlers may block on a human — for up to \~2 minutes.** They run in a worker thread, so an `input()` prompt sitting open doesn't stall the client's heartbeats or cancellation. But the agent won't wait forever: after the window (`Question.expires_in` / `Confirmation.expires_in`, \~120s — the same countdown the app draws as a bar) a question auto-dismisses, a confirmation is declined, and the SDK stops waiting on your handler. Show the window to your human like the example does. * **`.text()` never stalls.** Handlers answer out of band, so a run always drives to completion — it never blocks or errors waiting for input. Under the hood this is MCP **elicitation**: passing a handler makes the client declare the elicitation capability (the app runs the agent interactively); passing none declares no capability (the app runs it unattended). It's a capability, not a flag on the wire. ## Streaming the run **Iterate** the run when you need the events **as data** — `.text(live=True)` is just the terminal rendering of this same stream. Route them to a GUI, a websocket, metrics, or `break` mid-stream to cancel the run based on what you see. Each iteration yields a typed event: `ToolCall` (a tool-call boundary, `finished=False` on start and `True` on finish) or `TextChunk` (the answer, as it streams). The `TextChunk`s reconstruct the same answer `.text()` returns. Both event types carry `agent` — which agent produced the event. A run can span a **handoff chain** (one agent delegating to another mid-run), and the `agent` field is how multi-agent output stays attributable. ```python theme={null} import sys from cosmon_agent_sdk import Client, TextChunk, ToolCall with Client() as client: speaker = "" for event in client.run("Mesh and solve the model", agent="abaqus"): if event.agent and event.agent != speaker: speaker = event.agent print(f"[{speaker}]", file=sys.stderr) if isinstance(event, TextChunk): print(event.text, end="", flush=True) elif isinstance(event, ToolCall) and not event.finished: print(f"▶ {event.summary}", file=sys.stderr) ``` (`.text(live=True)` prints exactly this layout for you.) > [!NOTE] > > Observe vs respond: iterating **observes** what the agent does. Answering what the > agent **needs** — `ask_user` / `confirm_action` — is the `on_question` / > `on_confirm` hooks above, because the agent blocks waiting for a returned value. > The two compose: stream a run *and* have it interactive at the same time. ### Images a tool produces When a tool produces an image for the user — a CAD screenshot, a plotted result — it rides the `ToolCall`'s **finish** event as `event.images`, a tuple of image `data:` URIs (empty on the start event). Decode and save them as they arrive: ```python theme={null} import base64, re from pathlib import Path from cosmon_agent_sdk import Client, ToolCall with Client() as client: for event in client.run("Screenshot the open part", agent="solidworks"): if isinstance(event, ToolCall) and event.finished: for uri in event.images: m = re.match(r"^data:image/\w+;base64,(.+)$", uri) if m: Path("shot.png").write_bytes(base64.b64decode(m[1])) ``` Each `data:` image is also embedded in the run's final result as an MCP image block, so plain MCP clients see it too — `.text()` is unaffected (it joins only text). See the [Images from tools example](/sdk/examples/images) for the full snippet. ## Capping a run Set `timeout` on the client (seconds) so a stuck run can't hang forever. The agent can work for many minutes, so the default is generous (10 minutes), and there is no server-side cap — a long solve runs as long as you're willing to wait. When the timeout fires it doesn't just give up waiting: it **cancels the run** server-side, so nothing keeps working (or holding the one-run-at-a-time guard) behind your back. ```python theme={null} with Client(timeout=7200) as client: # a 2-hour solve? fine. client.run("Run a mesh-convergence study on bracket.sldprt", agent="solidworks").text() ``` ## Attaching files Hand specific files to a run with `attachments`. Relative paths resolve against **your working directory** (the SDK absolutizes them before sending), and a missing file raises `CosmonError` immediately — before the agent runs. The agent reads them alongside your prompt: ```python theme={null} client.run( "Compare the attached revision against the current model and list what changed.", agent="solidworks", attachments=["C:/Projects/brackets/bracket_v7.sldprt"], ) ``` ## Unattended batches No handlers, a `timeout`, and decisions baked into the prompt — leave it running: ```python theme={null} from cosmon_agent_sdk import Client, CosmonError files = ["beam1.sldprt", "beam2.sldprt", "beam3.sldprt"] with Client(timeout=600) as client: # unattended; 10-minute cap per run for path in files: try: answer = client.run( f"Run a static structural study on {path} with a 10mm mesh seed " f"and report the peak von Mises stress.", agent="solidworks", ).text() print(f"{path}: {answer}") except CosmonError as err: print(f"{path}: failed — {err}") ``` ## Triggering runs from your own code The SDK is a plain library — no daemon of its own — so you call it from whatever fires in your workflow: a file watcher, a webhook, a cron job, a CI step, a queue consumer. Behind an HTTP endpoint, use the async client so one process can drive several runs at once: ```python theme={null} from fastapi import FastAPI from cosmon_agent_sdk import AsyncClient app = FastAPI() @app.post("/analyze") async def analyze(part_path: str) -> dict[str, str]: async with AsyncClient() as client: answer = await client.run( "Run a static structural study and report peak von Mises.", agent="solidworks", attachments=[part_path], ).text() return {"result": answer} ``` > [!NOTE] > > The one requirement: the Argus app must be **running and signed in** on that > machine — the SDK rides it for authentication and the live CAD/CAE connection. ## Errors vs. in-run failures Errors come in two channels: **opening the client** (`CosmonConnectionError`, `CosmonAuthError`, `CosmonProtocolError`) versus **during a run** (`CosmonRunError`, `CosmonTimeoutError`, or a dropped `CosmonConnectionError`). All subclass `CosmonError`, so a single `except CosmonError` catches everything; catch the subclasses to branch. In a batch or pipeline the one worth handling explicitly is `CosmonRunError` — in-run failures (including provider errors like *out of credits*) surface here, and its **`code`** lets you branch without parsing the message: ```python theme={null} try: client.run(prompt, agent="solidworks").text() except CosmonRunError as err: if err.code == "busy": time.sleep(30) # another run owns the CAD instance — retry later else: raise ``` See the [Python reference](/sdk/python-reference#errors) for every error, when each is raised, and the full list of `CosmonRunError.code` values. ## Next steps > [card] [Python reference](/sdk/python-reference) > > The full API surface — clients, runs, interaction handlers, the async twin, > streaming, and errors. > [card] [Command line](/sdk/cli) > > The `cosmon` CLI — `doctor`, `run`, and `chats` from the shell. # Argus MCP Source: https://docs.cosmon.com/sdk/mcp Connect Claude Code, Codex, or any MCP client to Argus, and hand CAD and CAE work to a specialist engineering agent. Argus exposes itself as a local [MCP](https://modelcontextprotocol.io) server. Any agent that speaks MCP — Claude Code, Codex, or your own — can call Argus as a **sub-agent**: the general-purpose agent keeps the overall task, and hands the CAD and simulation work to Argus. A typical split: Claude Code writes the test-rig firmware and updates the requirements doc. When it needs the mounting bracket's peak stress, it asks Argus. Argus opens the part in SolidWorks, runs the study, checks the result, and returns the answer with screenshots. ```mermaid theme={null} flowchart LR subgraph machine["Your machine"] direction LR HOST["Claude Code / Codex
(orchestrating agent)"] APP["Argus app
platform agents + your login"] CAD["CAD/CAE software"] end HOST <-->|"MCP: run · streamed steps · answer"| APP APP <-->|"drives"| CAD ``` ## Why delegate to Argus General-purpose coding agents are good at code, files, and planning. Driving engineering software is a different job. It needs live access to the open model, knowledge of each vendor's quirks, and checks at every step. If your agent writes CAD macros from scratch, you get scripts that look right and fail on the real model. Delegating gets you a specialist built for this work. > [card] Domain-specific agents > > Each platform has its own agent — SolidWorks, NX, CATIA, Abaqus, Ansys, > COMSOL, Fluent, and more. Each one has tools and skills for that software, > so it doesn't have to guess at a vendor API. > [card] Fewer mistakes on CAD/CAE work > > Argus works against the open model, not a guess about it. It reads feature > trees, mesh stats, and solver output. It checks its own work with > screenshots and model queries, and recovers when an operation fails. > [card] A clean context for your main agent > > The many tool calls behind a mesh-and-solve stay inside Argus. Your main > agent gets back a short answer and images, not thousands of tokens of API > traffic. That leaves its context free for the rest of the task. > [card] Guardrails built in > > Changes to the model go through Argus's confirmation gates. Your client can > answer them, or Argus can resolve them safely on its own. Your Argus login > and credits stay inside the app. **Each agent stays in its lane.** Your coding agent keeps the repo, the scripts, and the overall plan. Argus does the engineering-software work it was built for. Each one is good at its own half of the task. ## Prerequisites **1. Open Argus and sign in** The MCP server runs inside the desktop app, so the app must be open while your agent uses it. **2. Turn on Developer access** In **Settings → Developer access**, turn it on. The app starts a local MCP server and writes its connection details to a descriptor file: | OS | Descriptor path | | - | - | | macOS | `~/Library/Application Support/nexus/mcp-gateway.json` | | Windows | `%APPDATA%\nexus\mcp-gateway.json` | | Linux | `~/.config/nexus/mcp-gateway.json` | ```json mcp-gateway.json theme={null} { "protocol_version": 1, "endpoint": "http://127.0.0.1:53817/mcp", "token": "3f9c…", "app_version": "1.42.0", "transport": "mcp-streamable-http" } ``` **3. (Optional) Check readiness** If you have the SDK installed (`pip install cosmon-agent-sdk`), run `cosmon doctor`. It confirms the app is reachable and the agent runtime is ready, and lists the platform agents you can call. > [!WARNING] > > **The endpoint and token change every time Argus launches.** Toggling Developer > access also issues a new token. Don't hard-code them in a config file. Use the > launchers below: they read the descriptor each time you start your agent, so > the connection is always current. ## Connect Claude Code This shell function reads the descriptor and starts Claude Code with Argus attached as an MCP server named `argus`. Add it to `~/.zshrc` or `~/.bashrc`: ```bash ~/.zshrc theme={null} argus-claude() { local desc="${COSMON_SDK_DESCRIPTOR:-$HOME/Library/Application Support/nexus/mcp-gateway.json}" local cfg cfg=$(python3 - "$desc" <<'PY' import json, sys d = json.load(open(sys.argv[1])) print(json.dumps({"mcpServers": {"argus": { "type": "http", "url": d["endpoint"], "headers": {"Authorization": f"Bearer {d['token']}"}, }}})) PY ) || { echo "Argus descriptor not found — is the app open with Developer access on?"; return 1; } MCP_TOOL_TIMEOUT="${MCP_TOOL_TIMEOUT:-3600000}" claude --mcp-config "$cfg" "$@" } ``` On Linux, set the default path to `~/.config/nexus/mcp-gateway.json` instead. Run `argus-claude` in place of `claude`, then type `/mcp` to confirm `argus` is connected. `MCP_TOOL_TIMEOUT` lets an Argus run last up to an hour (the value is in milliseconds). Meshing and solving often take longer than the default MCP tool timeout. Raise the value for long solves. > [accordion] Windows (PowerShell) > > Add this to your PowerShell profile (`notepad $PROFILE`): > > ```powershell theme={null} > function argus-claude { > $d = Get-Content "$env:APPDATA\nexus\mcp-gateway.json" | ConvertFrom-Json > $cfg = @{ mcpServers = @{ argus = @{ > type = "http" > url = $d.endpoint > headers = @{ Authorization = "Bearer $($d.token)" } > } } } | ConvertTo-Json -Depth 5 -Compress > $env:MCP_TOOL_TIMEOUT = "3600000" > claude --mcp-config $cfg @args > } > ``` ### Make Argus a Claude Code subagent To make delegation explicit, define a subagent whose only tools are Argus's. Claude Code then hands CAD/CAE tasks to it. The many tool calls behind each task stay out of your main conversation. ```markdown .claude/agents/argus.md theme={null} --- name: argus description: CAD and CAE specialist. Use for any task that opens, inspects, modifies, meshes, simulates, or post-processes a model in engineering software (SolidWorks, NX, CATIA, Abaqus, Ansys, COMSOL, Fluent, etc.). tools: mcp__argus__run, mcp__argus__end_session, mcp__argus__list_chats --- You delegate engineering-software work to Argus through the `run` tool. - Write the prompt as an engineering outcome, not a sequence of clicks: "Run a static study on bracket.sldprt with a 500 N load on the top face and report the peak von Mises stress and where it occurs." - Pass `agent` for the platform (e.g. "solidworks", "abaqus") when it's known. - Pass absolute file paths in `attachments`. - For follow-ups on the same model, reuse a `session` id so Argus keeps the context; call `end_session` when done. - Report Argus's numbers and conclusions as it gave them. Don't infer results it didn't report. ``` ## Connect Codex Codex reads MCP servers from `~/.codex/config.toml`, and you can override any setting with `-c`. This launcher passes the current endpoint and token each time Codex starts: ```bash ~/.zshrc theme={null} argus-codex() { local desc="${COSMON_SDK_DESCRIPTOR:-$HOME/Library/Application Support/nexus/mcp-gateway.json}" local endpoint token endpoint=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["endpoint"])' "$desc") || { echo "Argus descriptor not found — is the app open with Developer access on?"; return 1; } token=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["token"])' "$desc") ARGUS_MCP_TOKEN="$token" codex \ -c "mcp_servers.argus.url=\"$endpoint\"" \ -c 'mcp_servers.argus.bearer_token_env_var="ARGUS_MCP_TOKEN"' \ -c 'mcp_servers.argus.tool_timeout_sec=3600' \ "$@" } ``` `tool_timeout_sec` lets an Argus run last up to an hour. Codex's default tool timeout is far too short for a solve. To tell Codex when to delegate, add guidance to your project's `AGENTS.md`: ```markdown AGENTS.md theme={null} ## CAD / CAE work Never script CAD or simulation software directly. For any task that touches an engineering model — inspecting, editing, meshing, solving, or post-processing — call the `argus` MCP server's `run` tool with the outcome you need, the platform `agent` (e.g. "solidworks", "abaqus"), and absolute paths in `attachments`. Use Argus's reported values as the source of truth. ``` ## Connect any other MCP client Any client that supports **Streamable HTTP** can connect: | Setting | Value | | - | - | | Transport | Streamable HTTP | | URL | `endpoint` from the descriptor | | Header | `Authorization: Bearer ` (from the descriptor) | | Host | Loopback only — the client must run on the same machine as Argus | Read the descriptor when the client starts, not once at install time. ## What the server exposes **run** `tool` Runs an engineering task and returns the transcript (with each tool step as a `▶ ` line), plus any images the run produced as MCP image content. **arguments** **prompt** `string` *required* What you want the agent to do. **agent** `string` Platform agent, e.g. `solidworks`, `abaqus`, `fluent`. Omit for the default agent, which routes the task. `cosmon doctor` lists the available agents. **attachments** `string[]` Paths to files on the machine running Argus. **session** `string` Pass the same id across calls to keep a multi-turn conversation; Argus remembers earlier turns. Omit for a one-shot run. **allow\_questions** `boolean` Whether your client answers the agent's clarifying questions. Defaults to `true` when the client supports elicitation. **allow\_confirms** `boolean` Whether your client answers confirmation requests. Defaults to `true` when the client supports elicitation. **ephemeral** `boolean` Delete the conversation when the run (or session) ends. Defaults to `false`. **end\_session** `tool` Ends a multi-turn session. The conversation persists unless it was started with `ephemeral: true`. **list\_chats** `tool` Lists the conversations created through MCP, newest first. Your own app chats are not included. **delete\_chat** `tool` Deletes a conversation created through MCP. It can't touch chats you started in the app. **nexus\://status** `resource` Login state, available agents, model, and readiness. Wait for both `runtime_ready` and `tool_server_ready` before calling `run`. The server also streams each tool step and text delta as MCP progress notifications. Clients that show progress let you watch the run as it happens. ## Questions and confirmations Argus sometimes needs input: a clarifying question ("which face is the fixed support?") or approval before it changes the model. How these are handled depends on your client: * **Clients that support MCP elicitation** pass the question or confirmation to you. Each prompt is open for 120 seconds. After that, Argus proceeds on its best judgment, and an unanswered confirmation counts as declined. * **Clients without elicitation** run **unattended**. Argus doesn't ask questions, approves safe actions, and declines dangerous ones (deleting bodies, overwriting files). Use `allow_questions: false` or `allow_confirms: false` on `run` to switch off either kind of prompt. ## Limits to know * **One run at a time.** Argus drives a single instance of your CAD/CAE software, so a second `run` that starts while one is in progress fails with a `busy` error. If your orchestrator runs subagents in parallel, send Argus tasks one after another. * **Same machine.** The server only accepts loopback connections. Your agent must run on the machine where Argus and your engineering software are installed. * **Long runs need long timeouts.** Argus has no run time limit of its own. If the client times out, it cancels the run, and Argus stops cleanly. Set your client's MCP tool timeout to cover your longest solve. Some hosts have a fixed timeout of a few minutes that you can't change. With those, use the CLI instead (below). ## Alternative: call the CLI from a shell Any agent that can run shell commands can call Argus through the `cosmon` CLI, with no MCP setup. There are no timeouts to configure and no endpoint to refresh: ```bash theme={null} cosmon run "Report the mass and bounding box of bracket.sldprt" \ --agent solidworks --attach ./bracket.sldprt -q ``` `-q` prints only the finished transcript, so the calling agent gets one clean block of output. See the [CLI reference](/sdk/cli) for all flags. ## Next steps > [card] [Argus SDK overview](/sdk/overview) > > How the local connection model works, and how to drive Argus from Python. > [card] [Supported software](/getting-started/supported-software) > > The CAD, CAE, and PLM platforms Argus can drive. # Argus SDK Source: https://docs.cosmon.com/sdk/overview Program Argus from Python — describe an engineering task and the agent plans and runs it across your CAD and simulation tools. > [!WARNING] > > **Alpha release.** The SDK's API surface is still moving — breaking changes > will ship in minor versions while it's on `0.x`. Pin an exact version > (`cosmon-agent-sdk==0.1.1`) in pipelines you don't want to fix on upgrade day. The Argus SDK lets you drive the Argus agent from your own Python code. You describe an engineering outcome — *"run a static structural study on this bracket and report the peak stress"* — and the agent reasons about the model, plans the operations, drives the CAD/CAE software, recovers from errors, and reports back. Anything an engineer can do in the Argus app, your code can script, batch, and embed. It works the way the [Claude Agent SDK](https://docs.claude.com/en/api/agent-sdk/overview) exposes Claude Code: your code talks to the Argus app already installed and signed in on the machine, not to a cloud API. Under the hood the SDK is a small [MCP](https://modelcontextprotocol.io) client — it connects to the local MCP server the app exposes and drives the agent through a single `run` tool. ## Why it's different from a CAD/CAE API The usual way to automate engineering software is each vendor's scripting API — the SolidWorks API, Abaqus Python, PyAnsys, COMSOL's model API. Those are **imperative**: you script every operation, one tool at a time, and the script breaks the moment a model isn't quite what you assumed. The Argus SDK is **goal-level and agentic**: > [card] Outcomes, not operations > > Describe the result. The agent plans the steps, adapts to the actual model, > and handles the edge cases — instead of replaying a brittle macro. > [card] One surface, every platform > > The same SDK drives SolidWorks, Abaqus, Ansys, COMSOL, and Fluent — not a > different API per vendor. > [card] The same agent as the app > > No capability gap: anything Argus can do interactively, your code can trigger. > [card] Autonomy you dial > > From unattended batches to interactive runs where your code answers the > agent's questions and approves its actions — set by the handlers you pass. ## The connection model Four pieces are involved: **your code** (the SDK), the **Argus app** running the agent, the **LLM** it reasons with, and the **CAD/CAE software** on your machine. Everything but the model runs locally — including your login and billing, which stay inside the app. ```mermaid theme={null} flowchart LR subgraph machine["Your machine"] direction LR SDK["Your code
(Argus SDK)"] APP["Argus app
agent + your login"] CAD["CAD/CAE software"] end LLM["LLM
(cloud model)"] SDK <-->|"run · streamed answer"| APP APP <-->|"drives"| CAD APP <-->|"reasons"| LLM ``` ### The agent loop A `run` isn't a single call to the model — the agent works in a loop, driving your CAD/CAE software one step at a time and adapting to what it finds, exactly as it does in the app. The SDK streams each step back to you as it happens: ```mermaid theme={null} sequenceDiagram participant You as Your code (SDK) participant App as Argus app (agent) participant CAD as CAD/CAE software You->>App: run("mesh & solve") loop each step App->>CAD: drive a tool CAD-->>App: result App-->>You: stream the step end App-->>You: final answer ``` * **Your code never holds an API key.** Authentication and billing stay in the installed app. The SDK discovers the running app on `localhost` and rides it. * **It acts on the machine it runs on.** Like the app, the SDK drives the CAD/CAE software installed locally — that's the whole point. * **SDK runs stay out of the app's UI.** A scripted run executes exactly like a chat, but it doesn't appear in the app's conversation list — your script owns it. Use a [`session`](/sdk/guide#multi-turn-sessions) to keep context across turns; conversations persist and are resumable until you delete them (or mark a run [`ephemeral`](/sdk/guide#multi-turn-sessions)). The [Guide](/sdk/guide#multi-turn-sessions) walks through both. > [!NOTE] > > The SDK requires the Argus app to be **running, signed in, with Developer access > turned on** (Settings → Developer access). It connects only over loopback and > authenticates with a per-launch token the app writes locally — nothing is > exposed off the machine. ## What you can ask for A prompt you'd type into the Argus app is a prompt you can send from the SDK — same agent, same capabilities. So the question *"what can the SolidWorks agent do?"* has the same answer whether you drive it by chat or by code. The capability guides list what each platform handles, each with a library of **example prompts** you can lift straight into `client.run(...)`: > [card] [CAD modeling](/cad/modeling) > > Sketches, features, assemblies, part families — from a description. > [card] [Drawing creation](/cad/drawing-creation) > > Views, dimensions, GD\&T, and BOMs. > [card] [DFMA & design review](/cad/dfma-design-review) > > Manufacturability, assembly, and requirement compliance checks. > [card] [Simulation preprocessing](/cae/preprocessing) > > Cleanup, mesh, materials, and boundary conditions. > [card] [Postprocessing](/cae/postprocessing) > > Extract results, compare studies, and report. ```python theme={null} # Any of those example prompts works verbatim through the SDK: client.run( "Create a rectangular base plate 120x80x6mm with four M6 counterbored " "holes 10mm from each corner, and set the material to Aluminium 6061-T6.", agent="solidworks", ).text() ``` See [Supported Software](/getting-started/supported-software) for the full platform and version list. ## When to use it > [card] Batch automation > > Run the same study across dozens of parts, unattended. > [card] Pipelines & CI > > Trigger an analysis from a build step or a data pipeline. > [card] Custom tooling > > Wire Argus into an internal app, notebook, or web service. > [card] Reproducible runs > > Capture a workflow as code you can re-run and version. ## Next steps > [card] [Quickstart](/sdk/quickstart) > > Install, enable Developer access, and run your first agent in Python. > [card] [Guide](/sdk/guide) > > Stream the run, answer the agent with handlers, and run unattended batches. > [card] [Examples](/sdk/examples/one-shot-run) > > Runnable scripts for every capability — streaming, sessions, batches, images. > [card] [Python reference](/sdk/python-reference) > > Clients, runs, interaction handlers, streaming, and errors. > [card] [Command line](/sdk/cli) > > The `cosmon` CLI — check the connection and run tasks from the shell. # Python reference Source: https://docs.cosmon.com/sdk/python-reference Clients, runs, interaction handlers, the async twin, streaming, and errors. The SDK is an MCP client for the local server the Argus app exposes. Everything has a sync and an async form: `Client` / `AsyncClient` and `Run` / `AsyncRun`. The async methods are `await`ed; both share the same handlers and error types. ## Client ```python theme={null} from cosmon_agent_sdk import Client with Client() as client: # discovers the running app, connects, releases on exit ... ``` Use it as a context manager. Interactivity is set here, by whether you pass handlers — supplying `on_question` / `on_confirm` makes runs interactive; omitting both runs the agent unattended. Use one client per thread (one per event loop for `AsyncClient`). **on\_question** `Callable[[Question], str]` Answer an `ask_user`. Passing it declares the elicitation capability. Omit to run unattended (the agent is never offered questions). Answer within \~2 minutes (`Question.expires_in` carries the exact window) — after that the question auto-dismisses, the agent proceeds on its own judgment, and the SDK stops waiting on your handler. Return a **non-empty** string: an empty answer reads as "no answer" and the agent proceeds immediately — re-prompt your human instead (the app disables its submit button on empty text for the same reason). **on\_confirm** `Callable[[Confirmation], bool]` Approve or deny a `confirm_action`. Omit to auto-resolve (approve safe, decline dangerous). Undecided for \~2 minutes counts as a decline. **timeout** `float` (default: 600.0) Seconds a single run may take. Expiry cancels the run server-side (nothing keeps working behind your back) and raises `CosmonTimeoutError`. There is no server-side cap — set it as high as your longest solve. **descriptor\_path** `str` Override where the app's descriptor is read from (defaults to the per-OS path; or the `COSMON_SDK_DESCRIPTOR` environment variable). **endpoint / token** `str` Connect explicitly instead of discovering the app (mainly for tests). ### Methods \**run(prompt, *, agent=None, attachments=None, ephemeral=False)** `Run` Start a one-shot agent run; returns a `Run`. **session(\*, agent=None, ephemeral=False, id=None)** `Session` Open a multi-turn `Session` (see below). `agent` picks the entry agent for the first turn; `ephemeral=True` deletes the conversation when the session closes; `id` resumes an earlier session's conversation (a previous session's `.id`). **discover()** `DiscoverInfo` Login state, account, available agents, default agent, active model, and runtime readiness. **chats()** `list[ChatInfo]` The conversations your scripts left on the server (SDK-owned only — never the app user's own chats), newest first. Each `ChatInfo` has `id` (resume with `session(id=...)`), `title` (from the first prompt), and `updated_at`. **close()** `None` Disconnect. Done automatically by the context manager. ### `run()` options **agent** `str` Target platform agent, e.g. `"solidworks"`, `"abaqus"`, `"fluent"`. Omit for the default. **attachments** `list[str]` File paths to attach to the prompt (read on the machine running the app). Relative paths are resolved against your current working directory. **ephemeral** `bool` (default: False) Delete the conversation (transcript + agent history) when the run finishes, instead of persisting it server-side. ## Run The handle for one run — **single-use**: iterate it *or* drain it once. **text(live=False)** `str` Drive the run to completion and return its transcript — the agent's answer with each tool step inline as a `▶ ` line. `live=True` also prints the run while it works (tokens to stdout, steps and `[agent]` labels to stderr); the returned string stays the authoritative version. On `AsyncRun`, `await run.text()`. Raises `CosmonRunError` if the run failed. **for event in run** `Iterator[RunEvent]` Stream the run: yields `ToolCall` / `TextChunk` events as they happen (`async for` on `AsyncRun`). Raises `CosmonRunError` if the run fails mid-stream. ## Session A multi-turn conversation over one stable id — open it with `client.session(...)`. Every `run` on it reuses the id, so the runtime **resumes the same thread** (it remembers earlier turns). Use it as a context manager so it's ended on exit. ```python theme={null} with client.session(agent="solidworks") as chat: chat.run("Mesh bracket.sldprt").text() chat.run("Now double the load").text() # remembers the mesh saved = chat.id # conversation persists after close with client.session(id=saved) as chat: # pick it up again later chat.run("What load did we end up with?").text() chat.delete() # done with it — remove entirely ``` \**run(prompt, *, attachments=None)** `Run` Run the next turn. The entry `agent` is sent only on the first turn; later turns follow the agent in control (so a handoff carries into the next turn). Returns a `Run` — same handle as `client.run`. **id** `str` The session id shared across the conversation's turns. **close()** `None` End the session. The conversation **persists** server-side and can be picked up again with `client.session(id=chat.id)` — an `ephemeral` session is deleted here instead. Idempotent; also called on `with`-block exit. On `AsyncSession`, `await chat.close()`. **delete()** `None` Delete the conversation entirely (transcript + agent history), then end the session. The explicit destructive act — `close()` never deletes. Idempotent. On `AsyncSession`, `await chat.delete()`. A one-shot `client.run(...)` (no session) leaves its history server-side unless run with `ephemeral=True`; SDK runs don't appear in the app's chat list. `AsyncClient.session(...)` returns an `AsyncSession` — `async with` it and `await chat.run(...).text()`. ## Events (`RunEvent`) What iterating a run yields. A small discriminated union — `isinstance`-match it. **ToolCall** `pydantic model` The agent invoked a tool. `name: str`, `summary: str` (human-readable), `finished: bool` (emitted `False` on start, `True` on finish), `agent: str` — which agent ran it (a run can span a handoff chain; `""` from older apps). `images: tuple[str, ...]` — image `data:` URIs the tool produced for the user (e.g. a CAD screenshot), carried on the `finished=True` event; `()` when the tool produced none, and from apps that predate the field. See the [Images from tools example](/sdk/examples/images). **TextChunk** `pydantic model` `text: str` — a piece of the agent's answer, as it streams; `agent: str` — who said it. Concatenate the chunks to rebuild the answer text. ## Interaction handlers Passed to the client; called as the agent needs input (the *respond* side — kept out of the event stream because the agent blocks on the returned value). **Question** `pydantic model` `prompt: str` — the question. `options: list[str]` — the offered choices, or `[]` for a free-form answer (custom answers outside the options are fine). `expires_in: float` — seconds before the prompt auto-dismisses and the agent proceeds without you (\~120; render it if a human is answering). `on_question` returns the chosen/typed string. **Confirmation** `pydantic model` `summary: str` — what the agent wants to do. `expires_in: float` — seconds before an undecided gate counts as declined (\~120). `on_confirm` returns `True` to approve, `False` to deny. The two handlers are independent: with only `on_confirm`, the run is question-free (the agent is never offered `ask_user`) while every confirmation gate reaches your handler; with only `on_question`, questions reach you while confirmations auto-resolve (approve safe, decline dangerous). ## ChatInfo Returned by `chats()`: `id: str`, `title: str`, `updated_at: str` (ISO timestamp of the last activity). Resume one with `client.session(id=info.id)`; remove one with that session's `delete()`. ## DiscoverInfo Returned by `discover()`: `logged_in: bool`, `account: str | None`, `agents: list[str]`, `default_agent: str`, `model: str`, `runtime_ready: bool`, `tool_server_ready: bool` (reported `True` by older apps that predate the field). ## Async `AsyncClient` mirrors `Client` for pipelines, FastAPI, notebooks, etc. It's the native form (the sync `Client` wraps it on a background event loop). ```python theme={null} import asyncio from cosmon_agent_sdk import AsyncClient, TextChunk async def main() -> None: async with AsyncClient() as client: print(await client.run("what can you do?", agent="nexus").text()) # or stream while it runs: async for event in client.run("mesh and solve", agent="abaqus"): if isinstance(event, TextChunk): print(event.text, end="") asyncio.run(main()) ``` ## Errors All inherit from **`CosmonError`** — catch that to handle any SDK failure in one place. There are two channels: errors *opening the client* (connection, auth, protocol) and failures *during a run* (run failure, timeout, a dropped connection). Each concrete error below. ### CosmonError The base class every other SDK error subclasses. Catch it as a catch-all; catch the specific subclasses below when you want to branch on the cause. ### CosmonConnectionError The app can't be reached. **Raised opening the client** when the app isn't running or Developer access is off — and **during a run** if the connection drops mid-flight (the app quit, or Developer access was turned off). Fix: make sure Argus is running, signed in, with Developer access on. ### CosmonAuthError The server rejected the bearer token — **raised opening the client**. Happens when Developer access is off, or the per-launch token rotated (the app restarted). Fix: toggle Developer access off and back on to reissue the token. ### CosmonProtocolError The app speaks a gateway protocol version the SDK can't drive — **raised opening the client**. Fix: update the SDK and the app to compatible versions. ### CosmonTimeoutError A run exceeded the client's `timeout` — **raised during the run**. The run is cancelled server-side (nothing keeps working behind your back). Fix: raise `timeout` on the client for long solves, or shorten the task. ### CosmonRunError The run itself failed — **raised during the run** — including provider errors like being out of credits. Its **`code`** attribute lets you branch without parsing the message: | `code` | Meaning | | - | - | | `"busy"` | Another run already owns the single CAD instance — retry later. | | `"not_ready"` | The agent runtime isn't ready yet (app still starting / signed out). | | `"cancelled"` | The run was cancelled (timeout, or the client went away). | | `"invalid_request"` | The request was malformed (e.g. an unknown agent). | | `"agent_error"` | The agent run failed while working — the message has the reason. | | `None` / `"timeout"` | From an older app that predates `code` (or reports timeouts this way). | ```python theme={null} try: client.run(prompt, agent="solidworks").text() except CosmonRunError as err: if err.code == "busy": time.sleep(30) # another run owns the CAD instance — retry later else: raise ``` ## Command line The SDK also installs the `cosmon` command — `doctor`, `run`, and `chats`. It has its own page: **[Command line](/sdk/cli)**. # Quickstart Source: https://docs.cosmon.com/sdk/quickstart Install the SDK, connect to your running Argus app, and run your first agent in Python. ## Prerequisites **1. Install and sign in to Argus** Open the Argus app and sign in. The SDK drives this running app, so it must be open while your code runs. **2. Turn on Developer access** In **Settings → Developer access**, enable it. This starts the local MCP server the SDK connects to and writes a per-user descriptor the SDK discovers automatically. **3. Install the SDK** ```bash theme={null} pip install cosmon-agent-sdk ``` Requires Python 3.10+. **4. Check the connection** ```bash theme={null} cosmon doctor ``` This confirms the app is reachable, you're signed in, and the agent runtime is ready. A healthy check looks like this: ```text theme={null} Cosmon Agent SDK — connection check descriptor (default): ~/Library/Application Support/nexus/mcp-gateway.json ✓ reached the app ✓ signed in (you@company.com) ✓ agent runtime ready ✓ tool server ready agents: nexus, solidworks, abaqus, fluent, ansys_mechanical, comsol model: claude-sonnet-5 Ready. Try: cosmon run "what can you do?" ``` Any line marked `✗` tells you what to fix — re-check that the app is open, you're signed in, and Developer access is on. ## Your first run ```python theme={null} from cosmon_agent_sdk import Client with Client() as client: answer = client.run( "What is the peak von Mises stress in bracket.sldprt?", agent="solidworks", ).text() print(answer) ``` `Client()` discovers the running app and connects — no endpoint or key to configure. `client.run(...)` starts an agent run and returns a **`Run`**; `.text()` drives it to completion and returns the run's transcript — the answer plus each tool step as a `▶` line. Add `live=True` to watch it print while you wait. The printed transcript looks like this — the `▶` lines are the tool steps the agent took, and the prose is its answer: ```text theme={null} ▶ Open bracket.sldprt ▶ Run static structural study The peak von Mises stress is 187.4 MPa, at the inner fillet of the mounting lug. With the yield strength of the assigned material (AISI 1020, ~350 MPa), that's a safety factor of ~1.9. ``` ## Streaming the work as it happens Instead of `.text()`, **iterate** the run to see it live. It yields typed events — `ToolCall` (a tool-call boundary) and `TextChunk` (the answer, as it streams): ```python theme={null} import sys from cosmon_agent_sdk import Client, TextChunk, ToolCall with Client() as client: for event in client.run("Open bracket.sldprt and summarize the part", agent="solidworks"): if isinstance(event, TextChunk): print(event.text, end="", flush=True) # answer, token by token elif isinstance(event, ToolCall) and not event.finished: print(f"[{event.summary}]", file=sys.stderr) # tool steps ``` > [!NOTE] > > Iterate **or** call `.text()` — a run is single-use. The `TextChunk`s reconstruct > the same answer `.text()` returns; iterating just lets you render it (and the tool > steps) as it arrives. ## Picking an agent Pass `agent=` to target a platform: `"solidworks"`, `"abaqus"`, `"fluent"`, `"ansys_mechanical"`, `"comsol"`, … Omit it to use the default agent. Run `cosmon doctor` to see which agents your app exposes. ## Next steps > [card] [Guide](/sdk/guide) > > Attended vs unattended, answering the agent with handlers, and batch runs. > [card] [Examples](/sdk/examples/one-shot-run) > > Runnable scripts for every capability — copy, run, adapt. > [card] [Python reference](/sdk/python-reference) > > The full API surface, async client, streaming, and errors. > [card] [Command line](/sdk/cli) > > The `cosmon` CLI — `doctor`, `run`, and `chats` from the shell.