Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a5c058e
ignore: update download stats 2026-01-25
actions-user Jan 25, 2026
ddc4e89
fix(app): cleanup comment component usage
adamdotdevin Jan 25, 2026
dcc8d1a
perf(app): performance improvements
adamdotdevin Jan 25, 2026
e9152b1
fix(app): comment line placement in diffs
adamdotdevin Jan 25, 2026
f7a4cdc
fix(app): no default model crash
adamdotdevin Jan 25, 2026
caecc79
fix(app): cursor on resize (#10293)
ProdigyRahul Jan 25, 2026
a900c89
fix(app): mobile horizontal scrolling due to session stat btn (#10487)
DNGriffin Jan 25, 2026
d251206
chore: generate
actions-user Jan 25, 2026
2b07291
fix(app): scroll to comment on click
adamdotdevin Jan 25, 2026
4c2d597
fix(app): line selection colors
adamdotdevin Jan 25, 2026
471fc06
chore(app): visual cleanup
adamdotdevin Jan 25, 2026
d75dca2
chore: generate
actions-user Jan 25, 2026
9407a6f
ignore: rm STYLE_GUIDE, consolidate in AGENTS.md
rekram1-node Jan 25, 2026
ebe86e4
fix(tui): prevent crash when theme search returns no results (#10565)
ishaksebsib Jan 25, 2026
e491f5c
fix(web): add & fix the download button (#10566)
R44VC0RP Jan 25, 2026
65ac318
fix(app): user message fade
adamdotdevin Jan 25, 2026
9a89cd9
fix(app): line selection styling
adamdotdevin Jan 25, 2026
b982ab2
chore: generate
actions-user Jan 25, 2026
0561862
release: v1.1.36
Jan 25, 2026
e49306b
rm log statement
rekram1-node Jan 25, 2026
fc57c07
chore: generate
actions-user Jan 25, 2026
14b00f6
fix(app): escape should always close dialogs
adamdotdevin Jan 25, 2026
d115f33
fix(app): don't allow workspaces in non-vcs projects
adamdotdevin Jan 25, 2026
94ce289
fix(app): run start command after reset
adamdotdevin Jan 25, 2026
407f34f
chore: cleanup
adamdotdevin Jan 25, 2026
a404eff
feat: support model variants for agents
Jan 25, 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
9 changes: 9 additions & 0 deletions .opencode/agent/test-max-thinking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
description: Test agent with max thinking.
model: zai-coding-plan/glm-4.7
variant: max
---

You are a test agent for GLM-4.7 with max thinking enabled.

Your purpose is to test model variants in this codebase. Keep responses brief and direct.
9 changes: 9 additions & 0 deletions .opencode/agent/test-no-thinking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
description: Test agent with no thinking.
model: zai-coding-plan/glm-4.7
variant: none
---

You are a test agent for GLM-4.7 with thinking disabled.

Your purpose is to test model variants in this codebase. Keep responses brief and direct.
1 change: 0 additions & 1 deletion .opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// "enterprise": {
// "url": "https://enterprise.dev.opencode.ai",
// },
"instructions": ["STYLE_GUIDE.md"],
"provider": {
"opencode": {
"options": {},
Expand Down
16 changes: 16 additions & 0 deletions .opencode/remember.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Enable or disable the plugin
"enabled": true,
// Where to store memories: "global", "project", or "both"
// - "global": ~/.config/opencode/memory/memories.sqlite (shared across projects)
// - "project": .opencode/memory/memories.sqlite (project-specific)
// - "both": search both, save to project
"scope": "project",
// Memory injection settings
"inject": {
// Number of memories to inject after user messages (default: 5)
"count": 5,
// Score threshold for [important] vs [related] tag (default: 0.6)
"highThreshold": 0.6
}
}
73 changes: 72 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,75 @@
- To test opencode in `packages/opencode`, run `bun dev`.
- To regenerate the JavaScript SDK, run `./packages/sdk/js/script/build.ts`.
- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE.
- The default branch in this repo is `dev`.

## Style Guide

- Keep things in one function unless composable or reusable
- Avoid unnecessary destructuring. Instead of `const { a, b } = obj`, use `obj.a` and `obj.b` to preserve context
- Avoid `try`/`catch` where possible
- Avoid using the `any` type
- Prefer single word variable names where possible
- Use Bun APIs when possible, like `Bun.file()`

# Avoid let statements

We don't like `let` statements, especially combined with if/else statements.
Prefer `const`.

Good:

```ts
const foo = condition ? 1 : 2
```

Bad:

```ts
let foo

if (condition) foo = 1
else foo = 2
```

# Avoid else statements

Prefer early returns or using an `iife` to avoid else statements.

Good:

```ts
function foo() {
if (condition) return 1
return 2
}
```

Bad:

```ts
function foo() {
if (condition) return 1
else return 2
}
```

# Prefer single word naming

Try your best to find a single word name for your variables, functions, etc.
Only use multiple words if you cannot.

Good:

```ts
const foo = 1
const bar = 2
const baz = 3
```

Bad:

```ts
const fooBar = 1
const barBaz = 2
const bazFoo = 3
```
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ This runs `bun run --cwd packages/desktop build` automatically via Tauri’s `be
> [!NOTE]
> If you make changes to the API or SDK (e.g. `packages/opencode/src/server/server.ts`), run `./script/generate.ts` to regenerate the SDK and related files.

Please try to follow the [style guide](./STYLE_GUIDE.md)
Please try to follow the [style guide](./AGENTS.md)

### Setting up a Debugger

Expand Down
1 change: 1 addition & 0 deletions STATS.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,4 @@
| 2026-01-22 | 5,766,340 (+321,498) | 2,029,487 (+66,956) | 7,795,827 (+388,454) |
| 2026-01-23 | 6,096,236 (+329,896) | 2,096,235 (+66,748) | 8,192,471 (+396,644) |
| 2026-01-24 | 6,371,019 (+274,783) | 2,156,870 (+60,635) | 8,527,889 (+335,418) |
| 2026-01-25 | 6,639,082 (+268,063) | 2,187,853 (+30,983) | 8,826,935 (+299,046) |
71 changes: 0 additions & 71 deletions STYLE_GUIDE.md

This file was deleted.

30 changes: 15 additions & 15 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opencode-ai/app",
"version": "1.1.35",
"version": "1.1.36",
"description": "",
"type": "module",
"exports": {
Expand Down
Loading