How to add the TypeScript Pro subagent to Claude Code
- Open the publisher’s Markdown file and save it as .claude/agents/typescript-pro.md at the root of your project.
- Ask Claude Code to delegate your sample task to the typescript-pro subagent. If it does not appear in the transcript, restart Claude Code and retry.
Try this workflow
Give the agent a settings API that accepts one of three feature flag variants. Ask it to replace a shared bag of optional fields with a discriminated union and preserve the valid call sites.
Run type checking and confirm each variant rejects fields intended for another variant. Run existing settings tests to check the refactor preserves runtime behavior.
What you need
The publisher’s file grants the subagent these tools. Read, Write, Edit, Bash, Glob, Grep. Review the list before using the file in a shared project.