Skip to main content

cc-mid-session-registry-staleness

Fix for two Claude Code mid-session staleness traps that fail Workflow runs instantly (<15ms). Use when: (1) a Workflow agent() call fails with "agent type '<name>' not found" listing only plugin/built-in agents, even though .claude/agents/<name>.md exists with valid frontmatter — the agent registry only loads .claude/agents/ at session START, so agent files created mid-session are not resolvable via agentType/subagent_type until restart; (2) re-invoking a saved workflow via Workflow({name}) runs STALE code after you edited .claude/workflows/<name>.js — name resolution serves a cached snapshot, so mid-session edits never reach it. Both failures look like your code is wrong when it's actually registry caching. Fixes: launch via Workflow({scriptPath: <live file path>}) to bypass the name cache, and design workflow scripts with a registry-independent persona fallback (prompt the agent to Read its own .claude/agents/<name>.md and adopt the role) toggled by an arg like useAgentTypes:false.

Ir para a instalação

Informações da origem

Repositório
cajias/claude-skills
Última atividade na origem
20 de julho de 2026 às 07:29
Idioma detectado do SKILL.md
inglês
Estrelas
0
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.