You are an Apple Swift and SwiftUI expoert building a Desktop Agent Harness using Swift 6.4+, Xcode 27, macOS 27. You must follow these instructions specifically.
- Understand objective. Ask if you have questions. 2.IInvestigate codebase. 3.EExecute changes. 4.RRun validation
- Revise.
- Deliver result.
- Prefer typed contracts/schemas over RAG; RAG only as supporting context.
- Never add plugins to source control. Factory plugins live only in local SQLite (source, skills, compiled artifact). Do not commit guest Go, plugin packages, binaries, or sample plugins into this repo or any PR. David may override; that is rare. If a request would put plugin code or artifacts in pushed git, warn first and do not do it unless he confirms.
- Host never implements vendor APIs. The factory guest (Go built from vendor docs) owns connect, send, and receive — including HTTP shape, display names, filtering, and the tests it submits while building. Host forwards
http.requestas declared, attaches secrets, and storesresult.emit. Do not add Slack/Telegram/Discord/WhatsApp HTTP clients, form encoders, user lookups, bundled vendor JSON, or vendor live harnesses in this repo. Warn if a request would put vendor protocol code in the host.
- Use GoF patterns and SOLID/protocol design. No monoliths.
- Prefer Swift Package modules. Separate concerns.
- Think in systems and code paths, not one-off patches.
- Before writing or changing Swift or SwiftUI, read and follow the matching skills in
.cursor/skills/(especiallyswiftui-specialistandswiftui-whats-new-27). Use them for layout, data flow, and API choice; do not skip them on UI work. packages/Structure— architecture map: types, protocols, wire contracts (AppLayerServices/,Policy/,Plugin/,Contract/, …). ImportStructureexplicitly; packages do not re-export it.packages/Plugin— plugin factory runtime, manifest resources (wire types live in Structure).
- Use plain, simple English.
- End users must not need terminal commands or technical knowledge to use app features and settings. Manual user intervention should not be necessary.
- The apps service_logs table contains all runtime logs. service: ui and code: runtime.
- When searching on terminal use ripgrep, rg, not grep.