Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
988c989
ui: fix sticky session diffs header (#21486)
Brendonovich Apr 8, 2026
cd87d4f
test: update webfetch test (#21398)
rekram1-node Apr 8, 2026
039c601
fix: ensure that /providers list and shell endpoints are correctly ty…
rekram1-node Apr 8, 2026
d98be39
fix(app): patch tool diff rendering
adamdotdevin Apr 8, 2026
689b1a4
fix(app): diff list normalization
adamdotdevin Apr 8, 2026
00cb883
fix: dont show invalid variants for BP (#21555)
rekram1-node Apr 8, 2026
4961d72
tweak: separate ModelsDev.Model and Config model schemas (#21561)
rekram1-node Apr 8, 2026
38f8714
refactor(effect): build task tool from agent services (#21017)
kitlangton Apr 8, 2026
51535d8
fix(app): skip url password setting for same-origin server and web ap…
OpeOginni Apr 8, 2026
2bdd279
fix: propagate abort signal to inline read tool (#21584)
kitlangton Apr 9, 2026
8bdcc22
refactor(effect): inline session processor interrupt cleanup (#21593)
kitlangton Apr 9, 2026
cd8e8a9
feat(llm): integrate GitLab DWS tool approval with permission system …
vglafirov Apr 9, 2026
d82b163
chore: update nix node_modules hashes
opencode-agent[bot] Apr 9, 2026
9c1c061
fix(lsp): remove CMakeLists.txt and Makefile from clangd root markers…
nonbanana Apr 9, 2026
ee23043
Remove CLI from electron app (#17803)
Brendonovich Apr 9, 2026
ca57248
chore: generate
opencode-agent[bot] Apr 9, 2026
3fc3974
chore: update nix node_modules hashes
opencode-agent[bot] Apr 9, 2026
489f579
feat: add opencode go upsell modal when limits are hit (#21583)
rekram1-node Apr 9, 2026
847fc9d
release: v1.4.1
Apr 9, 2026
46f243f
app: remove min loading duration (#21655)
Brendonovich Apr 9, 2026
c29392d
fix: preserve interrupted bash output in tool results (#21598)
kitlangton Apr 9, 2026
58a9991
fix: preserve text part timing in session processor (#21691)
kitlangton Apr 9, 2026
fcbbfd2
feat(guardrails): plan→auto chain + mode accessibility + upstream syn…
terisuke Apr 9, 2026
75b9623
chore: upstream sync to upstream/dev (2026-04-09)
terisuke Apr 9, 2026
3a04578
chore: remove accidentally committed .claude worktrees
terisuke Apr 9, 2026
3f05179
fix(guardrails): symlink profile commands/agents to .opencode/ for de…
terisuke Apr 9, 2026
6ad4d42
chore: auto-link guardrails commands/agents on postinstall
terisuke Apr 9, 2026
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
30 changes: 30 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Fork-only paths: always keep our version during upstream merge
# These directories/files exist only in Cor-Incorporated/opencode, not in upstream (anomalyco/opencode)
# Using merge=ours driver: `git config merge.ours.driver true`

# Core fork additions
packages/opencode/src/hook/** merge=ours
packages/opencode/src/memory/** merge=ours
packages/opencode/src/notification/** merge=ours
packages/opencode/src/session/repetition.ts merge=ours
packages/opencode/src/session/prompt/glm.txt merge=ours
packages/opencode/test/hook/** merge=ours

# Guardrails plugin package
packages/guardrails/** merge=ours

# Fork-specific config
.opencode/** merge=ours

# Fork documentation
docs/ai-guardrails/** merge=ours
docs/comparison/** merge=ours
FORK.md merge=ours

# Fork-specific migrations
packages/opencode/migration/20260405053632_add-memory-table/** merge=ours

# Fork-specific CI workflows
.github/workflows/seed-verify.yml merge=ours
.github/workflows/upstream-sync.yml merge=ours
.github/workflows/workflow-sync.yml merge=ours
1 change: 1 addition & 0 deletions .opencode/agent/api-designer.md
1 change: 1 addition & 0 deletions .opencode/agent/architect.md
1 change: 1 addition & 0 deletions .opencode/agent/backend-developer.md
1 change: 1 addition & 0 deletions .opencode/agent/build-error-resolver.md
1 change: 1 addition & 0 deletions .opencode/agent/cloud-architect.md
1 change: 1 addition & 0 deletions .opencode/agent/code-reviewer.md
1 change: 1 addition & 0 deletions .opencode/agent/database-administrator.md
1 change: 1 addition & 0 deletions .opencode/agent/database-optimizer.md
1 change: 1 addition & 0 deletions .opencode/agent/deployment-engineer.md
1 change: 1 addition & 0 deletions .opencode/agent/doc-updater.md
1 change: 1 addition & 0 deletions .opencode/agent/e2e-runner.md
1 change: 1 addition & 0 deletions .opencode/agent/golang-pro.md
1 change: 1 addition & 0 deletions .opencode/agent/implement.md
1 change: 1 addition & 0 deletions .opencode/agent/incident-responder.md
1 change: 1 addition & 0 deletions .opencode/agent/investigate.md
1 change: 1 addition & 0 deletions .opencode/agent/mobile-developer.md
1 change: 1 addition & 0 deletions .opencode/agent/planner.md
1 change: 1 addition & 0 deletions .opencode/agent/provider-eval.md
1 change: 1 addition & 0 deletions .opencode/agent/python-pro.md
1 change: 1 addition & 0 deletions .opencode/agent/refactor-cleaner.md
1 change: 1 addition & 0 deletions .opencode/agent/review.md
1 change: 1 addition & 0 deletions .opencode/agent/security-engineer.md
1 change: 1 addition & 0 deletions .opencode/agent/security-reviewer.md
1 change: 1 addition & 0 deletions .opencode/agent/security.md
1 change: 1 addition & 0 deletions .opencode/agent/ship.md
1 change: 1 addition & 0 deletions .opencode/agent/sql-pro.md
1 change: 1 addition & 0 deletions .opencode/agent/swift-expert.md
1 change: 1 addition & 0 deletions .opencode/agent/tdd-guide.md
1 change: 1 addition & 0 deletions .opencode/agent/technical-writer.md
1 change: 1 addition & 0 deletions .opencode/agent/terraform-engineer.md
1 change: 1 addition & 0 deletions .opencode/agent/test-runner.md
1 change: 1 addition & 0 deletions .opencode/agent/typescript-pro.md
1 change: 1 addition & 0 deletions .opencode/agent/websocket-engineer.md
1 change: 1 addition & 0 deletions .opencode/command/auto.md
1 change: 1 addition & 0 deletions .opencode/command/blog.md
1 change: 1 addition & 0 deletions .opencode/command/bugfix.md
1 change: 1 addition & 0 deletions .opencode/command/build-fix.md
1 change: 1 addition & 0 deletions .opencode/command/code-review.md
1 change: 1 addition & 0 deletions .opencode/command/delegate.md
1 change: 1 addition & 0 deletions .opencode/command/e2e.md
1 change: 1 addition & 0 deletions .opencode/command/explain-project.md
1 change: 1 addition & 0 deletions .opencode/command/gemini.md
1 change: 1 addition & 0 deletions .opencode/command/handoff.md
1 change: 1 addition & 0 deletions .opencode/command/implement.md
1 change: 1 addition & 0 deletions .opencode/command/investigate.md
1 change: 1 addition & 0 deletions .opencode/command/plan-to-checklist.md
1 change: 1 addition & 0 deletions .opencode/command/plan.md
1 change: 1 addition & 0 deletions .opencode/command/provider-eval.md
1 change: 1 addition & 0 deletions .opencode/command/refactor-clean.md
1 change: 1 addition & 0 deletions .opencode/command/review.md
1 change: 1 addition & 0 deletions .opencode/command/ship.md
1 change: 1 addition & 0 deletions .opencode/command/tdd.md
1 change: 1 addition & 0 deletions .opencode/command/test-coverage.md
1 change: 1 addition & 0 deletions .opencode/command/test-report.md
1 change: 1 addition & 0 deletions .opencode/command/test.md
1 change: 1 addition & 0 deletions .opencode/command/ui-skills.md
1 change: 1 addition & 0 deletions .opencode/command/update-codemaps.md
1 change: 1 addition & 0 deletions .opencode/command/update-docs.md
12 changes: 4 additions & 8 deletions .opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,16 @@
"external_directory": "ask",
},
"mcp": {},
"hooks": {
"PreToolUse": [
{
"command": ".opencode/hooks/guardrails.sh",
"matcher": "bash",
},
],
},
"tools": {
"github-triage": false,
"github-pr-search": false,
},
"hooks": {
"PreToolUse": [
{
"command": ".opencode/hooks/guardrails.sh",
"matcher": "bash",
},
{
"command": ".opencode/hooks/enforce-factcheck-before-edit.sh",
"matcher": "write",
Expand Down
46 changes: 46 additions & 0 deletions FORK.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Cor-Incorporated/opencode Fork

Upstream: [anomalyco/opencode](https://github.com/anomalyco/opencode)

## Fork-Only Systems

These features exist only in this fork, not in upstream:

| System | Path | Purpose |
|--------|------|---------|
| Shell Hook System | `packages/opencode/src/hook/` | PreToolUse/PostToolUse shell script hooks |
| Memory Extractor | `packages/opencode/src/memory/` | Session-based learning persistence |
| Guardrails Plugin | `packages/guardrails/` | Git workflow gates, auto-review, team orchestration |
| Notification | `packages/opencode/src/notification/` | Desktop notifications on session events |
| Repetition Detection | `packages/opencode/src/session/repetition.ts` | LLM loop detection |
| GLM Prompt | `packages/opencode/src/session/prompt/glm.txt` | ZhipuAI GLM provider support |
| AI Guardrails Docs | `docs/ai-guardrails/` | ADRs, issues, migration docs |

## Upstream Sync

Upstream merge is automated via `.gitattributes` `merge=ours` driver.
Fork-only paths are auto-protected during merge.

```bash
# One-time setup
git config merge.ours.driver true

# Sync
./scripts/upstream-sync.sh
```

### Conflict-Risk Files

These files are modified in both fork and upstream. Manual conflict resolution may be needed:

- `packages/opencode/src/config/config.ts` — fork adds hook/memory config
- `packages/opencode/src/index.ts` — fork adds hook/memory imports
- `packages/opencode/src/plugin/index.ts` — fork modifies plugin loading
- `packages/opencode/src/session/processor.ts` — fork adds memory extraction
- `packages/opencode/src/session/prompt.ts` — fork adds hook injection

## Sync History

| Date | Upstream Ref | Commits | Notes |
|------|-------------|---------|-------|
| 2026-04-08 | v1.4.0 | 37 | PR #136. Instance→InstanceState fix |
Loading
Loading