
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
galaxy-code
Advanced tools
AI Pair Programming Tool - Công cụ lập trình với AI trợ lý thông minh, hỗ trợ phân tích, lập kế hoạch và tạo code tự động.
Dự án đang trong giai đoạn phát triển Alpha
Galaxy CLI hiện đang trong giai đoạn phát triển và thử nghiệm Alpha. Phiên bản chính thức (stable release) sẽ được công bố trong tương lai khi dự án đã hoàn thiện và được kiểm thử kỹ lưỡng.
Lưu ý:
- ⚠️ Dự án chưa được public trên GitHub hay các kho package registry
- 🔄 API và cấu trúc có thể thay đổi trong quá trình phát triển
- ⛔ Không khuyến nghị sử dụng cho môi trường production hiện tại
Để cập nhật thông tin về phiên bản chính thức:
- 📧 Email: kevinbui210191@gmail.com / hieubt2@msb.com.vn
- 📱 Theo dõi repository để nhận thông báo khi project được public
Galaxy CLI là công cụ AI pair programming mạnh mẽ được xây dựng với:
gpt-oss:120b-cloud - Business Analysis & Requirementsqwen3-coder:480b-cloud - Code generation & Planning┌─────────────────────────────────────────────┐
│ Galaxy CLI (Ink React App) │
│ - User Input với autocomplete │
│ - Spinner loading states │
│ - Figlet banner │
└─────────────────┬───────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Gemini 2.5 Flash (Orchestrator) │
│ - Tool calling & function execution │
│ - Plan execution & todos display │
│ - Multi-language support (EN/VI) │
└─────────────────┬───────────────────────────┘
│
┌─────────┴─────────────┐
│ │
▼ ▼
┌───────────────┐ ┌──────────────────┐
│ BA Analyzer │ │ Planning Agent │
│ gpt-oss:120b │ │ qwen3-coder:480b │
│ │ │ Feature-driven │
└───────────────┘ └──────────────────┘
│ │
│ ▼
│ ┌──────────────────────┐
│ │ Execution Plan │
│ │ - Feature steps │
│ │ - Tool selection │
│ └──────────────────────┘
│ │
└───────────┬───────────┘
▼
┌───────────────────────────┐
│ Code Generate Agent │
│ qwen3-coder:480b-cloud │
│ │
│ ┌─────────────────────┐ │
│ │ Integrated Tools: │ │
│ │ - file_write │ │
│ │ - file_read │ │
│ │ - command_run │ │
│ │ - file_search │ │
│ └─────────────────────┘ │
│ │
│ Output: {step, status, │
│ message, filesCreated} │
└───────────────────────────┘
│
▼
┌───────────────────────────┐
│ Tool Registry (28 tools) │
│ │
│ 📁 File 🔧 Command │
│ 🔀 Git 📝 Document │
│ 🧪 Test 🔍 Search │
└───────────────────────────┘
Trước đây (Multi-agent):
Hiện tại (Feature-Driven):
User: "Phân tích dự án này"
│
├─> file_tree(cwd) → Lấy cấu trúc thư mục
├─> file_read(package.json, README) → Đọc tech stack
└─> Trả về phân tích toàn diện
Output: Project description, tech stack, features, architecture
User: "Tạo app Next.js e-commerce"
│
├─> 🔍 ba_it_analyze(userRequest, context)
│ ↓
│ ┌─────────────────────────────────────┐
│ │ BA Analysis Result (English) │
│ │ - projectName │
│ │ - type: "create_project" │
│ │ - coreFeatures: [...] │
│ │ - technicalStack: {...} │
│ │ - estimatedDevelopmentTime │
│ │ - recommendations: [...] │
│ │ - questionsForUser: [...] │
│ └─────────────────────────────────────┘
│ ↓
├─> 📊 PRESENT to User (Vietnamese/English)
│
│ 📊 **Phân tích dự án**: Next.js E-commerce
│ 💡 **Mô tả**: Ứng dụng thương mại điện tử...
│
│ **✨ Tính năng chính**:
│ - Catalog sản phẩm
│ - Giỏ hàng
│ - Thanh toán (Stripe)
│ ...
│
│ Bạn đồng ý phương án này?
│
│ ↓
├─> ⏸️ WAIT for user confirmation
│ ↓
├─> ✅ User: "Đồng ý, làm đi"
│ ↓
├─> 📋 plan_task(userContext, baAnalysis)
│ ↓
│ ┌─────────────────────────────────────────────┐
│ │ Feature-Driven Plan │
│ │ { │
│ │ summary: "Build e-commerce with 3 features",│
│ │ steps: [ │
│ │ {step: 1, tool: "command_run", │
│ │ action: "Init Next.js"}, │
│ │ {step: 2, tool: "install_dependencies"},│
│ │ {step: 3, tool: "code_generate", │
│ │ featureName: "Product Catalog", │
│ │ featureDescription: "...", │
│ │ priority: "must-have"}, │
│ │ {step: 4, tool: "code_generate", │
│ │ featureName: "Shopping Cart"}, │
│ │ {step: 5, tool: "code_generate", │
│ │ featureName: "Checkout"} │
│ │ ], │
│ │ estimatedTime: "long" │
│ │ } │
│ └─────────────────────────────────────────────┘
│ ↓
├─> 📋 **Present Plan with Todos**:
│
│ 📋 Implementation Plan (long):
│ ☐ Step 1: Initialize Next.js project
│ ☐ Step 2: Install dependencies
│ ☐ Step 3: Implement Product Catalog
│ ☐ Step 4: Implement Shopping Cart
│ ☐ Step 5: Implement Checkout
│
│ ↓
└─> 🚀 **Execute Steps Sequentially**:
Step 1: command_run("npm create next-app...")
☒ Step 1: Initialize Next.js - Completed
Step 2: install_dependencies()
☒ Step 2: Install dependencies - Installed
Step 3: code_generate({
step: 3,
featureName: "Product Catalog",
technicalStack: {...},
userStories: [...],
dataModel: [...]
})
↓ Code Generate Agent:
- Generates complete code
- Writes files: components/, api/, types/
- Returns: {step: 3, status: 'done', filesCreated: [...]}
☒ Step 3: Product Catalog - Created 5 files
Step 4: code_generate(Shopping Cart)
☒ Step 4: Shopping Cart - Created 3 files
Step 5: code_generate(Checkout)
☒ Step 5: Checkout - Created 4 files
✅ All steps completed! Created 12 files total.
User: "Thêm authentication vào app"
│
├─> 🔍 ba_it_analyze(userRequest, context)
│ │ type: "update_project"
│ ↓
├─> 📊 Present analysis
│ ↓
├─> 📋 plan_task(userContext, baAnalysis)
│ │ → Skip project setup
│ │ → Focus on feature implementation
│ ↓
└─> 🚀 Execute steps
User: "React hooks là gì?"
│
└─> 💬 Direct answer (no tools)
gpt-oss:120b-cloudqwen3-coder:480b-cloudcd terminal/galaxy_cli
bun install
# .env file
GEMINI_API_KEY=your_gemini_api_key_here
OLLAMA_HOST=http://localhost:11434
bun run build
bun run start
# hoặc
bun run dev
# Development mode với watch
bun run dev
# Production mode
bun run start
# Với CLI flags
bun run start --test # Enable test planning
bun run start --review # Enable review planning
bun run start --test --review # Enable both
bun run start --help # Show help
bun run start --version # Show version
| Flag | Short | Default | Mô tả |
|---|---|---|---|
--help | -h | - | Hiển thị trợ giúp |
--version | -v | - | Hiển thị version |
--test | - | false | Enable test planning step |
--review | - | false | Enable review planning step |
| Command | Mô tả | Example |
|---|---|---|
/help | Hiển thị danh sách lệnh | /help |
/exit | Thoát khỏi Galaxy CLI | /exit |
/clear | Xóa lịch sử hội thoại | /clear |
/history | Xem 10 input gần nhất | /history |
/pwd | Hiển thị thư mục làm việc | /pwd |
/information | Hiển thị thông tin hệ thống | /information |
/test | Toggle test planning | /test true hoặc /test false |
/review | Toggle review planning | /review true hoặc /review false |
# Phân tích dự án hiện tại
> Phân tích dự án này
# Tạo project mới
> Tạo app Next.js với TypeScript và Tailwind
# Thêm tính năng
> Thêm authentication với JWT
# Hỏi đáp
> Giải thích về React Context API
# Bật/tắt test planning
> /test true
✅ Test planning enabled
# Kiểm tra thông tin hệ thống
> /information
📊 System Information:
Name: Galaxy CLI
Version: 2.0.0
Current Project: /home/user/my-project
Testing: ON
Review Code: OFF
create_project vs update_project{step, status: 'done'|'error', message, filesCreated}file_read - Đọc nội dung filefile_write - Ghi/tạo file mớifile_list - List files trong thư mụcfile_search - Tìm kiếm pattern trong filesfile_tree - Hiển thị cây thư mụcfile_delete - Xóa filegit_status - Check git statusgit_commit - Commit changesgit_push - Push to remotegit_pull - Pull từ remotegit_diff - Xem git diffcommand_run - Chạy shell commandinstall_dependencies - Auto-detect & install depstest_run - Chạy testsdocument_parse - Parse PDF, DOCX, XLSXba_it_analyze - Business analysis với gpt-oss:120bplan_task - Feature-driven planning với qwen3-coder:480bcode_generate - ✨ Self-contained feature executor với qwen3-coder:480bproject_ask_config - Interactive project setupproject_build_command - Generate build commandsba_it_analyze?✅ Dùng khi:
❌ Không dùng:
file_tree + file_read)plan_task?✅ Dùng khi:
Required params:
userContext (bắt buộc) - Yêu cầu của userbaAnalysis (optional) - Kết quả từ ba_it_analyzecode_generate?✅ Dùng khi:
Required params:
step - Step numberfeatureName - Tên feature từ coreFeaturesfeatureDescription - Mô tả chi tiếttechnicalStack - Tech stack từ BAOutput: {step, status: 'done'|'error', message, filesCreated: [...]}
____ _ ____ _ ___
/ ___| __ _| | __ ___ ___ _ / ___| | |_ _|
| | _ / _` | |/ _` \ \/ / | | || | | | | |
| |_| | (_| | | (_| |> <| |_| || |___| |___ | |
\____|\__,_|_|\__,_/_/\_\\__, | \____|_____|___|
|___/
⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏# Required
GEMINI_API_KEY= # Google Gemini API key
OLLAMA_HOST= # Ollama server URL (default: http://localhost:11434)
# Optional
DEBUG= # Enable debug logs (true/false)
terminal/galaxy_cli/
├── source/
│ ├── ai/
│ │ └── orchestrator.ts # Gemini orchestrator
│ ├── connections/
│ │ ├── gemini.ts # Gemini connection
│ │ └── ollama.ts # Ollama connection
│ ├── prompts/
│ │ ├── orchestrator.ts # Main workflow prompts
│ │ ├── ba-it-analyzer.ts # BA analysis prompts
│ │ └── planning-agent.ts # Planning prompts
│ ├── tools/
│ │ ├── ba-it-analyzer.ts # BA analyzer tool
│ │ ├── planning-agent.ts # Planning agent tool
│ │ ├── file-operations.ts # File tools
│ │ ├── git-operations.ts # Git tools
│ │ └── registry.ts # Tool registry
│ ├── app.tsx # Main Ink app
│ └── cli.tsx # CLI entry
├── dist/ # Compiled output
├── package.json
└── tsconfig.json
# Development với auto-reload
bun run dev
# Build TypeScript
bun run build
# Type checking
bun run type-check
# Format code
bun run format
Contributions are welcome! Please follow these steps:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE file for details
Bùi Trọng Hiếu (Kevin Bui)
FAQs
Galaxy Code — AI-powered coding assistant CLI (Claude, Gemini, Ollama, Codex)
The npm package galaxy-code receives a total of 9 weekly downloads. As such, galaxy-code popularity was classified as not popular.
We found that galaxy-code demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.