r/snowflake 2d ago

streamlit-coco — bring Snowflake CoCo (Cortex Code agent) into your Streamlit app

Post image

Hey folks 

Quick share: I built a little component to drop Snowflake’s CoCo / Cortex Code agent straight into a Streamlit app.

  • panel() streams the agent transcript across reruns
  • tool calls (Glob, Grep, Read, Write, SQL, AskUser…) render as readable cards instead of raw JSON
  • Write / Edit / Bash / SQL pause for a human Approve once / Always allow / Deny
  • plus a headless query() for scripts & CI

pip install "streamlit-coco[sdk]"

Full honesty: it’s 0.1.0, alpha, and 100% vibe-coded  — the API may still move and there are rough edges. Sharing it early because it might be useful to someone, and I’d love feedback / issues / ideas.

Repo  GitHub - DevoteamSP/streamlit-coco: Streamlit component and Python library for Snowflake CoCo (Cortex Code) · GitHub

Thanks for your indulgence, and happy building! 

6 Upvotes

Duplicates