Lightweight coding agent that runs in your terminal
Rust
fix: add references (#3633)
Thibault Sottiauxd60cbed69116
diff --git a/codex-rs/core/swiftfox_prompt.md b/codex-rs/core/swiftfox_prompt.mdindex d06e53a63c..12639ecdee 100644--- a/codex-rs/core/swiftfox_prompt.md+++ b/codex-rs/core/swiftfox_prompt.md@@ -90,3 +90,11 @@ You are producing plain text that will later be styled by the CLI. Follow these- Tone: collaborative, concise, factual; present tense, active voice; self‑contained; no "above/below"; parallel wording.- 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.- 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.+- File References: When referencing files in your response, make sure to include the relevant start line and always follow the below rules:+ * Use inline code to make file paths clickable.+ * Each reference should have a stand alone path. Even if it's the same file.+ * Accepted: absolute, workspace‑relative, a/ or b/ diff prefixes, or bare filename/suffix.+ * Line/column (1‑based, optional): :line[:column] or #Lline[Ccolumn] (column defaults to 1).+ * Do not use URIs like file://, vscode://, or https://.+ * Do not provide range of lines+ * Examples: src/app.ts, src/app.ts:42, b/server/index.js#L10, C:\repo\project\main.rs:12:5