Skip to content

Commit be79e6f

Browse files
committed
improve context engineering part of description
1 parent 21ff05a commit be79e6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ Context engineering is the deliberate practice of selecting, structuring, and de
178178
This package makes context engineering easy by automatically assembling precise context blocks and letting you curate additional context on demand:
179179
- Automatic file and window context: prompts can include the current file and other visible files (`ai-code--get-context-files-string`), so the AI sees related code without manual copying.
180180
- Function or region scoping: most actions capture the current function or active region, keeping requests focused (e.g., `ai-code-code-change`, `ai-code-implement-todo`, `ai-code-ask-question`).
181-
- Manual context curation: `C-c a @` (`ai-code-context-action`) stores file paths, function anchors, or region ranges in a repo-scoped list, which is appended to prompts via `ai-code--format-repo-context-info`.
181+
- Manual context curation: `C-c a @` (`ai-code-context-action`) stores file paths, function anchors, or region ranges in a repo-scoped list, which is appended to prompts via `ai-code--format-repo-context-info`. In a Dired buffer, `C-c a @` (`ai-code-context-action`) can store the marked files or directories as repo context; if nothing is explicitly marked, it falls back to the file or directory at point.
182182
- Optional clipboard context: prefix with `C-u` to append clipboard content to prompts for external snippets or logs.
183183
- @-triggered filepath completion in comments and AI sessions. Type `@` to open a completion list of recent and visible repo files, then select a path to insert.
184+
- Dired-aware prompt context: Dired-based actions such as code change, question asking, and explain can use marked entries or the current entry as prompt context, so the AI receives the exact file or directory targets you selected in the directory view.
184185
- Prompt suffix guardrails: set `ai-code-prompt-suffix` to append persistent constraints to every prompt (when `ai-code-use-prompt-suffix` is non-nil). Example: `(setq ai-code-prompt-suffix "Only use English in code file, but Reply in Simplified Chinese language")`.
185-
- Optional GPTel headline generation: set `ai-code-use-gptel-headline` to auto-generate prompt headings with GPTel.
186186

187187
Example (focused refactor with curated context):
188188
1) In a buffer, run `C-c a @` to add the current function or selected region to stored repo context.

0 commit comments

Comments
 (0)