Plugin hooks: give skill.prompt the calling agent's id
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- api
Research direction
Start by reading the definitions of SkillPromptInput and AgentLoop mentioned in the issue, then trace where skill.prompt inputs are constructed and exposed to plugins. Add the optional agentId field with the stated main-loop behavior. Done when plugins can read the calling agent's id for subagents and it is absent on the main loop; check the relevant type and hook tests.
Written by the indexing model from the issue text.
Description
skill.prompt's input (SkillPromptInput, 2.1.325) has no agentId, while tool.call has one (AgentLoop). A plugin that answers a skill differently for the main conversation and for a subagent can't tell which one called it. In Code Mode it can't listen to tool.call to find out, because that turns Code Mode off.
Request: add agentId?: string to SkillPromptInput, as AgentLoop defines it (absent on the main loop).
- Dominant language
- TypeScript
- Stars
- 156k
- Forks
- 25k
- Avg merge
- 12h 27m
- Merged PRs (30d)
- 4
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anthropics/claude-code
-
area:agent-sdk area:docs documentation enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
anthropics/claude-code#110914 ·
-
area:tui bug has repro platform:linux regression
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/claude-code#110876 ·
-
area:desktop area:ui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
anthropics/claude-code#110835 ·
-
area:ui bug platform:vscode platform:windows
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
anthropics/claude-code#110675 ·
-
area:installation enhancement platform:windows
Difficulty 1/5 Under an hour Newbie friendliness 84/100
anthropics/claude-code#110491 ·
All issues in anthropics/claude-code
Similar issues
-
bot:ai-assisted component:platform-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
midnightntwrk/platform-js#69 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Picolab/pico-engine#668 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
ai-driven-qa bug claude Cosmetic
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
needs verification
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 13 days