{"by":"kcmarr","descendants":12,"id":49927295,"kids":[49937228,49971778,50032476,49947447,49966769,49948118,49939477,49947933],"score":32,"text":"My friend and I have worked at a number of BI companies and thought: Can’t a coding agent do most of this now?<p>Almost. They just need a context&#x2F;semantic layer to ensure query correctness and some kind of artifact for publishing findings and visualizations.<p>We built an open source project called Graphene that provides these tools:<p>- Semantic layer that’s more token-efficient than YAML, more deterministic than Markdown (eg, composable, callable metric macros), with a query API that’s well in-distribution (SQL).\n- MDX-like files for dashboards (Markdown with inlined SQL + HTML components for viz with support for CSS and Javascript)\n- Connects to popular data warehouses or local DuckDB<p>Your coding agent will build really in-depth reports and can ofc leverage any other skills or context that you&#x27;ve made available to it. We dogfood it inside a monorepo with our website, app source code, planning docs, etc so the agent has access to a ton of context. It’s also nice that the agent can add instrumentation, adjust pipelines and transformations, and add dashboards all in one PR.<p>If you want to try it out, just point your coding agent at <a href=\"https:&#x2F;&#x2F;github.com&#x2F;graphene-data&#x2F;graphene&#x2F;blob&#x2F;main&#x2F;docs&#x2F;setup.md\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;graphene-data&#x2F;graphene&#x2F;blob&#x2F;main&#x2F;docs&#x2F;set...</a> and ask it to set up Graphene.<p>If you don’t have data to play with, you can clone our example project:<p>1. `git clone &lt;<a href=\"https:&#x2F;&#x2F;github.com&#x2F;graphene-data&#x2F;example-flights.git`\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;graphene-data&#x2F;example-flights.git`</a>&gt;\n2. `cd example-flights &amp;&amp; npm install`<p>Would love any&#x2F;all feedback!","time":1790890192,"title":"Show HN: Graphene – Data analysis toolkit for your coding agent","type":"story","url":"https://github.com/graphene-data/graphene"}