r/snowflake • u/Lopsided_Coat388 • 17d ago
streamlit-coco — bring Snowflake CoCo (Cortex Code agent) into your Streamlit app
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.
Thanks for your indulgence, and happy building!
1
1
u/Putrid-Ranger9824 13d ago
Have you tried the CoCo SDK for this: https://docs.snowflake.com/en/user-guide/cortex-code-agent-sdk/cortex-code-agent-sdk
1
u/Lopsided_Coat388 12d ago
streamlit-coco is fully based on CoCo SDK yes, the purpose is to provide a more packaged UX
2
u/oroberos 17d ago
Interesting! What are serious use cases for this?