You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 958e2d1
Browse filesBrowse the repository at this point in the historyBrowse files
Generate diff markdown for agentic CLI edit-file runs instead of prompting for edit format
- the 'edit files' cli prompt should not have 'output formatting' instructions, instead it should edit files (in the temp directory) by itself and afterwards, the system should scan the temp dir and compile markdown text adhering to our EDIT_FORMAT_INSTRUCTIONS_DIFF
- in 'edit files', agent sometimes output also some text to the user - is it captured an dincluded as plain text on top of the diff markdown?
- when including plain text [Pasted text], strip markdown links
- diff markdown-constructing logic should be extracted to a local util
- as we replace markdown links, wrap resulting text in backticks
- agent sometimes repeat changes to the user, e.g. [Pasted text] - in such case we're only interested in "[Pasted text]"
└── apps
└── editor
└── src
├── constants
│ ├── edit-format-instructions.ts
│ └── instructions.ts
├── utils
│ └── agentic-cli-invocation
│ ├── agents
│ │ ├── antigravity.ts
│ │ ├── claude.ts
│ │ ├── codex.ts
│ │ ├── cursor.ts
│ │ ├── grok.ts
│ │ ├── index.ts
│ │ ├── muse.ts
│ │ └── opencode.ts
│ ├── index.ts
│ ├── invoke-agentic-cli.ts
│ ├── types.ts
│ └── utils
│ ├── check-command-exists.ts
│ ├── format-duration.ts
│ ├── generate-diff-markdown.ts
│ └── get-progress-dots.ts
└── views
└── prompt
└── backend
└── message-handlers
├── handle-invoke-agentic-cli.ts
└── utils
└── build-cli-prompt.ts
Copy file name to clipboardExpand all lines: apps/editor/src/constants/instructions.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -69,11 +69,11 @@ These files contain the core greeting logic and module exports.`
69
69
exportconstvoice_input_instructions=
70
70
'Respond with a transcription of the following audio recording or text "INAUDIBLE", and nothing else.'
71
71
72
-
exportconstcli_requirements={
72
+
exportconstcli_edit_ask_requirements={
73
73
preloaded_files:
74
-
'Tool calling is disabled with exception to media/web access in [task](#task).',
74
+
'All files necessary for [the task](#task) are listed in [files](#files).',
75
75
referenced_files_with_some_preloaded:
76
-
'Tool calling is disabled with exception to reading large files provided as project-relative paths in [files](#files) and media/web access in [task](#task). You must begin by reading large files listed in [files](#files) in full.',
76
+
'Before you proceed with [the task](#task), you must read all \'large files\' listed as project-relative paths in [files](#files), and nothing else.',
77
77
referenced_files_only:
78
-
'Tool calling is disabled with exception to reading files provided as project-relative paths in [files](#files) and media/web access in [task](#task). You must begin by reading files listed in [files](#files) in full.'
78
+
'Before you proceed with [the task](#task), you must read all files provided as project-relative paths in [files](#files), and nothing else.'
0 commit comments