Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.git
.opencode
.lutungcode
.sst
.turbo
.wrangler
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ body:
required: false

- type: input
id: opencode-version
id: lutungcode-version
attributes:
label: OpenCode version
description: What version of OpenCode are you using?
label: LutungCode version
description: What version of LutungCode are you using?
validations:
required: false

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 💬 Discord Community
url: https://discord.gg/opencode
url: https://discord.gg/lutungcode
about: For support, troubleshooting, how-to questions, and real-time discussion.
12 changes: 6 additions & 6 deletions .github/actions/setup-git-committer/action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: "Setup Git Committer"
description: "Create app token and configure git user"
inputs:
opencode-app-id:
description: "OpenCode GitHub App ID"
lutungcode-app-id:
description: "LutungCode GitHub App ID"
required: true
opencode-app-secret:
description: "OpenCode GitHub App private key"
lutungcode-app-secret:
description: "LutungCode GitHub App private key"
required: true
outputs:
token:
Expand All @@ -21,8 +21,8 @@ runs:
id: apptoken
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
with:
app-id: ${{ inputs.opencode-app-id }}
private-key: ${{ inputs.opencode-app-secret }}
app-id: ${{ inputs.lutungcode-app-id }}
private-key: ${{ inputs.lutungcode-app-secret }}
owner: ${{ github.repository_owner }}

- name: Configure git user
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compliance-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
const now = Date.now();
const seventyTwoHours = 72 * 60 * 60 * 1000;
const orgMemberAssociations = new Set(['OWNER', 'MEMBER']);
const agentLogin = 'opencode-agent[bot]';
const agentLogin = 'lutungcode-agent[bot]';
const { data: file } = await github.rest.repos.getContent({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:

jobs:
deploy:
if: github.repository == 'anomalyco/opencode' && github.ref_name == 'dev'
if: github.repository == vars.LUTUNGCODE_RELEASE_REPOSITORY && github.ref_name == 'dev'
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:

jobs:
deploy:
if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'production')
if: github.repository == vars.LUTUNGCODE_RELEASE_REPOSITORY && (github.ref_name == 'dev' || github.ref_name == 'production')
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-posts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
deploy:
if: github.repository == 'anomalyco/opencode' && github.ref_name == 'production'
if: github.repository == vars.LUTUNGCODE_RELEASE_REPOSITORY && github.ref_name == 'production'
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
deploy:
if: github.repository == 'anomalyco/opencode' && github.ref_name == 'production'
if: github.repository == vars.LUTUNGCODE_RELEASE_REPOSITORY && github.ref_name == 'production'
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-www.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:

jobs:
deploy:
if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'production')
if: github.repository == vars.LUTUNGCODE_RELEASE_REPOSITORY && (github.ref_name == 'dev' || github.ref_name == 'production')
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:

jobs:
deploy:
if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'production' || github.ref_name == 'beta')
if: github.repository == vars.LUTUNGCODE_RELEASE_REPOSITORY && (github.ref_name == 'dev' || github.ref_name == 'production' || github.ref_name == 'beta')
runs-on: blacksmith-4vcpu-ubuntu-2404
environment: ${{ github.ref_name }}
steps:
Expand All @@ -32,7 +32,7 @@ jobs:
if: github.ref_name != 'beta'
with:
role-to-assume: ${{ vars.AWS_DEPLOY_ROLE_ARN }}
role-session-name: opencode-${{ github.run_id }}
role-session-name: lutungcode-${{ github.run_id }}
aws-region: us-east-1

- run: bun sst deploy --stage=${{ github.ref_name }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/docs-locale-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
sync-locales:
if: false
#if: github.actor != 'opencode-agent[bot]'
#if: github.actor != 'lutungcode-agent[bot]'
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: write
Expand All @@ -29,8 +29,8 @@ jobs:
id: committer
uses: ./.github/actions/setup-git-committer
with:
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
lutungcode-app-id: ${{ vars.LUTUNGCODE_APP_ID }}
lutungcode-app-secret: ${{ secrets.LUTUNGCODE_APP_SECRET }}

- name: Compute changed English docs
id: changes
Expand All @@ -48,15 +48,15 @@ jobs:
echo "EOF"
} >> "$GITHUB_OUTPUT"

- name: Install OpenCode
- name: Install LutungCode
if: steps.changes.outputs.has_changes == 'true'
run: curl -fsSL https://opencode.ai/install | bash
run: echo 'LutungCode install URL is not configured' && exit 1

