ZYRAXON-AI PROJECT SUMMARY
Name : ZYRAXON-AI
Version : 1.17.0
License : BSL-1.1
Repository : https://github.com/onelpawarai/ZYRAXON-AI
Description : AI-powered development tool with 136+ MCP tools, YouTube streaming, self-healing, and cross-platform support
ZYRAXON-AI-main/
├── packages/
│ ├── opencode/ # Core AI engine (Bun + TypeScript)
│ ├── desktop/ # Electron desktop app (SolidJS)
│ ├── app/ # Web app (SolidJS)
│ ├── cli/ # CLI interface
│ ├── client/ # API client
│ ├── core/ # Core utilities
│ ├── enterprise/ # Enterprise features
│ ├── llm/ # LLM integrations
│ ├── mobile/ # Mobile app
│ ├── plugin/ # Plugin system
│ ├── protocol/ # Communication protocols
│ ├── schema/ # Data schemas
│ ├── sdk/ # SDK exports
│ ├── server/ # Server components
│ ├── session-ui/ # Session UI components
│ ├── tui/ # Terminal UI
│ └── ui/ # Shared UI components
├── script/ # Build scripts
├── docs/ # Documentation
├── specs/ # Specifications
├── infra/ # Infrastructure
├── package.json # Root workspace config
└── turbo.json # Turborepo config
1. packages/opencode (Core AI Engine)
Path : C:\Users\MMP\Downloads\ZYRAXON-AI-main\ZYRAXON-AI-main\packages\opencode
Package name : zyraxon
Entry point : src/index.ts
Build output : dist/node/node.js (server bundle for desktop)
Scripts :
bun run build → Builds server bundle
bun run dev → Starts interactive TUI
bun run typecheck → TypeScript checking
src/
├── agent/ # Agent system (9 modes)
│ ├── agent.ts # Agent registry + VisionContext management
│ ├── prompt/ # Agent prompts (vision.txt, etc.)
│ └── subagent-permissions.ts
├── screen/ # Vision system (NEW)
│ ├── capture-engine.ts # PowerShell screenshot capture
│ ├── frame-memory.ts # Frame storage/memory
│ ├── frame-processor.ts # Frame processing
│ ├── vision-analyzer.ts # Scene analysis
│ ├── vision-context.ts # VisionContextManager singleton
│ ├── vision-mode.ts # VisionMode orchestrator
│ └── auto-vision.ts # Auto vision injection
├── session/ # Session management
│ └── prompt.ts # Message handling + vision injection
├── provider/ # LLM providers
│ ├── transform.ts # Message transformation
│ └── provider.ts # Model capabilities
├── memory/ # Memory system
│ └── auto-injection.ts # Auto memory injection
├── tool/ # Tool definitions
├── config/ # Configuration
├── mcp/ # MCP server integration
└── ... # Other modules
2. packages/desktop (Electron Desktop App)
Path : C:\Users\MMP\Downloads\ZYRAXON-AI-main\ZYRAXON-AI-main\packages\desktop
Package name : @zyraxon-ai/desktop
Entry point : src/main/index.ts
Build output : out/ (main + preload + renderer)
EXE output : dist/ZYRAXON Dev-win-installer.exe
Scripts :
bun run build → Builds desktop app
bun run package:win → Creates Windows EXE
bun run dev → Development mode
src/
├── main/ # Electron main process
│ ├── index.ts # Main entry
│ ├── ipc.ts # IPC handlers
│ ├── server.ts # Server integration
│ ├── sidecar.ts # Sidecar process
│ └── ... # Window management, updates, etc.
├── preload/ # Preload scripts
│ └── index.ts # Exposes window.api
├── renderer/ # SolidJS renderer
│ └── index.html # Entry HTML
└── ...
3. packages/app (Web App)
Path : packages/app
Framework : SolidJS
Entry : src/index.html
4. packages/cli (CLI Interface)
Path : packages/cli
Commands : bun run dev starts TUI
5. packages/llm (LLM Integrations)
Path : packages/llm
Purpose : AI SDK integrations (OpenAI, Google, Anthropic, etc.)
6. packages/plugin (Plugin System)
Path : packages/plugin
Purpose : Plugin architecture for extensibility
7. packages/schema (Data Schemas)
Path : packages/schema
Purpose : Shared data models and schemas
Path : packages/sdk
Purpose : JavaScript SDK for external usage
9. packages/server (Server)
Path : packages/server
Purpose : API server components
10. packages/tui (Terminal UI)
Path : packages/tui
Purpose : Terminal user interface
11. packages/ui (Shared UI)
Path : packages/ui
Purpose : Shared UI components
Vision System (Active Feature)
Files Created : 8 files in packages/opencode/src/screen/
Integration : Modified prompt.ts for direct screenshot injection
Bug Fixed : agent.toLowerCase is not a function error resolved
Current Issue : EXE build failing with EPERM: dxcompiler.dll permission error
capture-engine.ts - PowerShell-based Windows screenshot capture
frame-memory.ts - Frame storage and memory management
frame-processor.ts - Frame processing pipeline
vision-analyzer.ts - Scene analysis and understanding
vision-context.ts - VisionContextManager singleton
vision-mode.ts - VisionMode orchestrator
auto-vision.ts - Auto vision injection
index.ts - Module exports
User sends message
prompt.ts checks if agent is "vision"
If vision agent: capture screenshot via PowerShell
Convert screenshot to base64
Inject as image content into AI message
AI (mimo-v2.5-free) receives and processes image
AI responds with screen understanding
Step 1: Build OpenCode Server
cd packages/opencode
bun run build
# Output: dist/node/node.js (server bundle)
# Copy opencode-web-ui.gen.ts to dist/node/
cp opencode-web-ui.gen.ts dist/node/
Step 3: Build Desktop App
cd packages/desktop
bun run build
# Output: out/ (main + preload + renderer)
Step 4: Package Windows EXE
cd packages/desktop
bun run package:win
# Output: dist/ZYRAXON Dev-win-installer.exe
General - Default mode for everyday tasks
Build - Software engineering mode
Plan - Architecture mode
Beast - Deep coding mode
PRO - Professional mode
APEX PREDATOR - Maximum power mode
DARK EMPEROR - Ultra mode
Vision - AI's Eyes (screen capture + analysis)
Pro Builder - Website creation intelligence
System Intelligence (20 tools)
Web Intelligence (20 tools)
Data Processing (20 tools)
Security Intelligence (20 tools)
AI Enhancement (20 tools)
Productivity Power (20 tools)
ULTRA Tools (8 tools)
package.json - Workspace configuration
turbo.json - Turborepo pipeline
tsconfig.json - TypeScript config
.gitignore - Git ignore rules
package.json - Package dependencies
tsconfig.json - TypeScript config
script/build-node.ts - Server build script
package.json - Package dependencies
tsconfig.json - TypeScript config
electron.vite.config.ts - Vite config for Electron
electron-builder.config.ts - EXE builder config
script/build-node.ts - Builds OpenCode server
script/build.ts - Main build script
packages/desktop/scripts/prebuild.ts - Pre-build tasks
packages/desktop/scripts/build-wrapper.ts - Build wrapper
Runtime : Bun 1.3.14
Framework : Electron 42.3.3
UI : SolidJS 1.9.10
Language : TypeScript
Build : Turborepo, Vite
Packaging : electron-builder 26.15.2
ai (Vercel AI SDK)
@ai-sdk/openai
@ai-sdk/google
@ai-sdk/anthropic
@ai-sdk/xai (for mimo-v2.5)
@modelcontextprotocol/sdk
Install dependencies: bun install
Start dev server: bun run dev:desktop
Open Electron app
Build server: cd packages/opencode && bun run build
Build desktop: cd packages/desktop && bun run build
Package EXE: cd packages/desktop && bun run package:win
Start app
Select "Vision" agent mode
Send any message
AI should receive live screenshot
AI responds with screen understanding
EXE Build Permission Error
Error : EPERM: operation not permitted, unlink 'dxcompiler.dll'
Cause : Windows file lock (antivirus or previous electron process)
Solution : Kill lingering processes, delete locked file, retry build
Vision System Bug (Fixed)
Error : TypeError: agent.toLowerCase is not a function
Cause : agent variable was Object, not String
Solution : isVisionAgent() now handles both string and object types
main - Primary branch
feat/vision-image-injection - Vision feature branch
v1.17.0 - Current release
Build Results (July 27, 2026)
Step 1: packages/opencode build
Command : cd packages/opencode && bun run build
Status : SUCCESS
Output : dist/node/node.js (server bundle)
Additional : Ran bun run script/build-node.ts to create server bundle
Copied : opencode-web-ui.gen.ts to dist/node/
Step 2: packages/desktop build
Command : cd packages/desktop && bun run build
Status : SUCCESS
Output : out/ (main + preload + renderer)
Note : Initial build failed due to missing dist/node/node.js, fixed after Step 1
Command : cd packages/desktop && bun run package:win
Status : SUCCESS
Output : dist/ZYRAXON Dev-win-installer.exe
Size : 122 MB
Target : Windows NSIS installer
EPERM error : dxcompiler.dll locked by previous process
Missing dist/node/node.js : Created via build-node.ts script
virtual:opencode-server resolution : Fixed by creating server bundle
Date : July 27, 2026
Version : 1.17.0
Status : EXE build complete, ready for testing