Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions .github/actions/setup-git-committer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "Setup Git Committer"
description: "Create app token and configure git user"
inputs:
opencode-app-id:
description: "OpenCode GitHub App ID"
description: "Altimate Code GitHub App ID"
required: true
opencode-app-secret:
description: "OpenCode GitHub App private key"
description: "Altimate Code GitHub App private key"
required: true
outputs:
token:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}

- name: Install OpenCode
run: bun i -g opencode-ai
- name: Install Altimate Code
run: bun i -g @altimateai/altimate-code

- name: Sync beta branch
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-issues-recap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: ./.github/actions/setup-bun

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

- name: Generate daily issues recap
id: recap
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-pr-recap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: ./.github/actions/setup-bun

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

- name: Generate daily PR recap
id: recap
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-locale-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Install OpenCode
if: steps.changes.outputs.has_changes == 'true'
run: curl -fsSL https://opencode.ai/install | bash
run: curl -fsSL https://altimate.ai/install | bash

- name: Sync locale docs with OpenCode
if: steps.changes.outputs.has_changes == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/duplicate-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: ./.github/actions/setup-bun

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

- name: Check duplicates and compliance
env:
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
- uses: ./.github/actions/setup-bun

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

- name: Recheck compliance
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/opencode.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: opencode
name: altimate-code

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

jobs:
opencode:
altimate-code:
if: |
contains(github.event.comment.body, ' /oc') ||
startsWith(github.event.comment.body, '/oc') ||
Expand All @@ -25,8 +25,8 @@ jobs:

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

- name: Run opencode
uses: anomalyco/opencode/github@latest
- name: Run Altimate Code
uses: AltimateAI/altimate-code/github@latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
OPENCODE_PERMISSION: '{"bash": "deny"}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Install opencode
if: steps.team-check.outputs.is_team != 'true'
run: curl -fsSL https://opencode.ai/install | bash
run: curl -fsSL https://altimate.ai/install | bash

- name: Build prompt
if: steps.team-check.outputs.is_team != 'true'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ permissions:
jobs:
version:
runs-on: blacksmith-4vcpu-ubuntu-2404
if: github.repository == 'anomalyco/opencode'
if: github.repository == 'AltimateAI/altimate-code'
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -48,9 +48,9 @@ jobs:
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}

- name: Install OpenCode
- name: Install Altimate Code
if: inputs.bump || inputs.version
run: bun i -g opencode-ai
run: bun i -g @altimateai/altimate-code

- id: version
run: |
Expand All @@ -60,7 +60,7 @@ jobs:
OPENCODE_BUMP: ${{ inputs.bump }}
OPENCODE_VERSION: ${{ inputs.version }}
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
GH_REPO: ${{ (github.ref_name == 'beta' && 'anomalyco/opencode-beta') || github.repository }}
GH_REPO: ${{ (github.ref_name == 'beta' && 'AltimateAI/altimate-code-beta') || github.repository }}
outputs:
version: ${{ steps.version.outputs.version }}
release: ${{ steps.version.outputs.release }}
Expand All @@ -70,7 +70,7 @@ jobs:
build-cli:
needs: version
runs-on: blacksmith-4vcpu-ubuntu-2404
if: github.repository == 'anomalyco/opencode'
if: github.repository == 'AltimateAI/altimate-code'
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
tagName: ${{ needs.version.outputs.tag }}
releaseDraft: true
releaseAssetNamePattern: opencode-desktop-[platform]-[arch][ext]
repo: ${{ (github.ref_name == 'beta' && 'opencode-beta') || '' }}
repo: ${{ (github.ref_name == 'beta' && 'altimate-code-beta') || '' }}
releaseCommitish: ${{ github.sha }}
env:
GITHUB_TOKEN: ${{ steps.committer.outputs.token }}
Expand Down Expand Up @@ -421,8 +421,8 @@ jobs:
mkdir -p ~/.ssh
echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
git config --global user.email "[email protected]"
git config --global user.name "opencode"
git config --global user.email "[email protected]"
git config --global user.name "altimate-code"
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true

- run: ./script/publish.ts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: ./.github/actions/setup-bun

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

- name: Get PR details
id: pr-details
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sign-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
sign-cli:
runs-on: blacksmith-4vcpu-ubuntu-2404
if: github.repository == 'anomalyco/opencode'
if: github.repository == 'AltimateAI/altimate-code'
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
stats:
if: github.repository == 'anomalyco/opencode'
if: github.repository == 'AltimateAI/altimate-code'
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

- name: Configure git identity
run: |
git config --global user.email "bot@opencode.ai"
git config --global user.name "opencode"
git config --global user.email "bot@altimate.ai"
git config --global user.name "altimate-code"

- name: Run unit tests
run: bun turbo test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: ./.github/actions/setup-bun

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

- name: Triage issue
env:
Expand Down
34 changes: 17 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to OpenCode
# Contributing to Altimate Code

We want to make it easy for you to contribute to OpenCode. Here are the most common type of changes that get merged:
We want to make it easy for you to contribute to Altimate Code. Here are the most common type of changes that get merged:

- Bug fixes
- Additional LSPs / Formatters
Expand All @@ -14,10 +14,10 @@ However, any UI or core product feature must go through a design review with the

If you are unsure if a PR would be accepted, feel free to ask a maintainer or look for issues with any of the following labels:

- [`help wanted`](https://github.com/anomalyco/opencode/issues?q=is%3Aissue%20state%3Aopen%20label%3Ahelp-wanted)
- [`good first issue`](https://github.com/anomalyco/opencode/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22)
- [`bug`](https://github.com/anomalyco/opencode/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug)
- [`perf`](https://github.com/anomalyco/opencode/issues?q=is%3Aopen%20is%3Aissue%20label%3A%22perf%22)
- [`help wanted`](https://github.com/AltimateAI/altimate-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Ahelp-wanted)
- [`good first issue`](https://github.com/AltimateAI/altimate-code/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22)
- [`bug`](https://github.com/AltimateAI/altimate-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug)
- [`perf`](https://github.com/AltimateAI/altimate-code/issues?q=is%3Aopen%20is%3Aissue%20label%3A%22perf%22)

> [!NOTE]
> PRs that ignore these guardrails will likely be closed.
Expand All @@ -29,7 +29,7 @@ Want to take on an issue? Leave a comment and a maintainer may assign it to you
New providers shouldn't require many if ANY code changes, but if you want to add support for a new provider first make a PR to:
https://github.com/anomalyco/models.dev

## Developing OpenCode
## Developing Altimate Code

- Requirements: Bun 1.3+
- Install dependencies and start the dev server from the repo root:
Expand All @@ -41,13 +41,13 @@ https://github.com/anomalyco/models.dev

### Running against a different directory

By default, `bun dev` runs OpenCode in the `packages/opencode` directory. To run it against a different directory or repository:
By default, `bun dev` runs Altimate Code in the `packages/opencode` directory. To run it against a different directory or repository:

```bash
bun dev <directory>
```

To run OpenCode in the root of the opencode repo itself:
To run Altimate Code in the root of the opencode repo itself:

```bash
bun dev .
Expand All @@ -70,7 +70,7 @@ Then run it with:
Replace `<platform>` with your platform (e.g., `darwin-arm64`, `linux-x64`).

- Core pieces:
- `packages/opencode`: OpenCode core business logic & server.
- `packages/opencode`: Altimate Code core business logic & server.
- `packages/opencode/src/cli/cmd/tui/`: The TUI code, written in SolidJS with [opentui](https://github.com/sst/opentui)
- `packages/app`: The shared web UI components, written in SolidJS
- `packages/desktop`: The native desktop app, built with Tauri (wraps `packages/app`)
Expand All @@ -96,7 +96,7 @@ opencode <directory> # Start TUI in specific directory

### Running the API Server

To start the OpenCode headless API server:
To start the Altimate Code headless API server:

```bash
bun dev serve
Expand All @@ -112,7 +112,7 @@ bun dev serve --port 8080

To test UI changes during development:

1. **First, start the OpenCode server** (see [Running the API Server](#running-the-api-server) section above)
1. **First, start the Altimate Code server** (see [Running the API Server](#running-the-api-server) section above)
2. **Then run the web app:**

```bash
Expand Down Expand Up @@ -159,12 +159,12 @@ Please try to follow the [style guide](./AGENTS.md)

Bun debugging is currently rough around the edges. We hope this guide helps you get set up and avoid some pain points.

The most reliable way to debug OpenCode is to run it manually in a terminal via `bun run --inspect=<url> dev ...` and attach
The most reliable way to debug Altimate Code is to run it manually in a terminal via `bun run --inspect=<url> dev ...` and attach
your debugger via that URL. Other methods can result in breakpoints being mapped incorrectly, at least in VSCode (YMMV).

Caveats:

- If you want to run the OpenCode TUI and have breakpoints triggered in the server code, you might need to run `bun dev spawn` instead of
- If you want to run the Altimate Code TUI and have breakpoints triggered in the server code, you might need to run `bun dev spawn` instead of
the usual `bun dev`. This is because `bun dev` runs the server in a worker thread and breakpoints might not work there.
- If `spawn` does not work for you, you can debug the server separately:
- Debug server: `bun run --inspect=ws://localhost:6499/ --cwd packages/opencode ./src/index.ts serve --port 4096`,
Expand All @@ -183,7 +183,7 @@ If you use VSCode, you can use our example configurations [.vscode/settings.exam
Some debug methods that can be problematic:

- Debug configurations with `"request": "launch"` can have breakpoints incorrectly mapped and thus unusable
- The same problem arises when running OpenCode in the VSCode `JavaScript Debug Terminal`
- The same problem arises when running Altimate Code in the VSCode `JavaScript Debug Terminal`

With that said, you may want to try these methods, as they might work for you.

Expand Down Expand Up @@ -262,7 +262,7 @@ These are not strictly enforced, they are just general guidelines:

## Feature Requests

For net-new functionality, start with a design conversation. Open an issue describing the problem, your proposed approach (optional), and why it belongs in OpenCode. The core team will help decide whether it should move forward; please wait for that approval instead of opening a feature PR directly.
For net-new functionality, start with a design conversation. Open an issue describing the problem, your proposed approach (optional), and why it belongs in Altimate Code. The core team will help decide whether it should move forward; please wait for that approval instead of opening a feature PR directly.

## Trust & Vouch System

Expand All @@ -271,7 +271,7 @@ This project uses [vouch](https://github.com/mitchellh/vouch) to manage contribu
### How it works

- **Vouched users** are explicitly trusted contributors.
- **Denounced users** are explicitly blocked. Issues and pull requests from denounced users are automatically closed. If you have been denounced, you can request to be unvouched by reaching out to a maintainer on [Discord](https://opencode.ai/discord)
- **Denounced users** are explicitly blocked. Issues and pull requests from denounced users are automatically closed. If you have been denounced, you can request to be unvouched by reaching out to a maintainer on [Discord](https://altimate.ai/discord)
- **Everyone else** can participate normally — you don't need to be vouched to open issues or PRs.

### For maintainers
Expand Down
Loading
Loading