feat: comando /llm + imp llm — troca de LLM por agente via número ou nome - #42
Merged
Conversation
…nome Novo comando de aluno nos dois formatos: `imp llm` no terminal (lista numerada dos 5 agentes FDA com engine · modelo · fases; interativo em TTY; --json para máquinas; `imp llm set 1 fable`) e `/llm` dentro do Pi (conversacional: "1 → fable" aplica e confirma). Núcleo em imp/scripts/fia-llm.mjs. - roster.mjs novo: writer YAML preserva-comentários + loadRoster extraídos do viewer — fia-viewer.mjs e fia-tui-data.mjs agora delegam (fonte única de escrita do imp/fia.config.yaml). - Guards: recusa anthropic/* no engine pi (extra usage), recusa com run FDA ativo (.fda.lock), aviso de billing por API key, aviso de engine não pronto. - Registro completo: STAMPED + help do bin/imp.js, npmScripts llm, prompt Pi, Routing do SKILL.md, cookbook update_roster, painéis fia.js/finish.js, README e DOCS (§12.1 vira "The 27 commands"). - Testes: test/fia-llm.test.js (alvo, comentários, backup, lock, extra-usage) + asserts no imp-smoke. Suíte completa verde e lint limpo. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019VtpBiDVL3bbcPgjBFtPeT
elberrd
added a commit
that referenced
this pull request
Aug 21, 2026
Fecha a release com o que entrou desde a alpha.18: - #42 — comando /llm + imp llm (troca de LLM por agente via número/nome; roster.mjs como writer único do fia.config.yaml) - #43 — guards do /qa (preflight self-healing, audit só com e2e verde, recusa determinística de re-run sem mudanças) Suíte completa verde (1420/1420) e lint limpo com o bump aplicado. Claude-Session: https://claude.ai/code/session_019VtpBiDVL3bbcPgjBFtPeT Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
elberrd
added a commit
that referenced
this pull request
Aug 22, 2026
Fecha a release com /llm + imp llm (#42), guards do /qa (#43) e o novo /defer + imp defer (#45) — pronta para npm publish. Claude-Session: https://claude.ai/code/session_01B9gdPsvMDQNkqKpz9HPx4X Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O que faz
Novo comando de aluno nos dois formatos pedidos:
imp llm(terminal, tambémnpm run llm): lista numerada dos 5 agentes FDA com engine · modelo · nível e as fases que cada um comanda; interativo em TTY (responde número/nome + modelo novo);--jsonpara máquinas; direto:imp llm set 1 fable,imp llm set builder openai-codex/gpt-5.6,set 2 cursor sonnet-4.5-thinking./llm(dentro do Pi): mesma lista numerada, fala livre ("1 → fable") — o Pi aplica viaimp/scripts/fia-llm.mjs sete devolveantes → depois; nunca edita o YAML na mão.Como
roster.mjsnovo: writer YAML preserva-comentários +loadRosterextraídos do viewer —fia-viewer.mjs(POST /api/roster) efia-tui-data.mjsdelegam. Uma única fonte de escrita doimp/fia.config.yaml: backup emimp/data/backups/, escrita atômica, agentes nunca adicionados/removidos.anthropic/*no engine pi é recusado (extra usage — usaclaude_code); run FDA ativo (.fda.lock) trava a troca; provider por API key avisa alto; engine não instalado/logado avisa com o comando de correção.bin/imp.js,npmScripts, prompt Pi, Routing do SKILL.md, cookbookupdate_roster, painéisfia.js/finish.js, README e DOCS (§12.1 → "The 27 commands").Testes
test/fia-llm.test.js(resolução de alvo, preservação de comentários, backup, lock mid-run, guard extra-usage, runCli --json) + asserts noimp-smoke. Suíte completa: 1414/1414 verde, lint limpo.🤖 Generated with Claude Code
https://claude.ai/code/session_019VtpBiDVL3bbcPgjBFtPeT