[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115612":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":14,"starSnapshotCount":14,"syncStatus":12,"lastSyncTime":26,"discoverSource":27},115612,"ai-eval-studio","awslabs\u002Fai-eval-studio","awslabs",null,"Python",560,5,2,1,0,392,73.33,"Apache License 2.0",false,"main",true,[],"2026-11-05 04:53:17","2026-11-23 17:25:56","# AI Eval Studio\n\nAn end-to-end LLM evaluation platform. Upload a dataset, describe your goal in chat,\nand the system runs evaluations across models, optimizes the prompt iteratively against\nreal failures, and hands you back a standalone Python eval harness you can run in CI.\n\nEvery model call — the agent driving the conversation, the models under test, and the\nLLM judge — runs on Amazon Bedrock.\n\n> **This project is a prototype for demonstration, not for production use.** Before\n> using it with real data or real users, do your own independent assessment against\n> your security and quality standards. [`SECURITY.md`](SECURITY.md) lists what the\n> default deployment does and does not do, and the steps to take it to production.\n\n## What it does\n\nYou talk to a coordinator agent, which walks the project through seven phases:\n\n| Phase | What happens |\n|---|---|\n| 1. Data analysis | Profiles your uploaded CSV\u002FExcel and proposes field mappings |\n| 2. Configuration | Picks candidate models on a cost-quality frontier and chooses metrics |\n| 3. Eval harness | Generates a standalone DeepEval harness and validates it runs |\n| 4. Baseline prompt | Drafts the prompt to optimize from |\n| 5. Confirm & run | Measures a real baseline across the candidate pool |\n| 6. Eval + optimize | Iterates prompt edits against failures until scores converge |\n| 7. Report | Produces a cost\u002Fquality report and a recommended model + prompt |\n\nThe generated harness is the durable artifact: a self-contained Python project that\nruns without the platform. See\n[`backend\u002Fapp\u002Ftemplates\u002Fharness\u002FREADME.md`](backend\u002Fapp\u002Ftemplates\u002Fharness\u002FREADME.md).\n\n## Architecture\n\nThe platform runs in two modes from one codebase, selected by `EVAL_STUDIO_MODE`:\n\n- **`dev`** — everything in one FastAPI process on your machine, projects on local disk.\n- **`cloud`** — a Fargate coordinator behind CloudFront; agent turns run in a per-user\n  Bedrock AgentCore microVM, and each eval job runs as its own Fargate task.\n\n[![Architecture](docs\u002Fdiagrams\u002Farchitecture-overview.svg)](docs\u002Fdiagrams\u002Farchitecture-overview.svg)\n\n\u003Csub>Click to view full size. Editable source:\n[`architecture-overview.drawio`](docs\u002Fdiagrams\u002Farchitecture-overview.drawio) (draw.io).\u003C\u002Fsub>\n\n**Components**\n\n- **Frontend** — React 19 + Vite + TypeScript, shadcn\u002Fui + Tailwind, assistant-ui for chat.\n- **Backend** — FastAPI wrapping the Claude Agent SDK. One WebSocket (`\u002Fws`) carries\n  chat, job, and project events.\n- **Eval engine** — DeepEval, with three distinct model roles: the agent model, the\n  target models under test, and the judge model for LLM-as-a-judge metrics.\n- **Prompt optimization** — failure-driven and targeted-minimal-diff: read the eval\n  result (passing exemplars, failed-case digest, regression diff) and make the smallest\n  change that addresses the dominant failure pattern.\n- **Storage** — dev keeps each project as a self-contained directory; cloud puts working\n  trees on EFS, state in DynamoDB, and transcripts\u002Fsnapshots in S3.\n\n## Running locally\n\n**Prerequisites** — Python 3.11+, [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F), Node.js 22+, `git`,\nand AWS credentials.\n\n**Anthropic models need a one-time use-case form.** Bedrock enables its serverless\nmodels automatically, but each account must submit Anthropic's first-time-use form\nbefore the first call to a Claude model; submitting it from an organization's\nmanagement account covers its member accounts. The coordinator agent runs on\nClaude, so submit the form before the first chat. See\n[Access Amazon Bedrock foundation models](https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fmodel-access.html).\n\n> **The local agent runs shell commands on your machine without confirmation.**\n> The coordinator writes and executes an evaluation harness, and its `Bash` tool\n> is not sandboxed or path-restricted — it runs with your user's privileges. Run\n> it on a machine where that is acceptable.\n\n```bash\n(cd backend  && uv sync)\n(cd frontend && npm install)\n```\n\n```bash\n.\u002Fscripts\u002Fstart.sh   # starts backend on :8100 and frontend on :3100\n.\u002Fscripts\u002Fstop.sh\n```\n\nThen open \u003Chttp:\u002F\u002Flocalhost:3100>. `start.sh` exports `CLAUDE_CODE_USE_BEDROCK=1`, which\nthe Agent SDK requires.\n\nBoth processes log to the terminal and append to `.dev-logs\u002Fbackend.log` and\n`.dev-logs\u002Ffrontend.log` (gitignored), so a failure stays readable by someone who\nwasn't at the keyboard when it happened.\n\n## Deploying to AWS\n\nThe cloud deployment is AWS CDK (Python) across nine stacks — networking, storage, auth,\nIAM, observability, compute, frontend, AgentCore, and an AppRegistry application.\n\n- [`infra\u002FREADME.md`](infra\u002FREADME.md) — CDK prerequisites, synth, and the\n  deploy\u002Fiterate workflow.\n- [`docs\u002Frunbooks\u002Fdeploy.md`](docs\u002Frunbooks\u002Fdeploy.md) — first full cloud deploy,\n  start to finish.\n- [`docs\u002Frunbooks\u002Fteardown.md`](docs\u002Frunbooks\u002Fteardown.md) — full teardown.\n\nThe deployed entry point is the CloudFront URL; the ALB is internal and not reachable\nfrom the internet. Sign-in is Cognito hosted UI (OIDC + PKCE). The default deployment is\na development deployment; [`SECURITY.md`](SECURITY.md) lists the steps to take it to\nproduction.\n\n## Security scope\n\n**Treat one deployment as a single trust domain.** Everyone you onboard can reach\neveryone else's data. The platform is multi-user — Cognito sign-in, per-user projects —\nand every API route and agent tool call checks ownership before it\nanswers, but an application-layer check is not a boundary the agent itself is confined\nby: the product generates and runs code, with a shell, by design.\n\nThree specific gaps, named rather than summarised, because \"app-layer isolation only\"\nreads as vaguer than the truth:\n\n- **Project files are not fenced at all.** Every working tree sits under one EFS access\n  point that squashes all access to a single POSIX identity, so there is no per-user\n  permission to enforce. `Write`, `Edit` and `NotebookEdit` are path-jailed to the\n  project directory, and tool calls are pinned to the project the conversation is about\n  — but `Bash` reads `\u002Fmnt\u002Fprojects` directly and passes through neither. That is\n  deliberate: a static scan of a command line cannot contain `..`, `$VAR` or `$(...)`,\n  so scanning it would assert a guarantee it does not deliver\n  ([`agent_runner.py`](backend\u002Fapp\u002Fservices\u002Fagent_runner.py)). **Uploaded datasets,\n  prompts, generated harnesses and reports all live here** — the one layer with no IAM\n  surface.\n- **Chat transcripts are scoped by a credential that can be re-minted for anyone.** Each\n  turn runs on STS credentials narrowed to one user's S3 prefix, so the AWS API rejects\n  a cross-tenant read. But the role that mints them can ask for any tenant's tag: IAM\n  has no condition key binding a session tag's *value* to the requester, so the trust\n  policy can only require that a tag is present\n  ([`iam_stack.py`](infra\u002Fcdk\u002Fiam_stack.py)).\n- **Execution metadata is readable across tenants.** Job records, events and locks in\n  DynamoDB are reached with the runtime's own credentials, which are cross-tenant\n  because resolving an ownership check reads other owners' records by definition.\n\nThe second can be closed with `AssumeRoleWithWebIdentity`, carrying the tenant tag in\na claim inside the Cognito ID token so STS verifies it and the caller stops asserting it.\nThe first needs per-session filesystem storage instead of a shared mount; AgentCore\noffers one and it is in preview. **The first is what multi-tenant use actually depends\non**, and it is not done.\n\nTwo related properties are deliberate rather than oversights:\n\n- **Self-signup is disabled.** An administrator creates each user.\n- **The platform runs code an LLM wrote** — generating and executing an eval harness is\n  the product, not a side effect. The worker task role therefore carries no ambient S3\n  or DynamoDB grant; it reaches both only through the narrowed credential it mints for\n  that one job.\n\n## Tests and checks\n\n```bash\n(cd backend  && uv run pytest)      # backend suite\n(cd frontend && npm test)           # frontend suite (vitest)\n(cd frontend && npm run build)      # eslint + tsc + vite build\n.\u002Fscripts\u002Flint.sh                   # ruff over backend\u002F, infra\u002F, scripts\u002F\n.\u002Fscripts\u002Ftest-infra.sh             # CDK synth-level tests (see note)\n```\n\nThe infra tests need a runner because they sit between two virtualenvs: they\nimport `aws_cdk` (installed in `infra\u002F.venv`) and are collected by pytest\n(installed in `backend\u002F.venv`). `test-infra.sh` puts the former on `PYTHONPATH`\nfor the latter, so neither venv has to duplicate the other's dependencies.\n\nTests marked `integration` hit real external services and are skipped by default; run\nthem with `uv run pytest -m integration`.\n\n## Repository layout\n\n```\n├── frontend\u002F            # React 19 + Vite + TypeScript\n├── backend\u002F\n│   └── app\u002F\n│       ├── api\u002F         # Route handlers (chat, eval, projects, upload, ws)\n│       ├── agents\u002F      # Subagent definitions\n│       ├── prompts\u002F     # Coordinator + subagent system prompts (markdown)\n│       ├── models\u002F      # Pydantic schemas\n│       ├── platform\u002F    # dev vs cloud adapters (storage, auth, compute)\n│       ├── services\u002F    # Core logic (agent runner, jobs, reports, MCP tools)\n│       └── templates\u002F   # Standalone eval harness template\n├── infra\u002F               # AWS CDK app (nine stacks)\n├── scripts\u002F             # start.sh, stop.sh, lint.sh, test-infra.sh\n├── projects\u002F            # User eval projects (gitignored)\n└── docs\u002F                # Runbooks, diagrams, reference\n```\n\n## Documentation\n\n| Doc | What it covers |\n|---|---|\n| [`SECURITY.md`](SECURITY.md) | Reporting a vulnerability; path to production |\n| [`infra\u002FREADME.md`](infra\u002FREADME.md) | CDK layout, prerequisites, deploy\u002Fiterate loop |\n| [`docs\u002Frunbooks\u002Fdeploy.md`](docs\u002Frunbooks\u002Fdeploy.md) | First cloud deploy, step by step |\n| [`docs\u002Frunbooks\u002Fteardown.md`](docs\u002Frunbooks\u002Fteardown.md) | Full teardown |\n| [`docs\u002Ferror-codes.md`](docs\u002Ferror-codes.md) | Stable `ResourceError.code` catalog |\n| [`docs\u002Fnaming-conventions.md`](docs\u002Fnaming-conventions.md) | File and symbol naming rules |\n| [`docs\u002Ffrontend-design-system.md`](docs\u002Ffrontend-design-system.md) | Theming tokens and the no-hardcoded-color rule |\n| [`docs\u002Fdiagrams\u002F`](docs\u002Fdiagrams\u002F) | Cloud architecture diagram |\n\n## License\n\nThis project is licensed under the Apache-2.0 License. See [`LICENSE`](LICENSE),\n[`NOTICE`](NOTICE) and [`THIRD-PARTY-LICENSES`](THIRD-PARTY-LICENSES).\n\n### Claude Code\n\nThis project depends on the Claude Code CLI, which is proprietary to Anthropic PBC\nand not covered by this project's license. You must obtain and use it under\nAnthropic's [Commercial Terms of Service](https:\u002F\u002Fwww.anthropic.com\u002Flegal\u002Fcommercial-terms).\n\n## Reporting a security issue\n\nSee [`SECURITY.md`](SECURITY.md) for how to report a potential security issue. Please do\nnot open a public issue.\n\nKnown limitations of the deployed system are stated in [Security scope](#security-scope)\nabove — read that before deploying this for more than one person.\n","AI Eval Studio 是一个端到端的大语言模型（LLM）评估平台，支持用户上传数据集、通过自然语言描述评估目标，并自动完成模型对比、提示词迭代优化及可复现评估脚本生成。核心功能包括基于真实失败案例的提示词微调、多模型并行评估、LLM-as-a-judge 自动打分，以及输出独立可运行的 Python 评估套件（基于 DeepEval），所有模型调用均通过 Amazon Bedrock 托管。适用于 LLM 应用开发早期验证、提示工程优化和 CI\u002FCD 中的自动化模型质量门禁场景。","2026-11-24 04:51:33","CREATED_QUERY"]