cx-git-agent f71da0219b feat: enhance xcodeproj, xcassets, scheme, Info.plist, and entitlements
xcodeproj build settings:
- Add CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED for localization checks
- Add GCC_C_LANGUAGE_STANDARD=gnu17 for C language standard
- Add LLVM_LTO=YES for Release link-time optimization
- Add ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS
- Add ENABLE_INCOMING_NETWORK_CONNECTIONS for MCP agent server
- Add ENABLE_PREVIEWS for SwiftUI preview support

xcassets (14 new color sets):
- EditorBackground, SidebarBackground, ConsoleBackground
- KeywordColor, StringColor, CommentColor, TypeColor, NumberColor
- LineNumberColor, ToolbarTint, CurrentLineHighlight
- ErrorHighlight, WarningHighlight
- GitAddedColor, GitModifiedColor, GitDeletedColor
- All with proper light/dark mode variants
- Remove orphan icon_64x64.png and icon_base.png (fixed warnings)

xcscheme:
- Add targeted code coverage for CxIDE target only
- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Adv v- Ad- Ad- Ad- Ad- Ad- ALD_- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Ad- Aunch arg (disabled)

Info.plist:
- Add 12 new document types: C, ObjC, Python, Shell, JS, TS,
  HTML, CSS, YAML, XML, Plain Text, Property List

Entitlements:
- Add network.client and network.server for agent HTTP/WebSocket
- Add files.user-selec- Add files.user-selec- Add filads.read-write
- Add- Add- Add- Add- Aderminal com- Add- Add- Add- Add- Aderminal com- Add- Add- Add- Adrestore workspace state
All 53 tests passing
2026-04-21 17:46:39 -05:00

CxIDE

A native macOS code editor built with SwiftUI, featuring a C++17 static analysis engine and an embedded 56-tool MCP coding agent.

Features

  • SwiftUI Editor — Syntax highlighting, line numbers, breakpoints, multi-tab, minimap
  • C++ Analysis Engine — Tokenizer, symbol extraction, cyclomatic complexity, maintainability index, 16 configurable lint rules
  • MCP Agent (56 tools) — File ops, code intelligence, Git, Xcode, diagnostics, terminal, autopilot — all in-process, no server needed
  • Command Palette — Cmd+Shift+P with fuzzy search across 22+ commands
  • Dark Theme — Multiple themes with live cycling (Cmd+K)
  • Sandbox Mode — Safe code execution and agent read-only restriction

Requirements

Tool Version
macOS 14.0+ (Sonoma)
Swift 5.9+
Xcode 15.0+
Git 2.x

Quick Start

git clone <repo-url> CxIDE && cd CxIDE

# First-time setup (validates toolchain, installs git hooks)
./scripts/setup.sh

# Build C++ engine + agent
./scripts/build.sh

# Open in Xcode
open CxIDE.xcodeproj

Scripts

./scripts/build.sh            # Build (debug)
./scripts/build.sh release    # Build (release)
./scripts/test.sh             # Run tests & validation
./scripts/lint.sh             # Static analysis
./scripts/clean.sh            # Clean build artifacts
./scripts/setup.sh            # First-time project setup

Architecture

SwiftIDEApp
 └─ IDEContainerView
     ├─ Activity Bar + Sidebar (Explorer, Search, Snippets, Debug, Agent, Settings)
     ├─ CodeEditorView + Minimap
     └─ ConsoleView (Console, Problems, Output, Debug, Agent Chat)

EditorViewModel
 ├─ SwiftCodeEngine / SandboxedSwiftEngine   ← code execution
 ├─ CppEngineController → SwiftEngineWrapper → CodeEngine (C++17)   ← static analysis
 └─ AgentService → MCPServer → 56 tools (8 modules)   ← AI agent

Agent Tools (56)

Category Count Examples
File Operations 10 file_read, file_write, file_search, file_tree
Code Intelligence 10 code_explain, code_review, code_fix, code_test
Git 8 git_status, git_diff, git_log, git_commit
Xcode 10 xcode_build, xcode_test, xcode_analyze
Diagnostics 5 diag_workspace, diag_lint, diag_complexity
AutoPilot 6 autopilot_plan, autopilot_execute
Project 5 project_detect, project_run, project_deps
Terminal 2 terminal_exec, terminal_env

Keyboard Shortcuts

Action Shortcut
Run Code Cmd+Return
Command Palette Cmd+Shift+P
Toggle Sidebar Cmd+B
New Tab Cmd+N
Find & Replace Cmd+F
Cycle Theme Cmd+K
Agent: Explain Cmd+Shift+E
Agent: Review Cmd+Shift+R

Documentation

License

Proprietary. All rights reserved.

S
Description
Native macOS SwiftUI IDE with agentic AI assistant
Readme 320 KiB
Languages
Swift 90.2%
C++ 4.2%
Shell 3.5%
Objective-C++ 1.2%
Makefile 0.3%
Other 0.6%