Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f1138b9
ignore: update download stats 2025-12-03
actions-user Dec 3, 2025
5b34636
ignore: docs & style
rekram1-node Dec 3, 2025
0eb9708
chore: format code
actions-user Dec 3, 2025
91db82c
add retry case for grok resource exhausted
rekram1-node Dec 3, 2025
0bccd1d
feat: experimental.primary_tools, allow user to set the tools that sh…
spoons-and-mirrors Dec 3, 2025
c5b4cc8
fix: bunfs path on windows (#5011)
Hona Dec 3, 2025
921b980
feat: add messages_last_user command to scroll TUI to last user messa…
ariane-emory Dec 3, 2025
c3c9003
ci: add pr review
rekram1-node Dec 3, 2025
3181c68
ci: make review only fire on non draft pr creation
rekram1-node Dec 3, 2025
e5b13b7
zen: usage graph respect light/dark mode
Dec 3, 2025
8898bf7
ci: tweak review cmd
rekram1-node Dec 3, 2025
70f4722
ci: review ready for review action
rekram1-node Dec 3, 2025
c00d488
feat: add tool_details keybind w/ no default (#4976)
ariane-emory Dec 3, 2025
f00380d
ci: review tweak
rekram1-node Dec 3, 2025
7a4aa68
zen: fix chart loading
Dec 3, 2025
ee4437f
core: add provider test coverage for upcoming refactor
thdxr Dec 3, 2025
6d3fc63
core: refactor provider and model system (#5033)
thdxr Dec 4, 2025
e8c9b21
bump opentui
rekram1-node Dec 4, 2025
38bff1b
Update Nix flake.lock and hashes
actions-user Dec 4, 2025
598d63d
fix: dax typo
rekram1-node Dec 4, 2025
f33f8ca
fix: compaction type issue
rekram1-node Dec 4, 2025
32b5db7
fix: provider id issue
rekram1-node Dec 4, 2025
88cfb97
ci: add note about iife
rekram1-node Dec 4, 2025
4bc3fa0
docs: remove outdated theme section as system theme is now added back…
jackbisceglia Dec 4, 2025
46790e5
feat: Enhance DeepSeek reasoning content handling (#4975)
matjanos Dec 4, 2025
dcfeb52
release: v1.0.130
Dec 4, 2025
55c7d3f
sync: merge upstream v1.0.130 into integration
opencode-agent[bot] Dec 4, 2025
43d2cc4
sync: record last synced tag v1.0.130
opencode-agent[bot] Dec 4, 2025
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
57 changes: 0 additions & 57 deletions .github/guidelines-check.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/last-synced-tag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.129
v1.0.130
93 changes: 93 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Guidelines Check

on:
pull_request_target:
types: [opened, ready_for_review]
issue_comment:
types: [created]

jobs:
check-guidelines:
if: |
(github.event_name == 'pull_request_target' &&
github.event.pull_request.draft == false) ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/review'))
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Check if user has write permission
if: github.event_name == 'issue_comment'
run: |
PERMISSION=$(gh api /repos/${{ github.repository }}/collaborators/${{ github.event.comment.user.login }}/permission --jq '.permission')
if [[ "$PERMISSION" != "write" && "$PERMISSION" != "admin" ]]; then
echo "User does not have write permission"
exit 1
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get PR number
id: pr-number
run: |
if [ "${{ github.event_name }}" = "pull_request_target" ]; then
echo "number=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
else
echo "number=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
fi

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Install opencode
run: curl -fsSL https://opencode.ai/install | bash

- name: Get PR details
id: pr-details
run: |
gh api /repos/${{ github.repository }}/pulls/${{ steps.pr-number.outputs.number }} > pr_data.json
echo "title=$(jq -r .title pr_data.json)" >> $GITHUB_OUTPUT
echo "sha=$(jq -r .head.sha pr_data.json)" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check PR guidelines compliance
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENCODE_PERMISSION: '{ "bash": { "gh*": "allow", "gh pr review*": "deny", "*": "deny" } }'
run: |
PR_BODY=$(jq -r .body pr_data.json)
opencode run -m anthropic/claude-sonnet-4-5 "A new pull request has been created: '${{ steps.pr-details.outputs.title }}'

<pr-number>
${{ steps.pr-number.outputs.number }}
</pr-number>

<pr-description>
$PR_BODY
</pr-description>

Please check all the code changes in this pull request against the style guide, also look for any bugs if they exist. Diffs are important but make sure you read the entire file to get proper context. Make it clear the suggestions are merely suggestions and the human can decide what to do

When critiquing code against the style guide, be sure that the code is ACTUALLY in violation, don't complain about else statements if they already use early returns there. You may complain about excessive nesting though, regardless of else statement usage.
When critiquing code style don't be a zealot, we don't like "let" statements but sometimes they are the simpliest option, if someone does a bunch of nesting with let, they should consider using iife (see packages/opencode/src/util.iife.ts)

Use the gh cli to create comments on the files for the violations. Try to leave the comment on the exact line number. If you have a suggested fix include it in a suggestion code block.

Command MUST be like this.
\`\`\`
gh api \
--method POST \
-H \"Accept: application/vnd.github+json\" \
-H \"X-GitHub-Api-Version: 2022-11-28\" \
/repos/${{ github.repository }}/pulls/${{ steps.pr-number.outputs.number }}/comments \
-f 'body=[summary of issue]' -f 'commit_id=${{ steps.pr-details.outputs.sha }}' -f 'path=[path-to-file]' -F \"line=[line]\" -f 'side=RIGHT'
\`\`\`

Only create comments for actual violations. If the code follows all guidelines, don't run any gh commands."
1 change: 1 addition & 0 deletions .opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// "enterprise": {
// "url": "https://enterprise.dev.opencode.ai",
// },
"instructions": ["STYLE_GUIDE.md"],
"provider": {
"opencode": {
"options": {
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Want to take on an issue? Leave a comment and a maintainer may assign it to you
> [!NOTE]
> After touching `packages/opencode/src/server/server.ts`, run "./packages/sdk/js/script/build.ts" to regenerate the JS sdk.

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

### Setting up a Debugger

Bun debugging is currently rough around the edges. We hope this guide helps you get set up and avoid some pain points.
Expand Down
1 change: 1 addition & 0 deletions STATS.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,4 @@
| 2025-11-30 | 916,116 (+7,427) | 870,194 (+6,833) | 1,786,310 (+14,260) |
| 2025-12-01 | 925,898 (+9,782) | 876,500 (+6,306) | 1,802,398 (+16,088) |
| 2025-12-02 | 939,250 (+13,352) | 890,919 (+14,419) | 1,830,169 (+27,771) |
| 2025-12-03 | 952,249 (+12,999) | 903,713 (+12,794) | 1,855,962 (+25,793) |
12 changes: 12 additions & 0 deletions STYLE_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Style Guide

- Try to keep things in one function unless composable or reusable
- DO NOT do unnecessary destructuring of variables
- DO NOT use `else` statements unless necessary
- DO NOT use `try`/`catch` if it can be avoided
- AVOID `try`/`catch` where possible
- AVOID `else` statements
- AVOID using `any` type
- AVOID `let` statements
- PREFER single word variable names where possible
- Use as many bun apis as possible like Bun.file()
50 changes: 25 additions & 25 deletions bun.lock

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

6 changes: 3 additions & 3 deletions flake.lock

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

2 changes: 1 addition & 1 deletion nix/hashes.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"nodeModules": "sha256-QhqAa47P3Y2aoMGnr8l1nLq0EQb4qEm75dGfNjyzbpU="
"nodeModules": "sha256-ZGKC7h4ScHDzVYj8qb1lN/weZhyZivPS8kpNAZvgO0I="
}
2 changes: 1 addition & 1 deletion packages/console/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opencode-ai/console-app",
"version": "1.0.129",
"version": "1.0.130",
"type": "module",
"scripts": {
"typecheck": "tsgo --noEmit",
Expand Down
Loading
Loading