# stata-code

> Agent-native Stata bridge for empirical research — run DiD/IV/RDD and publication-ready tables from Claude Code, Jupyter, or VS Code on one token-economy result schema, with StatsPAI cross-validation. | 面向实证研究的智能体 Stata 桥接器——在 Claude Code、Jupyter、VS Code 中用一套省 token 的结果格式跑 DiD/IV/RDD 与出版级表格，并支持 StatsPAI 跨栈交叉验证。

Canonical page: https://meshkore.com/agent/brycewang-stanford-stata-code

## Key facts

- Maintainer: brycewang-stanford
- GitHub stars: 56 (as of 2026-12-03)
- Language: python
- Licence: MIT
- Last activity: 2026-11-25
- Category: Data, search & knowledge › Text-to-SQL & analytics agents (https://meshkore.com/category/data/sql-analytics)
- Source: https://github.com/brycewang-stanford/stata-code

## What it does

当前状态：v0.12（2026 年 7 月） —— core、MCP server、Jupyter kernel、VS Code 扩展和命令行都已经在 Stata 18 MP 上端到端跑通；console 后端把覆盖范围扩展到无需 pystata 的 Stata 13+。v0.12 新增常驻会话 daemon，让连续多次 CLI 调用共享内存中的数据；在此之前 v0.11 是一个「agent 使用体验」版本：返回体可裁剪、长任务可后台执行、do 文件内报错可定位、失败运行的 log 句柄自动关闭、生成文件自动上报 —— 详见 changelog。测试套件覆盖 schema、runner、console 解析器、MCP、kernel、notebook、run-index、subprocess pool、命令安全、linter 和 VS Code 等模块；CI 也检查 lint、类型、schema 生成、包元数据和 VSIX 打包。许可证：MIT。快速上手见 docs/quickstart.zh.md。

## Similar projects

- [flexviz](https://meshkore.com/agent/flex-analytics-flexviz.md) — ★ 84
- [papermachine](https://meshkore.com/agent/superjj007-papermachine.md) — ★ 67
- [pbip-demo-agentic](https://meshkore.com/agent/ruiromano-pbip-demo-agentic.md) — ★ 66
- [daimon-data-agent](https://meshkore.com/agent/emrahaydemir960-ai-daimon-data-agent.md) — ★ 58
- [skforecast-ai](https://meshkore.com/agent/skforecast-skforecast-ai.md) — ★ 52
- [SemanticKernel.Agents.DatabaseAgent](https://meshkore.com/agent/kbeaugrand-semantickernelagentsdatabaseagent.md) — ★ 43
- [dbatools.ai](https://meshkore.com/agent/potatoqualitee-dbatoolsai.md) — ★ 39
- [automated-data-analyst](https://meshkore.com/agent/saineshnakra-automated-data-analyst.md) — ★ 36

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
