aws-samples / aws-samples/sample-autonomous-cloud-coding-agents
(orchestration): Sync task context into operator IDE workspaces
- Lenguaje dominante
- TypeScript
- Estrellas
- 143
- Forks
- 46
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 24
Descripción
## Component
API or orchestration
## Describe the feature
When a background task is running or recently updated, expose a **machine-readable context bundle** (summary, evidence links, relevant file paths, branch name, latest milestones) that IDE plugins or local agent configs can poll—so engineers debugging alongside the task do not re-read Slack/GitHub manually.
## Use case
Responders and tech leads often work in an IDE while a background agent runs elsewhere. Copy-pasting status from notifications is friction. A stable, low-latency context endpoint enables **side-by-side collaboration** without turning every task into a live pair-programming session.
## Proposed solution
1. `GET /tasks/{id}/workspace-context` returning JSON: `branch`, `repo`, `summary`, `milestones[]`, `open_questions[]`, `hydration_digest` (bounded).
2. Optional MCP tool or documented `bgagent context export --task-id` for local agents.
3. Auth same as `GET /tasks/{id}`; rate-limited.
4. Align fields with roadmap **Smart progress updates** event schema to avoid duplication.
## Other information
- Does not require hosting a shared cloud IDE session—local consumption only in v1.
- Browser extension channel (roadmap) may consume the same payload.
## Acknowledgements
- [ ] I may be able to implement this feature
- [ ] This might be a breaking change
## Acceptance criteria
- [ ] Endpoint documented in `API_CONTRACT.md`; types in `cli/src/types.ts`.
- [ ] CLI export command writes JSON to stdout or file.
- [ ] Payload size capped; large traces remain on S3 trace URI.
- [ ] Handler tests cover running and terminal tasks.
Guía de contribución
Línea de trabajo
Comienza con API_CONTRACT.md y cli/src/types.ts; después inspecciona el handler existente de GET /tasks/{id} y el esquema de eventos de Smart progress updates para comprobar la autenticación y la alineación de campos. Añade el endpoint de contexto documentado, la exportación JSON de la CLI, el comportamiento de payload acotado y pruebas que cubran las tareas en ejecución y en estado terminal; se considera terminado cuando se cumplen todos los criterios de aceptación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, typescript
- Área
- backend-api-design, cli, documentation, testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100