Skip to main content

Developer Guide

Locus 2.7 is an Apache-2.0 SwiftUI application with a bundled Python agent, optional Codex helpers, and a shared mobile protocol.

  • Build & Test covers Xcode 26, Rust, XcodeGen, native tests, Python tests, mobile checks, and component packaging.
  • Architecture & Protocol explains feature-model ownership, process ownership, loopback communication, Codex-plan routing, persistence, and security boundaries.

Repository map

Locus/ SwiftUI application, feature models, and native brokers
LocusTests/ Swift unit tests
LocusUITests/ macOS UI tests with isolated fixture storage
agent/ Bundled Python agent service and domain API modules
mobile/ Locus Mobile source and shared protocol client
ProtocolFixtures/ Shared Mac/mobile wire envelopes
Tools/ Build, packaging, appcast, audit, and reviewability scripts
Docs/ Guides, architecture notes, and screenshots

AppModel and agent/server.py are composition roots, not default homes for new feature behavior. Add native state and actions to the matching observable feature model, and add service routes and request behavior to the matching domain API module.

Read the repository CONTRIBUTING guide before changing provider routing, credentials, protocol contracts, permissions, packaging, or third-party inventory.