Desktop Management Panel for GenericAgent
Go backend + React frontend · Single executable · Cross-platform
📌 Requires: This admin panel manages local GenericAgent instances. Install GenericAgent first.
GenericAgent Admin Go is a desktop management panel for GenericAgent. A Go backend handles processes, files, configuration, updates, and system integration, while a React/Vite frontend provides a control console. It packages into a single ga-admin / ga-admin.exe executable.
The goal is not to replace GenericAgent, but to consolidate local GA runtime state, task entry points, model configuration, team collaboration, and desktop assistance into a maintainable UI.
| Feature | Description |
|---|---|
| 📊 Dashboard | Overview of service status, recent activity, system stats |
| 💬 Native Chat | Chat interface with /chat entrypoint, streaming response, usage tracking, model switching |
| 📝 File Editor | Browse GA root, edit skills/SOPs/configs, syntax highlighting, file tree |
| 📋 Task Management | Services (start/stop worker), scheduled tasks, Goal runs, autonomous reports |
| 🧠 Memory Browser | View/search global and project memory |
| 📡 Channel Monitor | Active channels, message logs |
| 🤖 Autonomous Mode | Background task execution |
| 📈 Usage Tracking | Token/cost statistics per model |
| 🎯 Goal Mode | Start/stop long-running goals, view logs/status |
| ⚙️ Model Config | Wizard to add models, test endpoints, manage profiles |
| 🔧 Settings | App config, auth, ga_root path |
| 📄 Log Viewer | Tail worker logs, search history |
⚠️ Prerequisites: Python 3.11+ (for GenericAgent), Node.js 18+ / Go 1.22+ (for development builds)
Fetch installation guide and follow:
curl -fsSL https://github.com/ghraw/Fwind43/GenericAgent-Admin/main/README.mdDownload the platform-specific package from GitHub Releases:
ga-admin-windows-amd64.zip
ga-admin-linux-amd64.tar.gz
ga-admin-darwin-amd64.tar.gz (macOS Intel)
ga-admin-darwin-arm64.tar.gz (macOS Apple Silicon)
Extract and create config.local.json in the same directory:
{
"ga_root": "E:/Work/GenericAgent",
"host": "127.0.0.1",
"port": 8787
}Windows: Double-click ga-admin.exe or run ga-admin.exe --no-browser for headless mode.
Linux/macOS: Run ./ga-admin or ./ga-admin --no-browser.
Open http://127.0.0.1:8787 in your browser.
cd GenericAgent-Admin-Go
npm --prefix web install
npm --prefix web run build
go run .Open http://127.0.0.1:8787.
- Service Management: Start/stop worker, monitor logs, check process status
- Chat Interface:
/chatentrypoint with streaming, usage tracking, model switching
- Goal Mode: Persistent goals (JSON), BBS team board, sync UI
- File Operations: Browse GA root, edit skills/SOPs/configs, create/rename/delete
- Models: Add/test/remove model profiles, wizard UI
- Updates: Check GitHub Releases, download & apply platform-specific packages
- Frontend: React 18 + Vite 6, code-split routes, theme toggle, accessibility
- Backend: Go 1.22+, embedded web assets (
//go:embed web/dist), subprocess lifecycle - Build: Single-executable distribution, GitHub Actions CI/CD for 6 platforms
- Test:
npm run verify(lint + test:lib + build),go test ./...
--headless/--server-only/--no-browser: Run without opening browser--app-root <path>: Override GA root directory (default: fromconfig.local.json)--port <port>: Override HTTP port (default: 8787)
GA_ADMIN_AUTH_USER/GA_ADMIN_AUTH_PASSWORD: HTTP Basic Auth for non-localhost access
Place config.local.json in the executable directory:
{
"ga_root": "/path/to/GenericAgent",
"host": "127.0.0.1",
"port": 8787,
"service_autostart": ["worker"],
"slash_commands": [
{"cmd": "/plan", "desc": "Call plan_worker.py for multi-step planning"}
]
}See config.example.json for all available options.
The repository ignores:
config.local.json
*.local.json
model_profiles.json
dist/
*.exe
web/node_modules/
/temp/
/release/
*.pid
*.log
Run at least:
npm --prefix web run verify # lint + test:lib + build
go test ./...
go build ./...
git diff --checkNotes:
npm run verifyrunslint + test:lib + build(skipstest:ui)web/src/lib/*.test.mjsare auto-discovered bynpm run test:lib- Test files do not need
package.jsonregistration
- Verify clean state: No uncommitted changes, all tests pass
- Run validation:
npm --prefix web run verify && go test ./... - Commit & tag:
git commit -am "release: v0.x.x"→git tag v0.x.x - Push:
git push origin main --tags
GitHub Actions will build 6 platform packages and attach to the release:
ga-admin-windows-amd64.zip
ga-admin-windows-arm64.zip
ga-admin-linux-amd64.tar.gz
ga-admin-linux-arm64.tar.gz
ga-admin-darwin-amd64.tar.gz
ga-admin-darwin-arm64.tar.gz
Each package includes:
- Platform-specific executable (
ga-admin/ga-admin.exe) config.example.jsontemplate- Version metadata (injected via
-ldflagsduring build)
- User-focused quickstart:
docs/USER_QUICKSTART.md(Chinese) - Knowledge base:
docs/knowledge_base.md - Developer experience:
docs/secondary_dev_experience.md
This project manages local GenericAgent instances. GA Admin requires a GenericAgent installation to function.
This project is used internally within the GenericAgent ecosystem. For external distribution, confirm upstream GenericAgent and dependency project license requirements first.
GenericAgent Admin Go 是 GenericAgent 的桌面管理面板。Go 后端负责进程、文件、配置、更新和系统集成,React/Vite 前端提供控制台界面。打包为单个 ga-admin / ga-admin.exe 可执行文件。
目标不是替代 GenericAgent,而是将本地 GA 运行状态、任务入口、模型配置、团队协作和桌面辅助整合到一个可维护的 UI 中。
| 特性 | 说明 |
|---|---|
| 📊 仪表盘 | 服务状态概览、最近活动、系统统计 |
| 💬 原生聊天 | /chat 入口的聊天界面,流式响应,用量跟踪,模型切换 |
| 📝 文件编辑器 | 浏览 GA 根目录,编辑技能/SOP/配置,语法高亮,文件树 |
| 📋 任务管理 | 服务(启动/停止 worker)、计划任务、Goal 运行、自主报告 |
| 🧠 记忆浏览器 | 查看/搜索全局和项目记忆 |
| 📡 通道监控 | 活动通道、消息日志 |
| 🤖 自主模式 | 后台任务执行 |
| 📈 用量跟踪 | 每个模型的 Token/成本统计 |
| 🎯 Goal 模式 | 启动/停止长时间运行的目标,查看日志/状态 |
| ⚙️ 模型配置 | 添加模型的向导,测试端点,管理配置文件 |
| 🔧 设置 | 应用配置、认证、ga_root 路径 |
| 📄 日志查看器 | 尾随 worker 日志,搜索历史 |
⚠️ 前置要求: Python 3.11+(用于 GenericAgent),Node.js 18+ / Go 1.22+(用于开发构建)
获取安装指南并照做:
curl -fsSL https://github.com/ghraw/Fwind43/GenericAgent-Admin/main/README.md从 GitHub Releases 下载平台特定包:
ga-admin-windows-amd64.zip
ga-admin-linux-amd64.tar.gz
ga-admin-darwin-amd64.tar.gz (macOS Intel)
ga-admin-darwin-arm64.tar.gz (macOS Apple Silicon)
解压后在同目录创建 config.local.json:
{
"ga_root": "E:/Work/GenericAgent",
"host": "127.0.0.1",
"port": 8787
}Windows: 双击 ga-admin.exe 或运行 ga-admin.exe --no-browser(无头模式)。
Linux/macOS: 运行 ./ga-admin 或 ./ga-admin --no-browser。
浏览器打开 http://127.0.0.1:8787。
cd GenericAgent-Admin-Go
npm --prefix web install
npm --prefix web run build
go run .浏览器打开 http://127.0.0.1:8787。
- 服务管理: 启动/停止 worker,监控日志,检查进程状态
- 聊天界面:
/chat入口,流式响应,用量跟踪,模型切换
- Goal 模式: 持久化目标(JSON),BBS 团队看板,同步 UI
- 文件操作: 浏览 GA 根目录,编辑技能/SOP/配置,创建/重命名/删除
- 模型管理: 添加/测试/移除模型配置文件,向导 UI
- 更新: 检查 GitHub Releases,下载并应用平台特定包
- 前端: React 18 + Vite 6,路由代码分割,主题切换,无障碍
- 后端: Go 1.22+,嵌入 web 资源(
//go:embed web/dist),子进程生命周期 - 构建: 单可执行文件分发,GitHub Actions CI/CD 支持 6 平台
- 测试:
npm run verify(lint + test:lib + build),go test ./...
--headless/--server-only/--no-browser:无浏览器模式运行--app-root <路径>:覆盖 GA 根目录(默认从config.local.json读取)--port <端口>:覆盖 HTTP 端口(默认 8787)
GA_ADMIN_AUTH_USER/GA_ADMIN_AUTH_PASSWORD:非 localhost 访问的 HTTP Basic Auth
在可执行文件目录放置 config.local.json:
{
"ga_root": "/path/to/GenericAgent",
"host": "127.0.0.1",
"port": 8787,
"service_autostart": ["worker"],
"slash_commands": [
{"cmd": "/plan", "desc": "调用 plan_worker.py 进行多步规划"}
]
}参见 config.example.json 获取所有可用选项。
仓库忽略:
config.local.json
*.local.json
model_profiles.json
dist/
*.exe
web/node_modules/
/temp/
/release/
*.pid
*.log
至少运行:
npm --prefix web run verify # lint + test:lib + build
go test ./...
go build ./...
git diff --check注意:
npm run verify运行lint + test:lib + build(跳过test:ui)web/src/lib/*.test.mjs由npm run test:lib自动发现- 测试文件无需
package.json注册
- 验证清洁状态: 无未提交更改,所有测试通过
- 运行验证:
npm --prefix web run verify && go test ./... - 提交并打标签:
git commit -am "release: v0.x.x"→git tag v0.x.x - 推送:
git push origin main --tags
GitHub Actions 将构建 6 个平台包并附加到发布:
ga-admin-windows-amd64.zip
ga-admin-windows-arm64.zip
ga-admin-linux-amd64.tar.gz
ga-admin-linux-arm64.tar.gz
ga-admin-darwin-amd64.tar.gz
ga-admin-darwin-arm64.tar.gz
每个包包含:
- 平台特定可执行文件(
ga-admin/ga-admin.exe) config.example.json模板- 版本元数据(构建时通过
-ldflags注入)
- 用户快速开始:
docs/USER_QUICKSTART.md(中文) - 知识库:
docs/knowledge_base.md - 二次开发体验:
docs/secondary_dev_experience.md
本项目管理本地 GenericAgent 实例。GA Admin 需要 GenericAgent 安装才能运行。
本项目在 GenericAgent 生态系统内部使用。如需外部分发,请先确认上游 GenericAgent 及依赖项目的许可要求。