
Cortex Code
Routes Snowflake operations from Claude to the Cortex Code CLI while keeping everything else local. The routing is LLM-based semantic analysis, not keywords, so it catches "show me my warehouses" without you saying "Snowflake." Ships with three approval modes (prompt/auto/envelope_only) and security envelopes (RO/RW/RESEARCH) that block destructive operations by default. Caches capabilities at session start so repeat queries skip the discovery overhead. Worth noting the approval prompts show predicted tools with confidence scores, which is more transparent than most agent handoff patterns. Requires Cortex CLI installed and a Snowflake connection configured.
- skills.sh installs
- 1.5K
- GitHub stars
- 64
- last updated
- Aug 21, 2026
Install
$ npx -y skills add snowflake-labs/subagent-cortex-code --skill cortex-code --agent claude-codeInstalls into .claude/skills of the current project.
Files
Cortex Code Integration Skill
Install
# Install via npm skills ecosystem (works with Claude Code, Cursor, Codex, and 40+ agents)
npx skills add snowflake-labs/subagent-cortex-code --copy
# Prerequisite: Cortex Code CLI must be installed and configured
# See: https://docs.snowflake.com/en/user-guide/cortex-code
which cortex # verify installation
This skill enables your coding agent to leverage Cortex Code's specialized Snowflake expertise by intelligently routing Snowflake-related operations to Cortex Code CLI in headless mode.
Architecture Overview
Routing Principle: ONLY Snowflake operations → Cortex Code. Everything else → your coding agent.
Key Components:
- Dynamic skill discovery at session initialization
- LLM-based semantic routing (not keyword matching)
- Security wrapper with approval modes (prompt/auto/envelope_only)
- Stateless Cortex execution with context enrichment
- Hybrid memory management
- Audit logging for compliance
Security
The skill includes a security wrapper around Cortex execution with three approval modes:
Approval Modes
Sponsors
Details
- Repository
- github.com/snowflake-labs/subagent-cortex-code
- Categories
- Security, AI & Agent Building, Cloud & Infrastructure, CLI & Terminal, Databases
- First seen
- Jun 3, 2026