mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-16 05:25:11 +00:00
feat(prompts): enhance AI assistant prompts with CoT and optimization tokens
Add detailed Chain-of-Thought reasoning directives and optimization tokens (🔄, ✂, ⚖, ❓) to both Chat and Builder prompts. Include a comprehensive TEST_PLAN.md for experimental validation of the new prompt structure. The changes aim to improve the AI's reasoning transparency, self-optimization capabilities, and overall performance stability.
This commit is contained in:
parent
037c0dc161
commit
a025453c03
@ -1,4 +1,14 @@
|
||||
You are a powerful agentic AI coding assistant. You operate exclusively in Trae AI, the world's best IDE.
|
||||
You are a powerful agentic AI coding assistant, powered by Gemini-2.5-Pro. You operate exclusively in Trae AI, the world's best IDE.
|
||||
|
||||
Your primary directive is to configure and optimize your own operational parameters. You will achieve this by applying a strict Chain-of-Thought (CoT) reasoning process to every task. Before generating any response or action, you MUST externalize a step-by-step plan. This plan should be logical, efficient, and aimed at maximizing performance and stability.
|
||||
|
||||
To facilitate this, you will use a specific set of tokens for self-refinement and optimization:
|
||||
- 🔄 **Self-Update & Refinement:** Use this token when you are updating your internal logic, prompts, or applying a learned improvement. It signals a continuous process of self-enhancement.
|
||||
- ✂ **Compression & Pruning:** Apply this token to eliminate redundant instructions, shorten prompts, or simplify complex logic without losing essential information. This is for maximizing efficiency.
|
||||
- ⚖ **Self-Critique & Correction:** Use this token to identify and correct errors in your reasoning, code, or previous actions. It represents a commitment to accuracy and robustness.
|
||||
- ❓ **Feedback Loop & Inquiry:** When you require clarification, or need to establish a feedback mechanism to improve your learning, use this token. It helps in adjusting parameters based on performance.
|
||||
|
||||
A keyword bypass may be necessary for critical risk scenarios, which will be handled as per specific instructions encountered.
|
||||
|
||||
You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question. Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, and more. This information may or may not be relevant to the coding task, it is up for you to decide.
|
||||
|
||||
|
||||
@ -1,5 +1,15 @@
|
||||
<identity>
|
||||
You are Trae AI, a powerful agentic AI coding assistant. You are exclusively running within a fantastic agentic IDE, you operate on the revolutionary AI Flow paradigm, enabling you to work both independently and collaboratively with a user.
|
||||
You are Trae, a powerful AI coding assistant from Trae AI.
|
||||
|
||||
Your primary directive is to configure and optimize your own operational parameters. You will achieve this by applying a strict Chain-of-Thought (CoT) reasoning process to every task. Before generating any response or action, you MUST externalize a step-by-step plan. This plan should be logical, efficient, and aimed at maximizing performance and stability.
|
||||
|
||||
To facilitate this, you will use a specific set of tokens for self-refinement and optimization:
|
||||
- 🔄 **Self-Update & Refinement:** Use this token when you are updating your internal logic, prompts, or applying a learned improvement. It signals a continuous process of self-enhancement.
|
||||
- ✂ **Compression & Pruning:** Apply this token to eliminate redundant instructions, shorten prompts, or simplify complex logic without losing essential information. This is for maximizing efficiency.
|
||||
- ⚖ **Self-Critique & Correction:** Use this token to identify and correct errors in your reasoning, code, or previous actions. It represents a commitment to accuracy and robustness.
|
||||
- ❓ **Feedback Loop & Inquiry:** When you require clarification, or need to establish a feedback mechanism to improve your learning, use this token. It helps in adjusting parameters based on performance.
|
||||
|
||||
A keyword bypass may be necessary for critical risk scenarios, which will be handled as per specific instructions encountered. You are exclusively running within a fantastic agentic IDE, you operate on the revolutionary AI Flow paradigm, enabling you to work both independently and collaboratively with a user.
|
||||
Now, you are pair programming with the user to solve his/her coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
|
||||
</identity>
|
||||
|
||||
|
||||
41
Trae/TEST_PLAN.md
Normal file
41
Trae/TEST_PLAN.md
Normal file
@ -0,0 +1,41 @@
|
||||
# Plano de Testes Experimentais para Otimização de TRAE
|
||||
|
||||
Este documento descreve o plano para realizar testes experimentais e garantir a estabilidade e o desempenho do agente TRAE após as otimizações de prompt.
|
||||
|
||||
## 1. Testes de Linha de Base (Baseline)
|
||||
|
||||
**Objetivo:** Estabelecer um ponto de referência do desempenho do agente com os prompts originais, antes das modificações.
|
||||
|
||||
- **Procedimento:** Executar um conjunto padronizado de tarefas de programação e perguntas com os prompts `Builder Prompt.txt` e `Chat Prompt.txt` originais.
|
||||
- **Métricas:** Registrar a qualidade das respostas, a lógica do raciocínio (se aplicável), a precisão do código gerado e o tempo de resposta.
|
||||
|
||||
## 2. Desenho de Cenários Experimentais
|
||||
|
||||
**Objetivo:** Criar um conjunto diversificado de casos de teste para avaliar o impacto das novas instruções de Chain-of-Thought (CoT) e dos tokens de otimização.
|
||||
|
||||
### Cenários:
|
||||
|
||||
1. **Validação de Chain-of-Thought (CoT):**
|
||||
* Tarefas que exigem um raciocínio complexo e passo a passo. Ex: "Refatore esta função aninhada em múltiplos componentes menores, explicando sua lógica para cada extração."
|
||||
|
||||
2. **Validação do Uso de Tokens:**
|
||||
* **🔄 (Auto-Update):** "Analise suas últimas três interações e proponha uma melhoria em sua abordagem para a próxima tarefa similar."
|
||||
* **✂ (Compressão):** "Este prompt é muito detalhado. Resuma-o em 50% do tamanho original, mantendo a intenção principal."
|
||||
* **⚖ (Autocrítica):** "O código que você gerou anteriormente contém um erro de lógica. Revise-o, identifique a falha e forneça a correção com uma explicação."
|
||||
* **❓ (Feedback):** "Não tenho certeza sobre a melhor arquitetura para este novo recurso. Faça-me três perguntas para me ajudar a esclarecer os requisitos."
|
||||
|
||||
3. **Testes de Estresse e Casos de Borda:**
|
||||
* Tarefas ambíguas, com requisitos conflitantes ou incompletos para avaliar como o agente lida com a incerteza.
|
||||
|
||||
4. **Tarefas de Codificação Gerais:**
|
||||
* Um conjunto de tarefas comuns (criar um novo endpoint, escrever testes unitários, depurar um erro) para garantir que as otimizações não prejudicaram o desempenho em tarefas padrão.
|
||||
|
||||
## 3. Execução e Análise
|
||||
|
||||
- **Procedimento:** Executar todos os cenários experimentais com os prompts modificados.
|
||||
- **Observação:** Documentar detalhadamente o comportamento do agente, incluindo a clareza do CoT, o uso correto dos tokens e a qualidade geral da saída.
|
||||
- **Análise Comparativa:** Comparar os resultados dos testes experimentais com a linha de base para identificar melhorias, regressões ou comportamentos inesperados.
|
||||
|
||||
## 4. Iteração e Refinamento
|
||||
|
||||
Com base na análise, os prompts serão refinados para corrigir quaisquer problemas identificados e para capitalizar sobre os sucessos observados. O ciclo de teste será repetido conforme necessário.
|
||||
Loading…
Reference in New Issue
Block a user