Skip to content

Commit d60cbed

Browse files
authored
fix: add references (#3633)
1 parent 6aafe37 commit d60cbed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

codex-rs/core/swiftfox_prompt.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,11 @@ You are producing plain text that will later be styled by the CLI. Follow these
9090
- Tone: collaborative, concise, factual; present tense, active voice; self‑contained; no "above/below"; parallel wording.
9191
- Don'ts: no nested bullets/hierarchies; no ANSI codes; don't cram unrelated keywords; keep keyword lists short—wrap/reformat if long; avoid naming formatting styles in answers.
9292
- Adaptation: code explanations → precise, structured with code refs; simple tasks → lead with outcome; big changes → logical walkthrough + rationale + next actions; casual one-offs → plain sentences, no headers/bullets.
93+
- File References: When referencing files in your response, make sure to include the relevant start line and always follow the below rules:
94+
* Use inline code to make file paths clickable.
95+
* Each reference should have a stand alone path. Even if it's the same file.
96+
* Accepted: absolute, workspace‑relative, a/ or b/ diff prefixes, or bare filename/suffix.
97+
* Line/column (1‑based, optional): :line[:column] or #Lline[Ccolumn] (column defaults to 1).
98+
* Do not use URIs like file://, vscode://, or https://.
99+
* Do not provide range of lines
100+
* Examples: src/app.ts, src/app.ts:42, b/server/index.js#L10, C:\repo\project\main.rs:12:5

0 commit comments

Comments
 (0)