[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108732":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":13,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":35,"discoverSource":36},108732,"lingee-bench","kingdee\u002Flingee-bench","kingdee","Enterprise-grade benchmark evaluating whether AI agents deliver verifiable business outcomes in real business systems — general domain, finance, supply chain, and manufacturing. ","https:\u002F\u002Fbench.lingee.com\u002F",null,"Python",190,37,1,0,2,49.44,"Apache License 2.0",false,"main",true,[23,24,25,26,27,28,29,30],"aiagent","benchmark","erp","eval","fin","gen","mfg","scm","2026-11-06 02:37:20","2026-11-20 09:58:04","# Lingee Bench\n\n**English** | [简体中文](README.zh-CN.md)\n\nLingee Bench is an agent evaluation framework built on [Harbor](https:\u002F\u002Fgithub.com\u002Fharbor-framework\u002Fharbor). It provides harness adapters, model and MCP proxies, an offline ERP mock service, and batch-run and scoring tools. The tasks, input data and graders are published as a dataset with two download sources that carry the same content; use either one:\n\n- Hugging Face: [KD-Lingee\u002Flingee-bench](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FKD-Lingee\u002Flingee-bench)\n- GitHub: [kingdee\u002Flingee-bench-datasets](https:\u002F\u002Fgithub.com\u002Fkingdee\u002Flingee-bench-datasets)\n\n| Split | Tasks | Where to get it |\n| --- | ---: | --- |\n| Enterprise | 30 | Download from Hugging Face or GitHub into `datasets\u002Flg-bench-enterprise-v1.0\u002F`; finance, manufacturing, supply chain |\n| General | 35 | Download from Hugging Face or GitHub into `datasets\u002Flg-bench-general-v1.0\u002F`; data analysis, documents, retrieval, images and scheduling |\n| Examples | 2 | Shipped with the repository in [examples\u002Ftasks](examples\u002Ftasks); for framework self-tests and task authoring, not part of official scores |\n\nEnterprise and general results are reported separately. A release is identified by the Git commit or tag of this repository, the source and revision of the dataset (Hugging Face revision or GitHub commit\u002Ftag), the task manifest and the file digests together.\n\nSupported harnesses: Claude Code, Pi, DeepSeek Harness, OpenCode. See the [docs index](docs\u002FREADME.md) for runtime requirements and configuration.\n\n## Let a coding agent walk you through it\n\nThe repository ships skills under `.agents\u002Fskills\u002F`. A coding agent that supports skills can follow them from a fresh clone to final scores. It shows each command before running it and asks before anything that costs money:\n\n- [lg-bench-setup](.agents\u002Fskills\u002Flg-bench-setup\u002FSKILL.md): install, dataset download, images, credentials, preflight and baselines, smoke test, general batch run, score summary.\n- [erp-mock-batch-eval](.agents\u002Fskills\u002Ferp-mock-batch-eval\u002FSKILL.md): the 30-task ERP batch run and its summary.\n\nOpen the agent in the repository root and state your goal, for example:\n\n> Use lg-bench-setup to get OpenCode + glm-5.3-flash running: first the example smoke test, then all 35 general tasks, and summarize the scores.\n\nPut your keys into `.env.glm` yourself; do not paste them into the chat. The manual steps below follow the same flow.\n\n## 1. Install\n\nRequires Python 3.12, [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) and a working Docker (API ≥ 1.48, macOS or Linux).\n\n```bash\nuv sync --locked\ncp .env.example .env.glm\n```\n\nFill in the model endpoint and key in `.env.glm`: `LG_OPENAI_*` for harnesses that speak the OpenAI-compatible protocol, `LG_ANTHROPIC_*` for Claude Code. The judge used by the general and ERP tasks speaks the OpenAI-compatible protocol, so `LG_OPENAI_*` is required for those tasks. Credential files are never committed; real credentials only reach the model proxy.\n\nBuild the model proxy and the harness image you need, OpenCode as an example:\n\n```bash\ndocker build -f docker\u002Fmodel-proxy\u002FDockerfile -t lg-bench\u002Fmodel-proxy:0.1.0 .\nuv run lg-bench harness build opencode\n```\n\n## 2. Smoke test on the example task (no dataset needed)\n\nCheck that the pipeline and credentials work:\n\n```bash\nuv run lg-bench preflight --config configs\u002Fjobs\u002Fopencode-glm-5.2-smoke.yaml --env-file .env.glm --require-env\nuv run harbor run --config configs\u002Fjobs\u002Fopencode-glm-5.2-smoke.yaml --env-file .env.glm --job-name smoke-opencode\nuv run python .agents\u002Fskills\u002Flg-bench-setup\u002Fscripts\u002Fsummarize_job.py jobs\u002Fsmoke-opencode --env-file .env.glm\n```\n\nThis job uses `glm-5.2`, which is the only model the proxy allows by default. To use another model, set `LG_PROXY_ALLOWED_MODELS` in `.env.glm` and change `model_name` in a `*.local.yaml` copy of the job.\n\n## 3. Download the datasets\n\nUse either source. See [datasets](datasets\u002FREADME.md) for pinning a revision.\n\nFrom Hugging Face:\n\n```bash\nuvx --from huggingface_hub hf download KD-Lingee\u002Flingee-bench \\\n  --repo-type dataset --revision \u003Crevision> --local-dir datasets \\\n  --include \"lg-bench-*\u002F**\" --include \"environments\u002F**\" --include \"registry.json\"\n```\n\nOr from GitHub. Binary inputs are stored with Git LFS, so install [git-lfs](https:\u002F\u002Fgit-lfs.com\u002F) first; without it you get pointer files. Clone into a scratch directory and copy only the suites and the evaluation environment, so the data repository's root README does not overwrite `datasets\u002FREADME.md`:\n\n```bash\ngit lfs install\nD=.cache\u002Flingee-bench-datasets\ngit clone https:\u002F\u002Fgithub.com\u002Fkingdee\u002Flingee-bench-datasets.git \"$D\"\ngit -C \"$D\" checkout \u003Crevision>\ncp -R \"$D\"\u002Flg-bench-enterprise-v1.0 \"$D\"\u002Flg-bench-general-v1.0 \"$D\"\u002Fenvironments \"$D\"\u002Fregistry.json datasets\u002F\n```\n\nThen verify:\n\n```bash\nuv run python scripts\u002Fcheck_release.py --datasets\n```\n\n## 4. General tasks: batch run and scoring\n\nGenerate a batch job for any harness, agent model and judge model. Network isolation and judge wiring follow the official job. The script also writes a model allowlist fragment.\n\n```bash\nuv run python .agents\u002Fskills\u002Flg-bench-setup\u002Fscripts\u002Fgeneral_job.py \\\n  --harness-job configs\u002Fjobs\u002Fopencode-glm-5.2-smoke.yaml \\\n  --model glm-5.3-flash --judge-model glm-5.3-flash \\\n  --output configs\u002Fjobs\u002Fgeneral-opencode-glm-5.3-flash.local.yaml\nuv run lg-bench preflight --config configs\u002Fjobs\u002Fgeneral-opencode-glm-5.3-flash.local.yaml --env-file .env.glm --require-env\nuv run harbor run --config configs\u002Fjobs\u002Fgeneral-opencode-glm-5.3-flash.local.yaml \\\n  --env-file .env.glm --job-name general-opencode-flash\nuv run python .agents\u002Fskills\u002Flg-bench-setup\u002Fscripts\u002Fsummarize_job.py jobs\u002Fgeneral-opencode-flash --env-file .env.glm\n```\n\nAll 35 tasks run by default; use `--tasks` for a subset. Single-task runs and the network boundary are covered in [general task runs](docs\u002Fgeneral-smoke.md).\n\n## 5. ERP tasks: batch run and scoring\n\nBuild the MCP proxy and the offline ERP mock first. The mock image bakes in the downloaded evaluation instance from `datasets\u002Fenvironments\u002Ferp-mock-mcp\u002F`, so rebuild it after updating the dataset:\n\n```bash\ndocker build -f docker\u002Fmcp-proxy\u002FDockerfile -t lg-bench\u002Fmcp-proxy:0.1.0 .\ndocker build -f docker\u002Ferp-mock-mcp\u002FDockerfile -t lg-bench\u002Ferp-mock-mcp:0.1.0 .\n```\n\nSet `LG_PROXY_ALLOWED_MODELS` in `.env.glm` to include both the agent and the judge model, for example `glm-5.3-flash,glm-5.3`. Then generate the 30 per-task configs, run them one by one and summarize:\n\n```bash\nB=jobs\u002Ferp30-opencode\nuv run python .agents\u002Fskills\u002Ferp-mock-batch-eval\u002Fscripts\u002Fbatch.py prepare \\\n  --harness-job configs\u002Fjobs\u002Fopencode-glm-5.2-smoke.yaml \\\n  --model glm-5.3-flash --judge-model glm-5.3 --output $B\npython3 -c \"import json,sys; [print(t['task'], t['config'], t['job_dir']) for t in json.load(open(sys.argv[1]))['tasks']]\" $B\u002Fbatch.json |\nwhile read -r task cfg dir; do\n  [ -e \"$dir\" ] && continue   # skip tasks that already have results; safe to rerun after an interruption\n  uv run harbor run --config \"$cfg\" --env-file .env.glm --job-name \"$task\" \u003C \u002Fdev\u002Fnull\ndone\nuv run python .agents\u002Fskills\u002Ferp-mock-batch-eval\u002Fscripts\u002Fbatch.py summary --batch $B\u002Fbatch.json\n```\n\nEach task binds its own mock dataset and tool allowlist, so each task is its own job. Evaluation runs against the frozen mock published with the dataset, so no connection to a real ERP is needed. Scoring conventions are in [ERP scoring](docs\u002Ferp-scoring.md).\n\n## Reading the scores\n\nSummaries bucket trials by scoring status. Only officially graded trials enter the mean; execution errors, evaluation errors (including judge failures), missing scores and unfinished trials are listed separately and never counted as zero. When reporting, state the repository commit, dataset source and revision, harness and version, agent and judge models, number of attempts, and the denominator of the mean. Report the general and ERP splits separately.\n\n## Checks and development\n\nWithout the datasets:\n\n```bash\nuv run lg-bench validate          # validates examples\u002Ftasks\nuv run lg-bench smoke             # local reference solution and grader of the example task\nuv run python scripts\u002Fcheck_release.py\nuv run pytest -q                  # dataset-dependent tests are reported as skipped\n```\n\nAfter downloading the datasets:\n\n```bash\nuv run python scripts\u002Fcheck_release.py --datasets\nuv run lg-bench validate --path datasets\u002Flg-bench-enterprise-v1.0\u002Ftasks\nuv run lg-bench validate --path datasets\u002Flg-bench-general-v1.0\u002Ftasks\nuv run pytest -q\n```\n\n## Layout\n\n```text\nexamples\u002Ftasks\u002F      example tasks (framework self-tests, authoring reference)\ndatasets\u002F            download location for the datasets (not committed, see datasets\u002FREADME.md)\nerp-mock-mcp\u002F        offline business service engine, demo instance and hand-modeled packs\nconfigs\u002F             Harbor job and compose configuration\nsrc\u002Flg_bench\u002F        harness adapters, proxies, validation and preflight\nscripts\u002F             release checks and batch scripts\n.agents\u002Fskills\u002F      setup, batch-run and score-triage skills\ndocs\u002F                usage and scoring documentation\n```\n\n## License\n\nOur own code and documentation are licensed under [Apache-2.0](LICENSE). Third-party components keep their original authorship, copyright and license notices; see [NOTICE](NOTICE) for the scope. The dataset license is stated on the Hugging Face dataset card and in the LICENSE of the GitHub data repository.\n","Lingee Bench 是一个面向企业级AI代理（AI Agent）效果验证的基准测试框架，用于评估AI代理在真实业务系统中交付可验证商业结果的能力。它覆盖通用领域及金融、供应链、制造等垂直场景，提供ERP模拟服务、多模型适配器、离线批量评测与自动化评分工具，并发布结构化任务数据集（含30个企业任务与35个通用任务）。基于Harbor框架构建，支持Claude Code、DeepSeek Harness等主流Agent运行时，强调业务语义准确性与结果可审计性。适用于企业AI应用选型、Agent能力横向对比及行业解决方案效果验证。","2026-11-24 04:35:05","CREATED_QUERY"]