Typeagent Setup
Agent Buildingtypeagent-setupTypeagent Setup is an Agent Skill for agent building published in the microsoft/TypeAgent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Configure TypeAgent integration mode and settings
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/microsoft/TypeAgent/blob/HEAD/ts/packages/copilot-plugin/skills/typeagent-setup/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/typeagent-setup, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
TypeAgent Setup
Configure the TypeAgent integration for Copilot CLI.
Current Configuration
Read the config file at ${PLUGIN_DATA}/config.json (create if it doesn't exist).
Options
Ask the user which integration mode they'd like:
- direct (default) - Hook handles requests directly, bypassing the LLM. Fastest response time (~2-3s) but no streaming.
- mcp - Hook redirects to MCP tool, allowing the LLM to call TypeAgent. Adds ~1-2s for LLM overhead but enables streaming and LLM formatting.
Also ask for:
- TypeAgent host (default: localhost) - The host where the TypeAgent agent-server is running
- TypeAgent port (default: 8999) - The port for the agent-server
Save Configuration
Write the configuration to ${PLUGIN_DATA}/config.json:
{
"mode": "direct",
"host": "localhost",
"port": 8999
}
Tell the user to restart Copilot CLI for changes to take effect. They can also override temporarily with environment variables:
TYPEAGENT_MODE=mcporTYPEAGENT_MODE=directTYPEAGENT_HOST=hostnameTYPEAGENT_PORT=port