Skip to content

Commit b4ee6ff

Browse files
authored
Merge pull request #193 from 2-Coatl/claude/agents-techniques-setup-01Y1X6BuUvE2n5tPe9dYEqKc
Documentación integral de agentes, convenciones y backend con TDD para técnicas de prompting
2 parents 2124907 + 2a949ed commit b4ee6ff

29 files changed

Lines changed: 9172 additions & 378 deletions
Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
# Mapeo de Implementación de Agentes
2+
3+
Este documento mapea todos los agentes del proyecto a su implementación en código.
4+
5+
## Agentes Implementados (Python)
6+
7+
### SDLC Agents
8+
9+
| Agente | Implementación | Tests | Estado TDD |
10+
|--------|---------------|-------|------------|
11+
| SDLCPlannerAgent | `scripts/coding/ai/sdlc/planner_agent.py` | `scripts/coding/ai/tests/test_sdlc_planner_agent.py` | Parcial |
12+
| SDLCFeasibilityAgent | `scripts/coding/ai/sdlc/feasibility_agent.py` | `scripts/coding/ai/tests/test_sdlc_feasibility_agent.py` | Parcial |
13+
| SDLCDesignAgent | `scripts/coding/ai/sdlc/design_agent.py` | `scripts/coding/ai/tests/test_sdlc_design_agent.py` | Parcial |
14+
| SDLCTestingAgent | `scripts/coding/ai/sdlc/testing_agent.py` | `scripts/coding/ai/tests/test_sdlc_testing_agent.py` | Completo |
15+
| SDLCDeploymentAgent | `scripts/coding/ai/sdlc/deployment_agent.py` | `scripts/coding/ai/tests/test_sdlc_deployment_agent.py` | Parcial |
16+
| SDLCAgent (Base) | `scripts/coding/ai/sdlc/base_agent.py` | - | - |
17+
18+
### Automation Agents
19+
20+
| Agente | Implementación | Tests | Estado TDD |
21+
|--------|---------------|-------|------------|
22+
| CoherenceAnalyzerAgent | `scripts/coding/ai/automation/coherence_analyzer_agent.py` | `scripts/coding/ai/tests/test_coherence_analyzer_agent.py` | Completo |
23+
| PDCAAutomationAgent | `scripts/coding/ai/automation/pdca_agent.py` | `scripts/coding/ai/tests/test_pdca_agent.py` | Completo |
24+
| ConstitutionValidatorAgent | `scripts/coding/ai/automation/constitution_validator_agent.py` | `scripts/coding/ai/tests/test_constitution_validator_agent.py` | Completo |
25+
| DevContainerValidatorAgent | `scripts/coding/ai/automation/devcontainer_validator_agent.py` | `scripts/coding/ai/tests/test_devcontainer_validator_agent.py` | Completo |
26+
| MetricsCollectorAgent | `scripts/coding/ai/automation/metrics_collector_agent.py` | `scripts/coding/ai/tests/test_metrics_collector_agent.py` | Completo |
27+
| SchemaValidatorAgent | `scripts/coding/ai/automation/schema_validator_agent.py` | `scripts/coding/ai/tests/test_schema_validator_agent.py` | Completo |
28+
| CIPipelineOrchestratorAgent | `scripts/coding/ai/automation/ci_pipeline_orchestrator_agent.py` | `scripts/coding/ai/tests/test_ci_pipeline_orchestrator_agent.py` | Completo |
29+
30+
### Prompting Techniques
31+
32+
| Técnica | Implementación | Tests | Estado TDD |
33+
|---------|---------------|-------|------------|
34+
| Auto-CoT | `scripts/coding/ai/agents/base/auto_cot_agent.py` | - | Pendiente |
35+
| Chain of Verification | `scripts/coding/ai/agents/base/chain_of_verification.py` | - | Pendiente |
36+
| Self-Consistency | `scripts/coding/ai/agents/base/self_consistency.py` | - | Pendiente |
37+
| Tree of Thoughts | `scripts/coding/ai/agents/base/tree_of_thoughts.py` | - | Pendiente |
38+
| Fundamental Techniques | `scripts/coding/ai/agents/base/fundamental_techniques.py` | - | Pendiente |
39+
| Structuring Techniques | `scripts/coding/ai/agents/base/structuring_techniques.py` | - | Pendiente |
40+
| Knowledge Techniques | `scripts/coding/ai/agents/base/knowledge_techniques.py` | - | Pendiente |
41+
| Optimization Techniques | `scripts/coding/ai/agents/base/optimization_techniques.py` | - | Pendiente |
42+
| Specialized Techniques | `scripts/coding/ai/agents/base/specialized_techniques.py` | - | Pendiente |
43+
| Search Optimization | `scripts/coding/ai/agents/base/search_optimization_techniques.py` | - | Pendiente |
44+
| Prompt Templates | `scripts/coding/ai/agents/base/prompt_templates.py` | - | Pendiente |
45+
46+
### Shared Components
47+
48+
| Componente | Implementación | Tests | Estado TDD |
49+
|------------|---------------|-------|------------|
50+
| Agent (Base Class) | `scripts/coding/ai/shared/agent_base.py` | - | Parcial |
51+
| ContextSession | `scripts/coding/ai/shared/context_sessions.py` | - | Pendiente |
52+
53+
### Orchestration & Generation
54+
55+
| Componente | Implementación | Tests | Estado TDD |
56+
|------------|---------------|-------|------------|
57+
| CodexMCPWorkflow | `scripts/coding/ai/orchestrators/codex_mcp_workflow.py` | - | Pendiente |
58+
| LLMGenerator | `scripts/coding/ai/generators/llm_generator.py` | - | Pendiente |
59+
60+
## Agentes Definidos (Markdown - No implementados en Python)
61+
62+
Estos agentes están definidos en markdown para uso con prompts, pero NO tienen implementación Python:
63+
64+
### DevOps Agents
65+
66+
| Agente | Definición | Implementación Python | Estado |
67+
|--------|------------|----------------------|--------|
68+
| GitOpsAgent | `.agent/agents/gitops_agent.md` | NO | Prompt-based |
69+
| ReleaseAgent | `.agent/agents/release_agent.md` | NO | Prompt-based |
70+
| DependencyAgent | `.agent/agents/dependency_agent.md` | NO | Prompt-based |
71+
| SecurityAgent | `.agent/agents/security_agent.md` | NO | Prompt-based |
72+
| CodeTasker | `.agent/agents/my_agent.md` | NO | Prompt-based |
73+
74+
### Domain Agents
75+
76+
| Agente | Definición | Implementación Python | Estado |
77+
|--------|------------|----------------------|--------|
78+
| ApiAgent | `.agent/agents/api_agent.md` | NO | Prompt-based |
79+
| UiAgent | `.agent/agents/ui_agent.md` | NO | Prompt-based |
80+
| InfrastructureAgent | `.agent/agents/infrastructure_agent.md` | NO | Prompt-based |
81+
| DocsAgent | `.agent/agents/docs_agent.md` | NO | Prompt-based |
82+
| ScriptsAgent | `.agent/agents/scripts_agent.md` | NO | Prompt-based |
83+
84+
### LLM Provider Agents
85+
86+
| Agente | Definición | Implementación Python | Estado |
87+
|--------|------------|----------------------|--------|
88+
| ClaudeAgent | `.agent/agents/claude_agent.md` | NO (usa LLMGenerator) | Prompt-based |
89+
| ChatGPTAgent | `.agent/agents/chatgpt_agent.md` | NO (usa LLMGenerator) | Prompt-based |
90+
| HuggingFaceAgent | `.agent/agents/huggingface_agent.md` | NO (usa LLMGenerator) | Prompt-based |
91+
92+
## Próximos Pasos para Implementación
93+
94+
### Prioridad Alta - TDD Pendiente
95+
96+
1. **Técnicas de Prompting Base**
97+
- Implementar tests para `auto_cot_agent.py`
98+
- Implementar tests para `self_consistency.py`
99+
- Implementar tests para `chain_of_verification.py`
100+
- Implementar tests para `tree_of_thoughts.py`
101+
102+
2. **Agentes de Dominio (si se requiere implementación Python)**
103+
- Decidir si ApiAgent/UiAgent necesitan implementación Python
104+
- Si SÍ: Crear `scripts/coding/ai/domain/api_agent.py` con TDD
105+
- Si SÍ: Crear `scripts/coding/ai/domain/ui_agent.py` con TDD
106+
107+
3. **Componentes Shared**
108+
- Implementar tests para `context_sessions.py`
109+
- Implementar tests para `agent_base.py` (completar)
110+
111+
4. **Orchestration**
112+
- Implementar tests para `codex_mcp_workflow.py`
113+
- Implementar tests para `llm_generator.py`
114+
115+
### Prioridad Media - Mejoras TDD
116+
117+
1. **SDLC Agents** - Completar TDD:
118+
- SDLCPlannerAgent (de Parcial a Completo)
119+
- SDLCFeasibilityAgent (de Parcial a Completo)
120+
- SDLCDesignAgent (de Parcial a Completo)
121+
- SDLCDeploymentAgent (de Parcial a Completo)
122+
123+
### Prioridad Baja - Opcionales
124+
125+
1. **DevOps Agents** - Implementar en Python (opcional):
126+
- Si se requiere automatización: Implementar GitOpsAgent.py
127+
- Si se requiere automatización: Implementar ReleaseAgent.py
128+
- Si se requiere automatización: Implementar DependencyAgent.py
129+
- Si se requiere automatización: Implementar SecurityAgent.py
130+
131+
## Comandos para Generar TDD
132+
133+
### Usar SDLCTestingAgent para generar tests
134+
135+
```bash
136+
# Para técnicas de prompting
137+
python scripts/coding/ai/sdlc/testing_agent.py \
138+
--project-root . \
139+
--target-module "scripts/coding/ai/agents/base/auto_cot_agent.py" \
140+
--output-dir "scripts/coding/ai/tests" \
141+
--coverage-target 80 \
142+
--use-technique auto-cot
143+
144+
# Para agentes de dominio (si se implementan)
145+
python scripts/coding/ai/sdlc/testing_agent.py \
146+
--project-root . \
147+
--target-module "scripts/coding/ai/domain/api_agent.py" \
148+
--output-dir "scripts/coding/ai/tests" \
149+
--coverage-target 80 \
150+
--use-technique self-consistency
151+
```
152+
153+
### Ejecutar en Paralelo
154+
155+
```bash
156+
# Generar tests para múltiples agentes en paralelo
157+
python -c "
158+
from scripts.coding.ai.orchestrators.codex_mcp_workflow import CodexMCPWorkflowBuilder
159+
160+
workflow = CodexMCPWorkflowBuilder()
161+
162+
# Test generation para Auto-CoT
163+
workflow.add_agent(
164+
name='AutoCoTTestGen',
165+
agent_class='SDLCTestingAgent',
166+
inputs={'module': 'scripts/coding/ai/agents/base/auto_cot_agent.py'},
167+
technique='auto-cot',
168+
parallel=True
169+
)
170+
171+
# Test generation para Self-Consistency
172+
workflow.add_agent(
173+
name='SelfConsistencyTestGen',
174+
agent_class='SDLCTestingAgent',
175+
inputs={'module': 'scripts/coding/ai/agents/base/self_consistency.py'},
176+
technique='self-consistency',
177+
parallel=True
178+
)
179+
180+
# Test generation para ApiAgent (si existe)
181+
workflow.add_agent(
182+
name='ApiAgentTestGen',
183+
agent_class='SDLCTestingAgent',
184+
inputs={'module': 'scripts/coding/ai/domain/api_agent.py'},
185+
technique='auto-cot',
186+
parallel=True
187+
)
188+
189+
# Test generation para UiAgent (si existe)
190+
workflow.add_agent(
191+
name='UiAgentTestGen',
192+
agent_class='SDLCTestingAgent',
193+
inputs={'module': 'scripts/coding/ai/domain/ui_agent.py'},
194+
technique='self-consistency',
195+
parallel=True
196+
)
197+
198+
results = workflow.execute_parallel()
199+
print(results)
200+
"
201+
```
202+
203+
## Resumen de Estado
204+
205+
- **Agentes con TDD Completo**: 8/20 (40%)
206+
- **Agentes con TDD Parcial**: 5/20 (25%)
207+
- **Agentes sin TDD**: 7/20 (35%)
208+
- **Agentes prompt-based (no requieren TDD Python)**: 13
209+
210+
---
211+
212+
**Última actualización**: 2025-11-14
213+
**Prioridad**: Completar TDD para técnicas de prompting y componentes shared

0 commit comments

Comments
 (0)