feat(cli): relay Stop, PostToolUse and PreToolUse to Antigravity (agy), not only SessionStart
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 44/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli
Línea de trabajo
Start with cli/src/contexts/tools/domain/profiles/antigravity/antigravity-hooks.ts and its MAPPED_EVENTS, then read tool-paths.md and the prior hook work in #890, #511, and #978. Verify how the profile maps event names, matchers, and hook outputs against the observed agy contracts, including PostInvocation context injection. Done means the acceptance criteria pass, including a guarded Stop continuation and an allow response for empty PreToolUse output.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
On next, the Antigravity profile relays only SessionStart (cli/src/contexts/tools/domain/profiles/antigravity/antigravity-hooks.ts, MAPPED_EVENTS), with the reason "Claude and agy name their tools differently". tool-paths.md lists PreToolUse, PostToolUse and Stop as supported by the host. A hook on any of those three does nothing on agy.
Measured on 2026-11-11 with agy -p (1.5.x, the binary auto-updated from 1.5.1 to 1.5.5 during the test), project file .agents/hooks.json, disposable folder:
SessionStart,PreToolUse,PostToolUse,Stopall fire.agyalso hasPreInvocationandPostInvocation. It has noUserPromptSubmit,SubagentStoporSessionEnd.- Tool names differ:
write_file(argsPath,Content) andrun_command(argsCommandLine), notWriteandBash. - Output contract differs from the framework's scripts: a
Stophook continues the agent with{"decision":"continue","reason":...}. An empty output from aPreToolUsehook is a denial, so a script that prints nothing blocks every tool call.{"decision":"allow"}is required. PostToolUsecould not inject context (documented as{}only).PostInvocationinjected it with{"injectSteps":[{"systemMessage":{"systemMessage":"..."}}]}.- In
-p, tools are refused unless permissions are skipped, which matters for CI. - Not tested:
--settings, subagent hooks. One run per test, small model.
Scope
- Relay
StopandPostToolUse(andPreToolUseonce its output contract is handled) toagy, with matchers translated (Bashtorun_command,WriteandEdittowrite_file). - Translate the hook output (
blocktocontinue, an emptyPreToolUseoutput toallow), or document that scripts must handle it. - Decide how
PostToolUsecontext injection works onagy(PostInvocation).
Acceptance criteria
- A
Stopscript that blocks once continues the turn onagy, with a guard that stops the loop. - A
PostToolUsescript runs afterwrite_fileandrun_command. - A
PreToolUsescript that prints nothing does not deny every tool call. - Events the profile does not relay produce a warning at build time (today: the
unmapped eventmessage already exists for the profile).
Prior art in this repo
antigravity-hooks.ts(MAPPED_EVENTS = {"SessionStart"}), #890 (hooks are read fromhooks.json, notsettings.json), #511 (Antigravity as a flat host), #978 (verified tool compatibility).
Out of scope
Telling agy to relay UserPromptSubmit or SessionEnd (they do not exist). The Antigravity IDE.
- Lenguaje dominante
- TypeScript
- Estrellas
- 481
- Forks
- 45
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 91
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ai-driven-dev/framework
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ai-driven-dev/framework#1311 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
ai-driven-dev/framework#1244 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ai-driven-dev/framework#1197 ·
Los mantenedores suelen responder en 1 día
-
refactor(aidd-context): apply the new skill template to learnPosiblemente ocupada @blafourcade la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ai-driven-dev/framework#1186 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ai-driven-dev/framework#1163 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ai-driven-dev/framework
Issues similares
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elastic/kibana#306401 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
agentes-chat/agentes-chat#927 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Webapp workspace fails to render in Safari — "Can't find variable: requestIdleCallback"Abiertocomp/desktop P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NousResearch/hermes-agent#157702 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
redhat-developer/rhdh-plugin-export-overlays#4794 · 1 comentario ·
Los mantenedores suelen responder en 1 día