- name: Sync locale docs with OpenCode
- name: Sync locale docs with LutungCode
if: steps.changes.outputs.has_changes == 'true'
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
OPENCODE_CONFIG_CONTENT: |
LUTUNGCODE_API_KEY: ${{ secrets.LUTUNGCODE_API_KEY }}
LUTUNGCODE_CONFIG_CONTENT: |
{
"permission": {
"*": "deny",
Expand All @@ -67,7 +67,7 @@ jobs:
}
}
run: |
opencode run --agent docs --model opencode/gpt-5.3-codex <<'EOF'
lutungcode run --agent docs --model lutungcode/gpt-5.3-codex <<'EOF'
Update localized docs to match the latest English docs changes.

Changed English doc files:
Expand All @@ -77,7 +77,7 @@ jobs:

Requirements:
1. Update all relevant locale docs under packages/web/src/content/docs/<locale>/ so they reflect these English page changes.
2. You MUST use the Task tool for translation work and launch subagents with subagent_type `translator` (defined in .opencode/agent/translator.md).
2. You MUST use the Task tool for translation work and launch subagents with subagent_type `translator` (defined in .lutungcode/agent/translator.md).
3. Do not translate directly in the primary agent. Use translator subagent output as the source for locale text updates.
4. Run translator subagent Task calls in parallel whenever file/locale translation work is independent.
5. Use only the minimum tools needed for this task (read/glob, file edits, and translator Task). Do not use shell, web, search, or GitHub tools for translation work.
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
update-docs:
if: github.repository == 'sst/opencode'
if: github.repository == 'sst/lutungcode'
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
id-token: write
Expand Down Expand Up @@ -41,13 +41,13 @@ jobs:
} >> $GITHUB_OUTPUT
fi

- name: Run opencode
- name: Run lutungcode
if: steps.commits.outputs.has_commits == 'true'
uses: sst/opencode/github@2c14fc5586fe0b88e5c04732d2e846769cc35671 # latest
uses: sst/lutungcode/github@2c14fc5586fe0b88e5c04732d2e846769cc35671 # latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
LUTUNGCODE_API_KEY: ${{ secrets.LUTUNGCODE_API_KEY }}
with:
model: opencode/gpt-5.2
model: lutungcode/gpt-5.2
agent: docs
prompt: |
Review the following commits from the last ${{ env.LOOKBACK_HOURS }} hours and identify any new features that may need documentation.
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/duplicate-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
LOGIN="${{ github.event.issue.user.login }}"
ASSOCIATION="${{ github.event.issue.author_association }}"

if [ "$LOGIN" = "opencode-agent[bot]" ] ||
if [ "$LOGIN" = "lutungcode-agent[bot]" ] ||
[ "$ASSOCIATION" = "OWNER" ] ||
[ "$ASSOCIATION" = "MEMBER" ] ||
grep -qxiF "$LOGIN" .github/TEAM_MEMBERS; then
Expand All @@ -36,16 +36,16 @@ jobs:
- uses: ./.github/actions/setup-bun
if: steps.author.outputs.skip != 'true'

- name: Install opencode
- name: Install lutungcode
if: steps.author.outputs.skip != 'true'
run: curl -fsSL https://opencode.ai/install | bash
run: echo 'LutungCode install URL is not configured' && exit 1

