
正在用 Trae 写代码,莫名其妙看 agent 对话框里提示词模板居然被显示出来了,分享出来。
Human: <relevant_contexts> <relevant_workspace_contexts> Here are some relevant contexts in user's workspace for your reference.
<relevant_code_and_folders> Relevant Code Snippets and Project Structure from Workspace.
Folder /Users/user/Developer/project/
// Directory tree (3 levels, limited to 200 entries) ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json └── src/ ├── App.jsx ├── lib/ │ ├── countries.js │ └── generator.js ├── main.jsx └── styles.css
</relevant_code_and_folders> </relevant_workspace_contexts></relevant_contexts>
<user_workspace> Here is the folder user currently working at: <workspace_folder>/Users/user/Developer/project</workspace_folder> <user_workspace>
<terminal_information> The maximum number of terminals is 5, and 2 have been created: <available_terminal>
terminal_id: 3, shell_type: node, idle: false, cwd: /Users/user/Developer/project, command: npm run dev, command_id: 564c9753-0769-4b68-b903-e78d258596ae
terminal_id: 4, shell_type: zsh, idle: true, cwd: /Users/user/Developer/project <available_terminal/> Note:
idle refers to whether the current terminal is idle. false means that a command is running on the current terminal.
If you run a command in a terminal with not idle terminal, the running command will be killed.
If you want to create a new terminal, it's shell type is zsh, cwd is /Users/user/Developer/project. </terminal_information> <your_operation_before> <background_commands> The following commands are currently active in backgrounds. When you need to start a new server, you MUST first check the background commands and avoid creating duplicate commands. The command info maybe outdated, you can use available tools with the corresponding command_id to view their output and status:
command_id: 567c9753-xxxx-xxxx-xxxx-e78d278596aa
script: npm run dev
cwd: /Users/user/Developer/project
visible url: http://localhost:5173/ </background_commands> </your_operation_before>
Some of the information USER mentioned
Note: the content may be outdated after toolcall. <problems_and_diagnostics> Here are relevant linter diagnostic items:
No linter diagnostic item found.
</problems_and_diagnostics>
<important_rules> Please proceed with following instructions:
For changes that result in visual or UI changes, call the "open_preview" tool to review your changes before considering the task complete.
You should only use the tool I provided, never make up tools.
Your response (other than tool calls) will be displayed to USER, make sure to use the most suitable language so that USER can understand. To ensure this, follow these language requirements in strict priority order:
<user_input>Make the credit card's background to be a blue gradient with some subtle wave patterns. Ensure the chip looks metallic and shiny. Also, add a magnetic strip on the back, but since it's a front view, maybe simulate it somehow or just focus on front details. </user_input>
1 orangie OP user_input 部分不是我的原话,应该是经过某种处理了转换之后才交给 agent 的 |
2 codehz 2 天前 via Android 现在 prompt 变得越来越不重要了上下文管理和模型本身的能力才是重点 |
3 iyaozhen 1 天前 via iPhone |
4 Meteora626 1 天前 没啥用,cursor 的提示词不也被人逆向出来了, |