Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

Repository files navigation

ForgeADE Native

Pure Go Native Desktop IDE for ForgeADE powered by MyGo Native UI


Overview

ForgeADE Native is a high-performance native desktop port of ForgeADE. It targets a 100% pure Go native UI stack with CGO_ENABLED=0, eliminating Chromium/WebKit webviews, Node.js toolchains, and IPC serialization in favor of direct GPU rendering and zero-copy in-memory architecture.

Benchmark Comparison

Metric Original ForgeADE (Wails v3 + React + WebView) ForgeADE Native (Pure Go + MyGo UI) Improvement
Idle Memory (RSS) ~110 – 180 MB ~55.9 MB ~65% less memory
Idle CPU Usage 0.5% – 2.0% 0.7% Near-zero idle overhead
Binary Executable Size 28 MB 15 MB ~46% smaller
Test Suite Execution ~12.5s (Vitest) 0.009s (Go Native) >1000x faster

Architecture

ForgeADE Native implements ForgeADE's exact Dual-Surface Architecture:

┌────────────────────────────────────────────────────────────────────────────────────────┐
│ WorkspaceHeader                                                                        │
│ ◧ [Active Title]   📁 forge-ade-native   ⎇ main *   …   │   [✨ Agent | 💻 Editor]  🔍 ⌨ ◨ ⚙│
├────────────────────────────┬───────────────────────────────────────────┬───────────────┤
│ Mode: ✨ AGENT             │ AgentContainer                            │ Right Drawer  │
│ ┌────────────────────────┐ │ ┌───────────────────────────────────────┐ │ (Collapsible) │
│ │ + New Task (⌘N)        │ │ │ Session Header (Title · Status · Model)│ │               │
│ │ 🔍 Search (⌘P)         │ │ ├───────────────────────────────────────┤ │ ⎇ Git Changes │
│ │                        │ │ │ Message Stream (Streaming Markdown)   │ │ 🗄 Database   │
│ │ TASKS [Active|Pin|Arc] │ │ │   User Bubbles                        │ │ 📋 Task Board │
│ │ • Port to Native UI 🟢 │ │ │   Assistant Markdown Blocks           │ │               │
│ │ • GPU Profiling    ✔   │ │ ├───────────────────────────────────────┤ │               │
│ ├────────────────────────┤ │ │ Floating Task Checklist (Docked)      │ │               │
│ │ Model Profile & Quotas │ │ ├───────────────────────────────────────┤ │               │
│ │ 📋  ⎇  ⚙               │ │ │ Composer: /goal, /tasks, /model...    │ │               │
│ └────────────────────────┘ │ └───────────────────────────────────────┘ │               │
│                            │ Bottom Terminal (Collapsible, Ghostty)    │               │
├────────────────────────────┴───────────────────────────────────────────┴───────────────┤
│ Mode: 💻 EDITOR                                                                        │
│ ┌────┬───────────────────┐ │ EditorView                                │ Right Drawer  │
│ │ 📁 │ WORKSPACE [FILES] │ │ ┌───────────────────────────────────────┐ │ (Collapsible) │
│ │ ⎇  │ app.go •          │ │ │ [app.go • ×] [main.go ×] ◫Split Diff 💾│ │               │
│ │ 🗄  │ main.go           │ │ ├───────────────────────────────────────┤ │ ✨ Agent Chat │
│ │    │ engine.go         │ │ │ Virtualized Code Buffer (Zed-style)   │ │ ⎇ Git Changes │
│ │ ⚙  │ editor.go         │ │ │ (Syntax highlighted, live diff gutters│ │ 🗄 Database   │
│ └────┴───────────────────┘ │ └───────────────────────────────────────┘ │               │
│                            │ Bottom Terminal (Collapsible, Ghostty)    │               │
├────────────────────────────┴───────────────────────────────────────────┴───────────────┤
│ StatusBar (Editor Mode): 📁 forge-ade-native · app.go · Ln 42, Col 18 · 860 lines · Go · UTF-8 │
└────────────────────────────────────────────────────────────────────────────────────────┘

Key Modules

  • Unified Top Header (WorkspaceHeader):
    • Segmented Mode Switcher: [✨ Agent] and [💻 Editor]
    • Workspace and branch chips with dirty state indicators (⎇ main *)
    • Task actions menu (…), Quick open search (🔍 ⌘P), collapsible terminal toggle (⌨), right pane drawer toggle (◨), and settings modal (⚙ ⌘,).
  • Autonomous Agent Mode (ModeAgent):
    • Full-height AgentSidebar with + New Task primary button, filter tabs (active, pinned, archived), and real-time task sessions list with status indicators (🟢 Running, ⚪ Idle, ✔ Completed).
    • Streaming Markdown turns with user bubbles and assistant responses.
    • Docked floating Task Checklist decomposing objectives into subtasks.
    • Interactive prompt composer with slash command shortcuts (/goal, /tasks, /model, /clear, /status, /help).
  • Code Editor Mode (ModeEditor):
    • 48px Activity bar with Explorer (📁), Source Control (⎇), Database (🗄), and Settings (⚙).
    • File tree explorer with dirty modification badges (•), search filter, + File, and ↻ Refresh.
    • Tab bar with open files, close buttons (×), multi-pane split (◫ Split), live diff view (Diff), and file saving (⌘S).
    • Zed-style virtualized editor buffer with syntax highlighting and live diff gutters.
    • Bottom Status Bar showing line/column, encoding, line count, language detection, and active LLM model.
  • Collapsible Bottom & Right Drawers:
    • Collapsible bottom Ghostty terminal drawer running bash.
    • Collapsible right drawer with tabs for Git changes, SQLite/DuckDB inspector, task checklist, and agent chat.

Getting Started

Prerequisites

  • Go 1.23+
  • Linux with X11/Wayland (libgtk-3), macOS, or Windows

Build & Run

# Run unit tests (9 test suites, passes in ~0.009s)
make test

# Build stripped release executable (15MB)
make build

# Launch application
./build/bin/forge-native

Keyboard Shortcuts

Shortcut Action
⌘S / Ctrl+S Save active editor file
⌘P / Ctrl+P Quick open file palette
⌘, / Ctrl+, Open settings modal
⌘B / Ctrl+B Toggle left sidebar
⌘N / Ctrl+N Create new task session
⌘J / Ctrl+J Toggle right action drawer
⌘1 / Ctrl+1 Switch to Agent Mode
⌘2 / Ctrl+2 Switch to Editor Mode

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages