Tactix AI is an AI-native Simulation Operating System designed for high-scale, autonomous multi-agent environments. Engineered to orchestrate 10,000+ intelligent agents on mobile hardware, it utilizes Data-Oriented Design (DOD) and Tiered Strategic AI to bridge the gap between complex R&D simulations and real-time edge performance.
- Project Overview
- Architecture
- Technology Stack
- Project Structure
- Local Development Setup
- Operational Best Practices
- Security & Compliance
- Troubleshooting & FAQ
- Contribution Guidelines
- License
Traditional simulators are often bottlenecked by object-oriented overhead, making massive-scale autonomous testing (Robotics, Logistics, Traffic) computationally prohibitive on edge devices. R&D teams struggle with long feedback loops between high-fidelity server simulations and actual hardware performance.
- Performance: Achieve 60 FPS visual performance for 10,000+ agents via DOD.
- Emergent Strategy: Enable complex, multi-squad maneuvers (Pincers, Decoys) without manual scripts.
- XAI (Explainable AI): Provide real-time narrative logging for human commanders.
- B2B Readiness: Deliver a general-purpose engine for Military, Smart Warehouse, and Traffic domains.
graph TD
User((User/Developer)) -->|Blueprint DSL| Manager[Simulation Manager]
subgraph SimOS_Kernel[SimOS Kernel Engine]
Manager -->|Lifecycle| Engine[Simulation Engine]
Engine -->|Parallel Physics| MultiPhysics[Multi-Domain Physics]
Engine -->|Geometry Mapping| FormEngine[Formation Engine]
Engine -->|Tactical Logic| Behavior[Formation Behavior Manager]
end
subgraph Intelligence_Layers[AI Brain Layers]
Engine -->|Strategic Command| Planner[Strategic Planner]
Engine -->|Cognitive State| AgentAI[Individual Brains]
Engine -->|Outcome Loop| Learning[Strategy Learning Engine]
end
subgraph Data_Fabric[Data Infrastructure]
Manager -->|Sync| Repo[Tactix Repository]
Repo -->|Persistence| Room[(Room SQLite)]
Repo -->|Cloud Gateway| Retrofit[Cloud Bridge]
Retrofit <-->|REST| MySQL[(Remote MySQL 8.0)]
end
MultiPhysics <-->|Primitive Buffer| Buffer[(Agent State Buffer)]
Buffer -->|LOD Direct Read| View[Tactix Renderer]
sequenceDiagram
participant E as Kernel Engine
participant B as DOD Buffer
participant AI as AI Brain Layers
participant R as LOD Renderer
Note over E, B: Physics Tick (60 Hz)
E->>B: Process Chunks (2000 agents/core)
B-->>E: Update Positions (Primitive Arrays)
Note over E, AI: Tiered AI Tick
alt Every 15 Frames
E->>AI: HQ Strategy Scan (Emergent Maneuvers)
else Every 45 Frames
E->>AI: Squad Formation Transition Logic
else Every 90 Frames
E->>AI: Individual Cognitive/Threat Update
end
Note over B, R: Visual Sync
B->>R: Direct Buffer Access (LOD Point-Cloud)
R->>R: UI Refresh (SurfaceView)
| Category | Technology | Implementation Detail |
|---|---|---|
| Frontend | 📱 Android SDK 37 | Target SDK 37 (Android 15) with Edge-to-Edge SimOS Dashboard. |
| Language | 🟦 Kotlin 2.2.10 | Modern K2 compiler, Coroutines for parallel physics, and Flow for metrics. |
| Kernel | 🏎️ DOD | Data-Oriented Design using FloatArray buffers to eliminate GC pressure. |
| Local DB | 🗄️ Room 2.8.4 | Enterprise persistence with KSP 2 support and automatic migrations. |
| Networking | ☁️ Retrofit / OkHttp | High-frequency telemetry sync to Cloud MySQL production databases. |
| Intelligence | 🧠 Boids / Q-Learning | Swarm flocking and outcome-based reinforcement learning. |
| DevOps | 🏗️ Gradle 9.6 | Version Catalogs (TOML) for centralized dependency management. |
TactixAI/
├── app/
│ ├── src/main/java/com/example/tactixai/
│ │ ├── core/
│ │ │ ├── engine/ # Kernel Heartbeat: Physics, DOD Buffer, Economy.
│ │ │ ├── intelligence/ # AI Layers: Formation Library, Strategic Planning.
│ │ │ ├── model/ # Single Source of Truth: Blueprints and States.
│ │ │ └── analytics/ # Strategy Labs, Replay System, and Metric Engines.
│ │ ├── data/
│ │ │ ├── local/ # SQLite persistence for offline telemetry.
│ │ │ ├── remote/ # Cloud Bridge: MySQL REST API definitions.
│ │ │ └── repository/ # Hub: Centralized Local/Cloud orchestration.
│ │ ├── ui/
│ │ │ ├── renderer/ # SurfaceView LOD rendering logic (60 FPS).
│ │ │ └── fragments/ # Reactive tactical dashboards.
├── gradle/ # Dependency Version Catalogs (.toml).
└── README.md # Comprehensive Documentation.
- Android Studio: Ladybug 2024.2.1 or newer.
- JDK: Version 17.
- Hardware: Android 15 (API 35/37) device or emulator with x86_64 acceleration.
- Clone:
git clone https://github.com/alfinohatta/tactix-ai.git - Environment: Copy
.env.exampleto.env. - Build: Run
./gradlew assembleDebugin the terminal. - Deploy: Click 'Run' in Android Studio to deploy to your simulator.
- Zero-Secrets Policy: No API keys are hardcoded. All credentials are load via
.envandBuildConfig. - PII Privacy: Local SQLite databases use encrypted columns for any user-identifiable metadata.
- Network: All cloud bridge communication is enforced over TLS 1.3.
- GC-Free Cycles: NEVER use
map,filter, or object instantiation insideprocessSimOSCycle. Direct loop indexing on theAgentStateBufferis mandatory. - Parallelism: If adding a new physical force, ensure it is chunked using the
async/awaitAllpattern to prevent Main Thread stutters. - LOD Performance: Maintain zoom-based LOD rendering. If CPU usage exceeds 70%, increase the point-cloud rendering threshold.
Distributed under the License. See LICENSE for more information.