summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSaatvik Arya <[email protected]>2026-01-04 08:26:47 +0530
committerGitHub <[email protected]>2026-01-03 20:56:47 -0600
commit74d0d2b9421e8317617145e06d281e6e921c066a (patch)
treee322320bd4257f8d960b40a83ea94d0293002f40
parent235837d2d9d44d8cac61deaf7625c5d706746e3f (diff)
downloadopencode-74d0d2b9421e8317617145e06d281e6e921c066a.tar.gz
opencode-74d0d2b9421e8317617145e06d281e6e921c066a.zip
docs: update AGENTS.md (#6800)
-rw-r--r--packages/app/AGENTS.md3
-rw-r--r--packages/opencode/AGENTS.md4
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/app/AGENTS.md b/packages/app/AGENTS.md
index ca19456fe..9c3bb1b4b 100644
--- a/packages/app/AGENTS.md
+++ b/packages/app/AGENTS.md
@@ -1,9 +1,10 @@
## Debugging
-- To test the opencode app, use the playwrite mcp server, the app is already
+- To test the opencode app, use the playwright MCP server, the app is already
running at http://localhost:3000
- NEVER try to restart the app, or the server process, EVER.
+
## SolidJS
- Always prefer `createStore` over multiple `createSignal` calls
diff --git a/packages/opencode/AGENTS.md b/packages/opencode/AGENTS.md
index 287cbc265..a68fd7f3e 100644
--- a/packages/opencode/AGENTS.md
+++ b/packages/opencode/AGENTS.md
@@ -3,7 +3,7 @@
## Build/Test Commands
- **Install**: `bun install`
-- **Run**: `bun run index.ts`
+- **Run**: `bun run --conditions=browser ./src/index.ts`
- **Typecheck**: `bun run typecheck` (npm run typecheck)
- **Test**: `bun test` (runs all tests)
- **Single test**: `bun test test/tool/tool.test.ts` (specific test file)
@@ -24,4 +24,4 @@
- **Validation**: All inputs validated with Zod schemas
- **Logging**: Use `Log.create({ service: "name" })` pattern
- **Storage**: Use `Storage` namespace for persistence
-- **API Client**: Go TUI communicates with TypeScript server via stainless SDK. When adding/modifying server endpoints in `packages/opencode/src/server/server.ts`, ask the user to generate a new client SDK to proceed with client-side changes.
+- **API Client**: The TypeScript TUI (built with SolidJS + OpenTUI) communicates with the OpenCode server using `@opencode-ai/sdk`. When adding/modifying server endpoints in `packages/opencode/src/server/server.ts`, run `./script/generate.ts` to regenerate the SDK and related files.