[Open Source] Open Source Intelligent Body Platform Based on OpenCode, Low-Code Scene Using AI for Page Development
![[Open Source] Open Source Intelligent Body Platform Based on OpenCode, Low-Code Scene Using AI for Page Development](https://yy123.ink/api/img/1796367580673-6o1bmx.png)
1. Project Overview
code-agent
Based on OpenCode's open-source intelligent entity platform, helping you inUBML low-codeScene-based AI page development——understanding Farris component semantics, validating DSL, previewing pages, and completing generation and iteration in Agent workflow.
2. Open Source License
Licensed under Apache-2.0
3. Screenshots
4. Feature Overview
code-agentDomain extension for UBML (Unified Business Modeling Language) on top of OpenCode intelligent engine.
-
Converse with the Agent in the Web UI and have it assist you in writing code and modifying configurations in your local workspace. -
Utilize the UBML knowledge package to enable the model to understand how to use low-code components, as well as their constraints. -
Use YAML DSL to describe the page, one-click compile the model, and preview after validation; it can also be decompiled when necessary.
The OpenCode engine and Web UI source code are provided with this repository (see packages/opencode/, packages/app/, etc.); the project development is written in packages/extension/ and is separated from the upstream engine code.
Main Functionality
|
|
|
|
Agent Dialogue |
Based on OpenCode, supports multiple LLM Providers, Web end real-time interaction |
|
UBML Knowledge Package |
Low-code model example, shared by Agent and compiler |
|
Customizable UI |
Extension customizes interface through module override, no need to fork upstream |
|
Convention-Driven Development |
Use Large Changes
OpenSpec, proposal → design → tasks workflow |
5. Tech Stack
Quick Start
Requires Bun ≥ 1.3.14.
git clone https://gitee.com/ubml/code-agent.gitcd code-agentbun installbun run dev:with-preview # Backend: 4096, Frontend: 3000, Preview Page: 3100
After modifying the code, restart the service to see the effect:
bun run dev:stop && bun run dev:with-preview
On Windows, you can use bun run dev:windows to start the service with one click, or double-click script\start-dev.bat; to stop the service, use bun run dev:windows:stop.
After starting:
-
Access the browser at http://localhost:3000 -
Select a local working directory -
Click on the right sideSettings → ProvidersConfigure LLM (credentials exist locally, will not be committed to Git) -
Create a new Session, send a message to see if the Agent responds normally
Directory Structure
code-agent/├── packages/│ ├── extension/ ★Product Customization Main Entrance│ │ ├── src/ UI、Workbench、UBML API│ │ ├── assets/ubml/ Schema、prompt、Example│ │ └── preview/ VueLow-Code Preview│ ├── ubml-codegen/ DSLCompile、Validation、Decompilation│ ├── knowledge/Knowledge Service andMCP│ ├── ide-host/ IDE HostIntegration│ ├── desktop/ ElectronDesktop Shell and│ ││ ├── opencode/ ┐│ ├── core/ │ OpenCodeEngine andWeb UI(MIT)│ ├── app/ │Daily Development ModificationextensionDo not modify here│ ├── ui/ ││ ├── sdk/js/ ││ └── plugin/ ┘│├── script/Development Script├── docs/Documentation├── openspec/ OpenSpecChange Record├── assets/Static Resources (such asREADMEPreview Images)└── vendor/Version Baseline andimportList
| Code |
License |
How to Contribute |
| extension/、knowledge/、ubml-codegen/、script/、docs/、openspec/ |
Apache-2.0 |
Directly Submit PR |
| opencode/、app/、ui/
Wait for OpenCode Package |
MIT |
See
docs/VENDOR-SYNC.md |
Common Commands
| Command |
What to Do |
| bun run dev:with-preview |
Recommended
— Main Environment + UBML Page Preview (:3000 / :4096 / :3100) |
| bun run dev:stop |
Stop the Above Development Services |
| bun run dev |
Only Main Environment, Not Including Page Preview |
| bun run dev:backend |
Only Run OpenCode API (:4096) |
| bun run dev:web |
Only Run Extension Frontend (:3000) |
| bun run dev:preview |
Only Run UBML Page Preview (:3100) |
| bun run dev:desktop |
Electron Desktop Shell |
| bun run dev:ide-host |
IDE Host(OpenVSCode Server) |
| bun run dev:windows |
Windows One-Click Start |
| bun run typecheck |
Full Repository Type Check |
| bun run smoke |
API Smoketest (Requires Provider Configured) |
UBML Related:
bun run ubml:build-pack # Build / Sync Knowledge Packagebun run ubml:compile -- path/to/page.yamlbun run ubml:verify -- path/to/page.yamlbun run ubml:decompile -- path/to/page.jsonbun run ubml:install-agent
More Details See docs/UBML-PAGEGEN.md.
Related Projects
-
OpenCode — Upstream Intelligent Body Engine and Web UI -
chenshj/opencode — This Project's OpenCode Maintenance Fork -
OpenSpec — Regulation-Driven Development Toolchain -
UBML Community — UBML Background and Specification
6. Source Code Repository
Open-source project address:
https://gitee.com/ubml/code-agent
Next steps