- name: Check duplicates and compliance
if: steps.author.outputs.skip != 'true'
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
LUTUNGCODE_API_KEY: ${{ secrets.LUTUNGCODE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENCODE_PERMISSION: |
LUTUNGCODE_PERMISSION: |
{
"bash": {
"*": "deny",
Expand All @@ -54,7 +54,7 @@ jobs:
"webfetch": "deny"
}
run: |
opencode run -m opencode/claude-sonnet-4-6 "A new issue has been created:
lutungcode run -m lutungcode/claude-sonnet-4-6 "A new issue has been created:

Issue number: ${{ github.event.issue.number }}
Issue author association: ${{ github.event.issue.author_association }}
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
LOGIN="${{ github.event.issue.user.login }}"
ASSOCIATION="${{ github.event.issue.author_association }}"

if [ "$LOGIN" = "opencode-agent[bot]" ] ||
if [ "$LOGIN" = "lutungcode-agent[bot]" ] ||
[ "$ASSOCIATION" = "OWNER" ] ||
[ "$ASSOCIATION" = "MEMBER" ] ||
grep -qxiF "$LOGIN" .github/TEAM_MEMBERS; then
Expand All @@ -170,16 +170,16 @@ jobs:
- uses: ./.github/actions/setup-bun
if: steps.author.outputs.skip != 'true'

- name: Install opencode
- name: Install lutungcode
if: steps.author.outputs.skip != 'true'
run: curl -fsSL https://opencode.ai/install | bash
run: echo 'LutungCode install URL is not configured' && exit 1

- name: Recheck compliance
if: steps.author.outputs.skip != 'true'
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
LUTUNGCODE_API_KEY: ${{ secrets.LUTUNGCODE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENCODE_PERMISSION: |
LUTUNGCODE_PERMISSION: |
{
"bash": {
"*": "deny",
Expand All @@ -188,7 +188,7 @@ jobs:
"webfetch": "deny"
}
run: |
opencode run -m opencode/claude-sonnet-4-6 "Issue #${{ github.event.issue.number }} was previously flagged as non-compliant and has been edited.
lutungcode run -m lutungcode/claude-sonnet-4-6 "Issue #${{ github.event.issue.number }} was previously flagged as non-compliant and has been edited.
Issue author association: ${{ github.event.issue.author_association }}

Lookup this issue with gh issue view ${{ github.event.issue.number }}.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: opencode
name: lutungcode

on:
issue_comment:
Expand All @@ -7,12 +7,12 @@ on:
types: [created]

jobs:
opencode:
lutungcode:
if: |
contains(github.event.comment.body, ' /oc') ||
startsWith(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, ' /opencode') ||
startsWith(github.event.comment.body, '/opencode')
contains(github.event.comment.body, ' /lutungcode') ||
startsWith(github.event.comment.body, '/lutungcode')
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
id-token: write
Expand All @@ -25,10 +25,10 @@ jobs:

- uses: ./.github/actions/setup-bun

- name: Run opencode
uses: anomalyco/opencode/github@2c14fc5586fe0b88e5c04732d2e846769cc35671 # latest
- name: Run lutungcode
uses: ./github
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
OPENCODE_PERMISSION: '{"bash": "deny"}'
LUTUNGCODE_API_KEY: ${{ secrets.LUTUNGCODE_API_KEY }}
LUTUNGCODE_PERMISSION: '{"bash": "deny"}'
with:
model: opencode/claude-opus-4-5
model: lutungcode/claude-opus-4-5
6 changes: 3 additions & 3 deletions .github/workflows/models-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:
refresh:
if: github.repository == 'anomalyco/opencode'
if: github.repository == vars.LUTUNGCODE_RELEASE_REPOSITORY
runs-on: blacksmith-4vcpu-ubuntu-2404

steps:
Expand All @@ -33,8 +33,8 @@ jobs:
- name: Setup git committer
uses: ./.github/actions/setup-git-committer
with:
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
lutungcode-app-id: ${{ vars.LUTUNGCODE_APP_ID }}
lutungcode-app-secret: ${{ secrets.LUTUNGCODE_APP_SECRET }}

- name: Refresh snapshot
run: bun packages/core/script/update-models-snapshot.ts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix-eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
nix flake show --all-systems

SYSTEMS="x86_64-linux aarch64-linux aarch64-darwin"
PACKAGES="opencode"
PACKAGES="lutungcode"
# TODO: move 'desktop' to PACKAGES when #11755 is fixed
OPTIONAL_PACKAGES="desktop"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nix-hashes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ jobs:
- name: Setup git committer
uses: ./.github/actions/setup-git-committer
with:
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
lutungcode-app-id: ${{ vars.LUTUNGCODE_APP_ID }}
lutungcode-app-secret: ${{ secrets.LUTUNGCODE_APP_SECRET }}

- name: Pull latest changes
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: team-check
run: |
LOGIN="${{ github.event.pull_request.user.login }}"
if [ "$LOGIN" = "opencode-agent[bot]" ] || grep -qxF "$LOGIN" .github/TEAM_MEMBERS; then
if [ "$LOGIN" = "lutungcode-agent[bot]" ] || grep -qxF "$LOGIN" .github/TEAM_MEMBERS; then
echo "is_team=true" >> "$GITHUB_OUTPUT"
echo "Skipping: $LOGIN is a team member or bot"
else
Expand All @@ -35,9 +35,9 @@ jobs:
if: steps.team-check.outputs.is_team != 'true'
run: bun install

- name: Install opencode
- name: Install lutungcode
if: steps.team-check.outputs.is_team != 'true'
run: curl -fsSL https://opencode.ai/install | bash
run: echo 'LutungCode install URL is not configured' && exit 1

- name: Build prompt
if: steps.team-check.outputs.is_team != 'true'
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Check for duplicate PRs
if: steps.team-check.outputs.is_team != 'true'
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
LUTUNGCODE_API_KEY: ${{ secrets.LUTUNGCODE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
Expand Down
Loading
Loading