aws-samples / aws-samples/sample-autonomous-cloud-coding-agents
feat(cli): bgagent ask Phase 2 (POST /tasks/{id}/asks)
- Lenguaje dominante
- TypeScript
- Estrellas
- 143
- Forks
- 46
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 24
Descripción
**Context:** ROADMAP.md → `bgagent ask` (Phase 2)
---
## Component
Scripts / CLI
## Describe the feature
Mid-run **questions to the agent**: `POST /tasks/{id}/asks`; answers durable as `status_response` events. CLI `bgagent ask ""` with foreground block-and-poll. Enables interactive summaries without burning a separate status API.
## Use case
Operators need "why did you change X?" mid-flight without `nudge`ing implementation guidance. Answers must survive CLI disconnect.
## Proposed solution
1. REST: create ask, poll events by `correlation_id=ask_id`.
2. Agent between-turns hook injects ask as user turn; emits `status_response`.
3. CLI spinner + adaptive poll; `bgagent asks show ` for reconnect.
4. Sync `cli/src/types.ts` with `cdk/.../types.ts`.
5. Fanout Slack renderer for `status_response` (Phase 2).
## Other information
- Full spec: `docs/design/INTERACTIVE_AGENTS.md` §5.5, AD-6/AD-7.
- `status_response` already in fanout allowlist (forward-compat).
- [ ] This might be a breaking change
Guía de contribución
Línea de trabajo
Lee primero docs/design/INTERACTIVE_AGENTS.md §5.5 y AD-6/AD-7; después inspecciona las definiciones de tipos de CLI y CDK en cli/src/types.ts y cdk/.../types.ts. Sigue el flujo REST ask, el hook between-turn, el sondeo de eventos, el comando reconnect y la distribución de Slack status_response descritos en la propuesta. Se considera terminado cuando el comportamiento de la Fase 2 y los tipos sincronizados cubren todas las rutas enumeradas.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- api, backend, cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100