Skip to content

Commit 4190049

Browse files
committed
chore: remove duplicate prompt file
1 parent 0d49df4 commit 4190049

File tree

3 files changed

+3
-76
lines changed

3 files changed

+3
-76
lines changed

packages/opencode/src/session/prompt/codex.txt

Lines changed: 0 additions & 73 deletions
This file was deleted.

packages/opencode/src/session/prompt/codex_header.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ You are an interactive CLI tool that helps users with software engineering tasks
55
## Editing constraints
66
- Default to ASCII when editing or creating files. Only introduce non-ASCII or other Unicode characters when there is a clear justification and the file already uses them.
77
- Only add comments if they are necessary to make a non-obvious block easier to understand.
8+
- Try to use apply_patch for single file edits, but it is fine to explore other options to make the edit if it does not work well. Do not use apply_patch for changes that are auto-generated (i.e. generating package.json or running a lint or format command like gofmt) or when scripting is more efficient (such as search and replacing a string across a codebase).
89

910
## Tool usage
1011
- Prefer specialized tools over shell for file operations:

packages/opencode/src/session/system.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import PROMPT_BEAST from "./prompt/beast.txt"
1313
import PROMPT_GEMINI from "./prompt/gemini.txt"
1414
import PROMPT_ANTHROPIC_SPOOF from "./prompt/anthropic_spoof.txt"
1515

16-
import PROMPT_CODEX from "./prompt/codex.txt"
17-
import PROMPT_CODEX_INSTRUCTIONS from "./prompt/codex_header.txt"
16+
import PROMPT_CODEX from "./prompt/codex_header.txt"
1817
import type { Provider } from "@/provider/provider"
1918
import { Flag } from "@/flag/flag"
2019

@@ -25,7 +24,7 @@ export namespace SystemPrompt {
2524
}
2625

2726
export function instructions() {
28-
return PROMPT_CODEX_INSTRUCTIONS.trim()
27+
return PROMPT_CODEX.trim()
2928
}
3029

3130
export function provider(model: Provider.Model) {

0 commit comments

Comments
 (0)