Run /doctor to diagnose environment issues. List connections with cortex connections list.
AGENTS.md is CoCo's persistent project memory — loaded automatically at session start. Part of the open agents.md framework.
| .cortex/AGENTS.md | Project-level (shared via git) |
| .claude/CLAUDE.md | Compatibility with Claude Code |
| ~/.snowflake/cortex/ | Global — all projects |
| @path | Include file as context |
| @path$10-50 | Include specific line range |
| #DB.SCHEMA.TABLE | Auto-inject schema + sample rows |
| $skill-name | Invoke a skill |
| !command | Run shell cmd (output → agent) |
| /command | Slash command |
| ? | Quick help overlay |
| /sql SELECT ... | Execute SQL inline |
| /table | Fullscreen SQL results viewer |
| #TABLE | Inject column metadata + samples |
| cortex search object | Semantic object search |
| cortex search docs | Search Snowflake docs |
| cortex artifact create | Push to Snowflake Workspace |
| Enter | Submit prompt |
| Ctrl+J | Newline in prompt |
| Shift+Tab | Cycle permission modes |
| Ctrl+P | Toggle plan mode |
| Ctrl+B | Background bash |
| Ctrl+T | SQL table results view |
| Ctrl+G | Web search results |
| Ctrl+O | Cycle display (compact/expanded) |
| Ctrl+R | Search prompt history |
| Escape | Cancel streaming |
Confirm Actions (default) — approve each tool • Plan (Ctrl+P) — review before executing • Bypass (/bypass) — auto-approve all. Shift+Tab cycles Confirm ↔ Bypass.
Skills are reusable markdown instruction sets. Invoke with $skill-name, manage with /skill.
| .cortex/skills/ | Project-level |
| ~/.snowflake/cortex/skills/ | Global |
| Remote repos | Auto-cached from git |
| Bundled | Ships with CoCo |
$skill-development create • summarize • audit
$dbt-verify agent validates beyond dbt build. Snowflake-native: snow dbt deploy/execute.
| general-purpose | Full tool access — research, code, multi-step |
| Explore | Fast read-only codebase search |
| Plan | Architecture design, no code changes |
| dbt-verify | dbt project validation |
| feedback | Collect & process user feedback |
Add .cortex/agents/<name>.md with YAML frontmatter (name, description, tools).
Run agents in background, check with /agents. Worktree isolation: /worktree for parallel dev without conflicts.
Model Context Protocol connects external tools & services to CoCo.
| cortex mcp list | Show configured servers |
| cortex mcp remove | Remove a server |
| /mcp | Interactive MCP manager |
| --no-mcp | Disable all MCP servers |
Config: ~/.snowflake/cortex/mcp.json. Tool naming: mcp__<server>__<tool>. Transports: stdio, sse, http.
Hooks add deterministic guardrails. Config: ~/.snowflake/cortex/hooks.json
Exit codes: 0 = allow • 2 = block (stderr → agent). Matchers: exact, regex (snowflake_.*), wildcard.
CLI flags > env vars > settings.json > defaults
| SNOWFLAKE_CONNECTION | Default connection name |
| CORTEX_ENABLE_MEMORY | Enable persistent memory |
| CORTEX_CODE_STREAMING | Toggle streaming output |
| CORTEX_AGENT_ENABLE_SUBAGENTS | Enable subagents |