Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
OpenCode-GraphAgent
===================

This repository is a fork of opencode (https://github.com/anomalyco/opencode),
an AI coding agent. It is not affiliated with or endorsed by the OpenCode team.

License boundaries
------------------

1. Upstream opencode code (the vast majority of this repository)

License: MIT
Text: ./LICENSE
Copyright (c) 2025 opencode

All code inherited from the upstream project, plus fork modifications that
are minor patches to upstream files (bug fixes, localization fixes, hook
system, tool improvements), remains under the upstream MIT license.

2. DAG workflow engine (self-developed by the fork author)

License: GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later)
Text: ./packages/core/src/dag/LICENSE
./packages/opencode/src/dag/LICENSE
Copyright (c) 2026 LeXwDeX

Covered directories and files:

- packages/core/src/dag/ DAG core: state machine, dependency
graph, scheduling, event projection,
SQLite read model
- packages/opencode/src/dag/ DAG runtime: workflow service,
execution loop, node spawn,
admission, review lifecycle,
crash recovery, templates
- packages/opencode/src/tool/workflow.ts The `workflow` agent tool
- packages/schema/src/dag-event.ts DAG event schema definitions
- packages/tui/src/feature-plugins/system/dag-inspector.tsx
- packages/tui/src/feature-plugins/system/dag-inspector-utils.ts
- packages/tui/src/feature-plugins/sidebar/dag-panel.tsx
TUI DAG inspector and sidebar panel
- packages/opencode/src/server/routes/instance/httpapi/groups/dag.ts
- packages/opencode/src/server/routes/instance/httpapi/handlers/dag.ts
DAG HTTP API routes
- .opencode/dag-prompts/ DAG node prompt templates

The AGPL applies to these files and to derivative works of them, including
network-server deployments. Using the rest of the repository without the
DAG engine is governed by the MIT license alone.

When a file under an AGPL-covered directory imports MIT-licensed upstream
modules, the upstream modules remain MIT; only the AGPL-covered files and
their derivatives carry AGPL obligations.
175 changes: 89 additions & 86 deletions README.md

Large diffs are not rendered by default.

175 changes: 89 additions & 86 deletions README.zh.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config_assistant/cmd/ocfg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

tea "github.com/charmbracelet/bubbletea"

"github.com/opencode-dag/config_assistant/internal/tui"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/tui"
)

const banner = `配置助手 — opencode 配置管理工具
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/opencode-dag/config_assistant
module github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant

go 1.26.5

Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/config/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"time"

"github.com/opencode-dag/config_assistant/internal/models"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/models"
)

// WriteTarget 是生成配置的写入目标。
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/config/write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/opencode-dag/config_assistant/internal/models"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/models"
)

func TestGenerateFromModelsSetsMainModel(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config_assistant/internal/tui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/opencode-dag/config_assistant/internal/models"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/models"
)

type mode int
Expand Down
4 changes: 2 additions & 2 deletions config_assistant/internal/tui/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/opencode-dag/config_assistant/internal/models"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/models"
)

func (a *app) updateBrowse(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/tui/confirm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
)

func (a *app) updateConfirm(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
4 changes: 2 additions & 2 deletions config_assistant/internal/tui/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package tui
import (
"encoding/json"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/opencode-dag/config_assistant/internal/models"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/models"
)

// generatePreview 用当前选中的模型 + provider 选项 + 目标映射构建预览产物。
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/tui/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"strings"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
)

func managedDisplay() string {
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/tui/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
)

func (a *app) updateInput(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/tui/step1.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
)

func (a *app) updateStep1(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/tui/step2.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
)

func (a *app) updateStep2(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
2 changes: 1 addition & 1 deletion config_assistant/internal/tui/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/opencode-dag/config_assistant/internal/config"
"github.com/LeXwDeX/OpenCode-GraphAgent/config_assistant/internal/config"
)

func (a *app) updateView(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down
4 changes: 2 additions & 2 deletions oc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
# oc — opencode (LeXwDeX fork) version manager TUI
# 升级渠道:https://github.com/LeXwDeX/OpenCode-DAG/releases
# 升级渠道:https://github.com/LeXwDeX/OpenCode-GraphAgent/releases
# 依赖:bash, curl, tar/unzip, fzf(必需);gh(可选,无 token 走 curl)

set -euo pipefail

REPO="LeXwDeX/OpenCode-DAG"
REPO="LeXwDeX/OpenCode-GraphAgent"
RELEASES_URL="https://github.com/${REPO}/releases"
INSTALL_DIR="${OC_INSTALL_DIR:-/usr/local/bin}"
INSTALL_NAME="${OC_OPENCODE_NAME:-opencode}"
Expand Down
Loading
Loading