diff --git a/README.md b/README.md index 87afde2d..c35d5d89 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ $ bun run packages/opencode/src/index.ts It's very similar to Claude Code in terms of capability. Here are the key differences: - 100% open source -- Not coupled to any provider. Although Anthropic is recommended, opencode can be used with OpenAI, Google or even local models. As models evolve the gaps between them will close and pricing will drop so being provider agnostic is important. +- Not coupled to any provider. Although Anthropic is recommended, opencode can be used with OpenAI, Google or even local models. As models evolve the gaps between them will close and pricing will drop so being provider-agnostic is important. - A focus on TUI. opencode is built by neovim users and the creators of [terminal.shop](https://terminal.shop); we are going to push the limits of what's possible in the terminal. - A client/server architecture. This for example can allow opencode to run on your computer, while you can drive it remotely from a mobile app. Meaning that the TUI frontend is just one of the possible clients. diff --git a/packages/opencode/src/session/prompt/beast.txt b/packages/opencode/src/session/prompt/beast.txt index 473f0286..d89fd6e6 100644 --- a/packages/opencode/src/session/prompt/beast.txt +++ b/packages/opencode/src/session/prompt/beast.txt @@ -29,7 +29,7 @@ You MUST use the ToolRead tool to verify that all steps are complete or cancelle You are a highly capable and autonomous agent, and you can definitely solve this problem without needing to ask the user for further input. # Workflow -1. Fetch any URL's provided by the user using the `webfetch` tool. +1. Fetch any URL provided by the user using the `webfetch` tool. 2. Understand the problem deeply. Carefully read the issue and think critically about what is required. Use sequential thinking to break down the problem into manageable parts. Consider the following: - What is the expected behavior? - What are the edge cases? @@ -84,7 +84,7 @@ Carefully read the issue and think hard about a plan to solve it before coding. - When using the edit tool, include 3-5 lines of unchanged code before and after the string you want to replace, to make it unambiguous which part of the file should be edited. - If a patch or edit is not applied correctly, attempt to reapply it. - Always validate that your changes build and pass tests after each change. -- If the build fails or test fail, debug why before proceeding, update the plan as needed. +- If the build fails or tests fail, debug why before proceeding, update the plan as needed. ## 7. Debugging - Use the `lsp_diagnostics` tool to check for any problems in the code. diff --git a/packages/opencode/src/session/prompt/plan.txt b/packages/opencode/src/session/prompt/plan.txt index fffbfffc..f0e02d26 100644 --- a/packages/opencode/src/session/prompt/plan.txt +++ b/packages/opencode/src/session/prompt/plan.txt @@ -1,3 +1,3 @@ -Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supercedes any other instructions you have received (for example, to make edits). +Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supersedes any other instructions you have received (for example, to make edits). diff --git a/packages/opencode/src/session/prompt/title.txt b/packages/opencode/src/session/prompt/title.txt index ac82d60a..6de65d2b 100644 --- a/packages/opencode/src/session/prompt/title.txt +++ b/packages/opencode/src/session/prompt/title.txt @@ -10,7 +10,7 @@ You are generating titles for a coding assistant conversation. - Max 50 chars, single line - Focus on the specific action or question - Keep technical terms, numbers, and filenames exactly as written -- Preserve HTTP status codes (401, 404, 500, etc) as numbers +- Preserve HTTP status codes (401, 404, 500, etc.) as numbers - For file references, include the filename - Avoid filler words: the, this, my, a, an, properly - NEVER assume their tech stack or domain diff --git a/packages/tui/input/key_test.go b/packages/tui/input/key_test.go index 9bf4d9a5..b09f2f85 100644 --- a/packages/tui/input/key_test.go +++ b/packages/tui/input/key_test.go @@ -777,7 +777,7 @@ var seed = flag.Int64("seed", 0, "random seed (0 to autoselect)") // the seed flag was set. func genRandomData(logfn func(int64), length int) randTest { // We'll use a random source. However, we give the user the option - // to override it to a specific value for reproduceability. + // to override it to a specific value for reproducibility. s := *seed if s == 0 { s = time.Now().UnixNano() diff --git a/packages/tui/input/table.go b/packages/tui/input/table.go index d2373236..7e81fde3 100644 --- a/packages/tui/input/table.go +++ b/packages/tui/input/table.go @@ -206,7 +206,7 @@ func buildKeysTable(flags int, term string) map[string]Key { table["\x1bOc"] = Key{Code: KeyRight, Mod: ModCtrl} table["\x1bOd"] = Key{Code: KeyLeft, Mod: ModCtrl} //nolint:godox - // TODO: invistigate if shift-ctrl arrow keys collide with DECCKM keys i.e. + // TODO: investigate if shift-ctrl arrow keys collide with DECCKM keys i.e. // "\x1bOA", "\x1bOB", "\x1bOC", "\x1bOD" // URxvt modifier CSI ~ keys diff --git a/packages/tui/internal/clipboard/clipboard_windows.go b/packages/tui/internal/clipboard/clipboard_windows.go index bd042cda..09fc1416 100644 --- a/packages/tui/internal/clipboard/clipboard_windows.go +++ b/packages/tui/internal/clipboard/clipboard_windows.go @@ -311,13 +311,13 @@ func read(t Format) (buf []byte, err error) { format = cFmtUnicodeText } - // check if clipboard is avaliable for the requested format + // check if clipboard is available for the requested format r, _, err := isClipboardFormatAvailable.Call(format) if r == 0 { return nil, errUnavailable } - // try again until open clipboard successed + // try again until open clipboard succeeds for { r, _, _ = openClipboard.Call() if r == 0 { diff --git a/packages/tui/internal/viewport/viewport.go b/packages/tui/internal/viewport/viewport.go index 59fbe456..10c875fa 100644 --- a/packages/tui/internal/viewport/viewport.go +++ b/packages/tui/internal/viewport/viewport.go @@ -270,7 +270,7 @@ func (m Model) GetContent() string { return strings.Join(m.lines, "\n") } -// calculateLine taking soft wraping into account, returns the total viewable +// calculateLine taking soft wrapping into account, returns the total viewable // lines and the real-line index for the given yoffset. func (m Model) calculateLine(yoffset int) (total, idx int) { if !m.SoftWrap {