Hardened Swift 6.0+ Development Container for AI Agents
Robust Swift container preloaded with Swift 6.0+ toolchain, SourceKit-LSP, swift-format, 4-pane TMUX IDE, and stdio Model Context Protocol (MCP) server.
// Sources/App/Engine.swift · Swift 6.0 Actor Concurrency
public actor Engine: Sendable {
private var state: State = .idle
public func dispatch<T: Sendable>(
_ task: @Sendable () async throws -> T
) async throws -> T {
self.state = .running
defer { self.state = .idle }
return try await task()
}
}Engineered for Swift Developers & Terminal AI Agents
Full Swift 6.0+ toolchain powered by SourceKit-LSP, swift-format, and native MCP container tooling on Linux.
Swift 6.0+ Toolchain
Pre-installed with Swift compiler, Swift Package Manager (SPM), sourcekit-lsp, and swift-format.
4-Pane TMUX IDE (Prefix + i)
Dedicated split layout with File Tree Explorer, Neovim (SourceKit-LSP + Treesitter), bash shell, and AI Agent pane.
Parallel AI Task Worktrees (muxtree)
Automate Git worktrees paired with separate TMUX sessions for concurrent multi-agent and human feature branches.
Model Context Protocol (MCP)
Stdio JSON-RPC 2.0 interface exposing swift test execution and repository diagnostics to Claude Code and Cursor.
Quick Start in 30 Seconds
Disposable developer environment running anywhere Docker or Podman runs.
# 1. Clone the repository
git clone https://github.com/sebastienrousseau/swiftdev.git
cd swiftdev
# 2. Build and launch 4-pane TMUX IDE
make up
# 3. Mobile WebTTY (port 7681) & Mosh roaming
make web
make mosh
Unified Multi-Language Suite
Every container shares an identical security baseline, TMUX shortcuts, and MCP interfaces.
| Container | Language Stack | Built-in Tooling | Version |
|---|---|---|---|
| langdev | Core Foundation | TMUX IDE, MCP server, ai-pack, WebTTY, OSC 52 | v0.0.4 |
| pythondev | Python 3.12+ | uv, ruff, mypy, pytest, debugpy, Pyright | v0.0.4 |
| rustdev | Rust 1.85+ | rustup, rust-analyzer, clippy, cargo-audit, sccache | v0.0.4 |
| godev | Go 1.24+ | gopls, golangci-lint, delve, Go toolchain | v0.0.4 |
| javadev | Java 21+ | OpenJDK 21, Maven, Gradle, JDTLS | v0.0.4 |
| kotlindev | Kotlin 2.1+ | kotlinc, OpenJDK 21, Gradle, Maven, KLS | v0.0.4 |
| swiftdev | Swift 6.0+ | Swift toolchain, SourceKit-LSP, swift-format | v0.0.4 |
Zero-Trust Hardened Security
Strict security guarantees verified in CI and container runtime.
Unprivileged Non-Root
Runs as unprivileged dev user (UID/GID 1000). Drops all Linux capabilities (cap_drop: [ALL]) with no-new-privileges:true.
Read-Only Root Filesystem
Immutable rootfs prevents container modification or persistent malware. Writable state is restricted to explicit tmpfs mounts.
Supply Chain Integrity
Base images pinned to cryptographic SHA256 digests. Zero unpinned curl-to-sh scripts. Automated CycloneDX SBOM generation.
Hermetic CI & SAST
100% unit tested with Bats, ShellCheck linting, Hadolint OCI auditing, and Trivy CVE vulnerability scans.
Frequently Asked Questions
Is SourceKit-LSP pre-configured?
Yes. Neovim connects directly to the bundled Linux SourceKit-LSP binary with zero network setup.
How fast is the container cold start?
Under 500 milliseconds. Swift toolchain is pre-installed in Ubuntu base.