Factory Droid 0.233.0 support: adapter ready and live injection verified
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- developer-experience
Línea de trabajo
The issue describes a local adapter tested against Factory Droid 0.233.0, but it does not name the repository files or tests to change. Read the related issue #85 and the adapter description, then identify the project’s host integration and session import entry points. Done means a reviewed PR adds the adapter and its tests, with the stated live injection behavior and platform limits documented.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
I built a Factory Droid adapter for TokenEconomizer on top of main (519c65f) and tested it on Droid 0.233.0 (macOS). It adds a Droid session-log reader, a host adapter for Droid's Claude-shaped hooks, history import, per-session cost from the tokenUsage Droid writes beside each log, an opt-in droid_sidecall switch, and a .factory-plugin bundle.
The last hop that was previously unverified on Droid, a learned fact reaching a live model, is now verified: a fresh session received the learned block as hookSpecificOutput.additionalContext, and the model repeated it verbatim.
This is related to #85. I can submit the adapter as a PR; I am posting this to check whether a PR would be welcome.
Environment
- TokenEconomizer
mainat519c65fplus a local Droid adapter - Factory Droid 0.233.0, macOS
- Droid session logs under
~/.factory/sessions; cost from<session id>.settings.json - Plugin suite: 732 tests, exit 0 (17 skipped)
What the adapter covers
- Micro-skills:
SessionStartreturns the block inhookSpecificOutput.additionalContext. - Loop guard:
PostToolUseredirects and notices on Droid payloads. - Session cost: reads
tokenUsage(inputTokens,outputTokens,cacheCreationTokens,cacheReadTokens,thinkingTokens,factoryCredits); onlytokenUsage, becauseinclusiveTokenUsagealso counts child sessions. - History import:
te --host droid history importreads earlier Droid sessions; no model call; only before a repository has folded sessions. - Commands:
/tokeneconomizer-*from the Droid bundle. - Settings:
droid_sidecall(orTE_DROID_SIDECALL=1) allows the plugin's owndroid execcalls; off by default.
Verification
- Plugin suite:
pytest tests-> 732 tests, exit 0 (17 skipped). - Live, 2026-11-05, Droid 0.233.0, macOS: a fresh session received a 793-character block as
hookSpecificOutput.additionalContext; the session record hasinjected_chars: 793; the model repeated the block verbatim. - The block was three facts at that moment; a fourth was added by the next fold.
Limits
- Tool pruning is not available: Droid's TUI has no persistent per-tool setting (Factory's issue #65).
droid exec --only-toolsis exec-only. droid execas a pure completion is not documented: no flag set strips tools, hooks and the session log, so the plugin's own calls stay opt-in.- The adapter is macOS-tested only; Windows CI has not been run locally.
experiments/testswas not run; the adapter does not touch the benchmark code.
Question
Would a PR adding this adapter be welcome? I have the branch ready locally and have not pushed it.
AI disclosure: the adapter and tests were produced with Factory Droid (an AI coding agent) at my direction.
- Lenguaje dominante
- Python
- Estrellas
- 5.6k
- Forks
- 344
- Merge medio
- 14 h 41 min
- PR fusionados (30 d)
- 54
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 microsoft/TokenEconomizer
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
microsoft/TokenEconomizer#193 ·
Los mantenedores suelen responder en 1 día
-
pricing: Claude's 1-hour cache writes are priced at 1.25x, but billed at 2xPosiblemente ocupada @anascherif la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
microsoft/TokenEconomizer#191 ·
Los mantenedores suelen responder en 1 día
-
trace: Claude Code's `<synthetic>` notices count as requests and can make a Claude session price on the fallback curvePosiblemente ocupada @1AbdullahButt la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 20/100
microsoft/TokenEconomizer#189 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
microsoft/TokenEconomizer#186 ·
Los mantenedores suelen responder en 1 día
-
plugin: the agent-output readers crash on a JSON line that is not an objectPosiblemente ocupada @rahul05ranjan la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
microsoft/TokenEconomizer#182 ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/TokenEconomizer
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Treat corrupt-shape state files as missing in `load_state`Posiblemente ocupada @Qrytics la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
OvertureMaps/overturemaps-py#175 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
awslabs/visual-asset-management-system#1278 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
aws-samples/sample-per-model-bedrock#835 ·
Los mantenedores suelen responder en 1 día