Skip to content
Open
Changes from all 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
49 changes: 49 additions & 0 deletions OPENCODE_BOT_TEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# OpenCode Bot Testing Guide

This file is for testing the OpenCode GitHub bot integration.

## Overview

The `opencode.yml` workflow integrates [OpenCode](https://opencode.ai) with our
GitHub workflow. It uses the Kimi Code Plan (`kimi-for-coding` provider) as the
LLM backend.

## Triggers

| Event | Trigger | Use Case |
|-------|---------|----------|
| `pull_request` | Auto on PR open/sync/reopen | Automated code review |
| `issue_comment` | `/oc` or `/opencode` in comment | Manual task on issue/PR |
| `pull_request_review_comment` | `/oc` on PR diff line | Targeted code feedback |

## Model

- **Provider**: `kimi-for-coding`
- **Model**: `kimi-for-coding` (maps to Kimi K2.7 Code)
- **Context**: 256K (Andante tier)

## Usage Examples

### Auto Review

Open a PR targeting `develop/agentic`. The bot reviews automatically.

### Manual Fix

Comment on any issue or PR:

```
/oc fix the typo in the README
```

### Inline Code Review

In the PR "Files changed" tab, comment on a specific line:

```
/oc add error handling here
```

## Notes

This file is a test artifact. Remove or keep as documentation.
Loading