From a6bd460cebc937983c50458879cec9eab09895a5 Mon Sep 17 00:00:00 2001 From: Saatvik Arya Date: Sun, 4 Jan 2026 08:14:40 +0530 Subject: [PATCH 1/2] docs: update AGENTS.md with new build commands and clarify API client communication --- packages/opencode/AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/AGENTS.md b/packages/opencode/AGENTS.md index 287cbc26580..dad1d79b609 100644 --- a/packages/opencode/AGENTS.md +++ b/packages/opencode/AGENTS.md @@ -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. From 9ef0b5c31df83ea68959d4844bd7c4991f7a46e4 Mon Sep 17 00:00:00 2001 From: Saatvik Arya Date: Sun, 4 Jan 2026 08:17:46 +0530 Subject: [PATCH 2/2] docs: correct spelling and enhance AGENTS.md with additional build and utility commands --- packages/app/AGENTS.md | 3 ++- packages/opencode/AGENTS.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/app/AGENTS.md b/packages/app/AGENTS.md index ca19456fec6..9c3bb1b4b66 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 dad1d79b609..a68fd7f3e32 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)