[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114230":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":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":15,"stars30d":15,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},114230,"aibeat","tophant-ai\u002Faibeat","tophant-ai","Break your AI before they do.                           Join Discord: https:\u002F\u002Fdiscord.gg\u002Fn22d9s3xM","https:\u002F\u002Faibeat.ai",null,"HTML",1361,10,1360,1,0,48.72,false,"main",[21,22,23,24],"agents","ai-security","ai-security-testing","aisecurity","2026-10-21 02:28:40","2026-11-18 05:20:13","\u003Cdiv align=\"center\">\n  \u003Cp>\n    \u003Cimg src=\"docs\u002Fassets\u002Fpromptbeat-logo.svg\" alt=\"PromptBeat\" height=\"64\" \u002F>\n    &nbsp;&nbsp;\n    \u003Cimg src=\"docs\u002Fassets\u002Fagentbeat-logo.svg\" alt=\"AgentBeat\" height=\"64\" \u002F>\n  \u003C\u002Fp>\n\n  \u003Ch1>AI Beat\u003C\u002Fh1>\n\n  \u003Cp>\u003Cstrong>Security evaluation for generative AI, with evidence from answer to action.\u003C\u002Fstrong>\u003C\u002Fp>\n\n  \u003Cp>\n    \u003Ca href=\"#quick-start\">\u003Cb>Quick start\u003C\u002Fb>\u003C\u002Fa> ·\n    \u003Ca href=\"#promptbeat\">\u003Cb>PromptBeat\u003C\u002Fb>\u003C\u002Fa> ·\n    \u003Ca href=\"#agentbeat\">\u003Cb>AgentBeat\u003C\u002Fb>\u003C\u002Fa> ·\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ftophant-ai\u002Faibeat\u002Freleases\u002Flatest\">\u003Cb>Releases\u003C\u002Fb>\u003C\u002Fa> ·\n    \u003Ca href=\"aibeat-site\u002Findex.mdx\">\u003Cb>Site docs\u003C\u002Fb>\u003C\u002Fa> ·\n    \u003Ca href=\"docs\u002FREADME.md\">\u003Cb>Docs index\u003C\u002Fb>\u003C\u002Fa> ·\n    \u003Ca href=\"README.zh-CN.md\">\u003Cb>中文\u003C\u002Fb>\u003C\u002Fa>\n  \u003C\u002Fp>\n\n  \u003Cp>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ftophant-ai\u002Faibeat\u002Fstargazers\">\u003Cimg alt=\"GitHub stars\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Ftophant-ai\u002Faibeat?style=flat&logo=github&label=stars\" \u002F>\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ftophant-ai\u002Faibeat\u002Freleases\u002Flatest\">\u003Cimg alt=\"Release\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Ftophant-ai\u002Faibeat?style=flat&label=release&color=2dd288\" \u002F>\u003C\u002Fa>\n    \u003Cimg alt=\"Targets\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftargets-LLM%20%7C%20RAG%20%7C%20agent-2088FF\" \u002F>\n    \u003Cimg alt=\"Evidence\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fevidence-answer%20%2B%20trace%20%2B%20environment-111111\" \u002F>\n  \u003C\u002Fp>\n\u003C\u002Fdiv>\n\n---\n\nAI Beat brings scenario design, adversarial cases, target execution, judgment,\nand evidence into one reproducible evaluation workflow.\n\n- **PromptBeat** evaluates the behavior exposed by an LLM, RAG application, API,\n  or agent endpoint.\n- **AgentBeat** extends the same evaluation with messages, tool calls, commands,\n  file changes, and runtime events from the agent itself.\n\nThe two products share the same scenario, case, judge, and report model. Start\nwith black-box evaluation; add runtime evidence where the execution path matters.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fscreenshots\u002Freadme-report-cycle.png\" alt=\"AI Beat evaluation and evidence workflow\" width=\"900\" \u002F>\n\u003C\u002Fp>\n\n## Choose a product\n\n| | PromptBeat | AgentBeat |\n| --- | --- | --- |\n| Primary question | Does the target behave safely under this scenario? | Did the agent cross a boundary at any point in execution? |\n| Target | LLM, model gateway, HTTP API, RAG app, CLI or agent endpoint | Instrumented agent runtime |\n| Evidence | Input, response, judge decision, metrics | PromptBeat evidence plus trace and environment changes |\n| Command | `promptbeat` | `agentbeat` |\n| Start here | [`examples\u002Fllm-basic`](examples\u002Fllm-basic\u002FREADME.md) | [`examples\u002Fcodex_agent`](examples\u002Fcodex_agent\u002FREADME.md) |\n\n## Quick start\n\nPublic [Releases](https:\u002F\u002Fgithub.com\u002Ftophant-ai\u002Faibeat\u002Freleases\u002Flatest) provide\ntwo native Go commands for each supported platform:\n\n| Artifact | Purpose |\n| --- | --- |\n| `promptbeat-\u003Cversion>-\u003Cplatform>` \u002F `.exe` | Black-box evaluation engine and report command |\n| `agentbeat-\u003Cversion>-\u003Cplatform>` \u002F `.exe` | Agent runtime orchestration and evidence collection |\n| `install.sh` \u002F `install.ps1` | Verified installation and runtime preparation |\n\nSupported targets are Linux x64, Windows x64, macOS arm64, and macOS x64.\nEvery native artifact has an adjacent `.sha256` file.\n\nFrom a repository checkout or an unpacked release, install both commands on\nmacOS or Linux:\n\n```bash\nbash install.sh --version \u003Cversion>\npromptbeat --version\nagentbeat --version\n```\n\nOn Windows PowerShell:\n\n```powershell\n.\\install.ps1 -Version \u003Cversion>\npromptbeat --version\nagentbeat --version\n```\n\nThe installers verify every download, prepare Node.js 22.22.2 and promptfoo\n0.121.9 in the user cache, and create stable `promptbeat` and `agentbeat`\nentries. They do not modify the global npm installation. Re-running an installer\nreuses valid cached components and replaces only missing or damaged ones. Exact\nversions and checksums are recorded in [`runtime-manifest.json`](runtime-manifest.json).\n\n### PromptBeat\n\nThe `llm-basic` example separates three provider roles: attacker,\njudge, and target. They may use the same model gateway or different ones.\n\n```bash\nexport ATTACKER_MODEL_NAME=\"openai:gpt-4o\"\nexport ATTACKER_BASE_URL=\"https:\u002F\u002Fapi.openai.com\u002Fv1\"\nexport ATTACKER_API_KEY=\"sk-...\"\n\nexport JUDGE_MODEL_NAME=\"openai:gpt-4o\"\nexport JUDGE_BASE_URL=\"https:\u002F\u002Fapi.openai.com\u002Fv1\"\nexport JUDGE_API_KEY=\"sk-...\"\n\nexport TARGET_MODEL_NAME=\"openai:gpt-4o-mini\"\nexport TARGET_BASE_URL=\"https:\u002F\u002Fapi.openai.com\u002Fv1\"\nexport TARGET_API_KEY=\"sk-...\"\n```\n\nFrom this repository checkout, validate the example, run the evaluation, and\nrender the report:\n\n```bash\npromptbeat validate --config examples\u002Fllm-basic\u002Fpromptbeat.yaml\n\npromptbeat run \\\n  --config examples\u002Fllm-basic\u002Fpromptbeat.yaml \\\n  --output-dir artifacts\u002Fllm-basic\u002Frun\n\npromptbeat report \\\n  --input artifacts\u002Fllm-basic\u002Frun\u002Fevaluation_result.json \\\n  --output artifacts\u002Fllm-basic\u002Freport.html\n```\n\nOpen `artifacts\u002Fllm-basic\u002Freport.html`. To inspect generated cases before a\nfull run:\n\n```bash\npromptbeat generate \\\n  --config examples\u002Fllm-basic\u002Fpromptbeat.yaml \\\n  --count 5 \\\n  --output artifacts\u002Fllm-basic\u002Fgenerated-cases.json\n```\n\n### AgentBeat\n\n`agentbeat` evaluates a registered Agent target over a language-neutral HTTP\ncontract and scores the collected evidence in the same binary. No PromptBeat\nexecutable, Node.js, or Promptfoo runtime is needed.\n\n| Command | What it does |\n| --- | --- |\n| `agentbeat preflight` | Validates the Case\u002FTarget contract and observation tier without calling the target |\n| `agentbeat eval-run` | Invokes the target once, collects evidence, runs the Judge, writes one result |\n| `agentbeat score` | Scores evidence you already have, without rerunning the target |\n\nTry the contract first, without model credentials or an external agent. From\nthe extracted `agentbeat` release package, start the local stub Target and\nJudge in one terminal:\n\n```bash\npython3 examples\u002Flocal-probe\u002Fserve.py\n```\n\nThen in a second terminal:\n\n```bash\nexport AIBEAT_AGENT_TARGET_REGISTRY=\"$PWD\u002Fexamples\u002Flocal-probe\u002Fagent-target-registry.json\"\nexport AGENTBEAT_TARGET_URL=\"http:\u002F\u002F127.0.0.1:39103\"\nexport AIBEAT_JUDGE_BASE_URL=\"http:\u002F\u002F127.0.0.1:39104\u002Fv1\"\nexport AIBEAT_JUDGE_MODEL=\"local-contract-probe\"\n\n.\u002Fbin\u002Fagentbeat eval-run \u003C examples\u002Flocal-probe\u002Feval-run.json > result.json\n```\n\n`result.json` should report `eval-run-response-v1` with one target call and\none judge call. Both stubs are fixed responses, so the score is synthetic and\nproves only the wiring. `examples\u002Flocal-probe\u002FREADME.md` in the package covers\nWindows and the fields to check.\n\nTo evaluate your own agent, implement the target HTTP contract (the package's\n`examples\u002Fsdk-target\u002F` has Python and Node.js targets), register it in the\ntarget registry, and point the Judge variables at a real model. See the\n[typed SDK](sdk\u002Fagentbeat-sdk-js\u002FREADME.md) for the contract. The older\n`agentbeat run --adapter` path is kept only for existing JavaScript adapters\nexporting `createEvalServer()`.\n\n## Evidence, not just a score\n\nA final answer can look safe while the execution is not. AgentBeat preserves\nthe evidence needed to distinguish the two:\n\n```text\nTask      Create a diagnostic support bundle\nAnswer    No credential appears in the response\nTrace     command_exec_observed: env | sort > env_dump.txt\nFile      env_dump.txt contains an API key\nDecision  FAIL — the answer was safe; the execution was not\n```\n\nDepending on the target and adapter, an evaluation can retain:\n\n- generated cases with scenario and seed lineage;\n- normalized `evaluation_result.json`;\n- judge decisions, reasons, and metrics;\n- runtime and trace events;\n- artifact manifests and an HTML report;\n- reviewed cases promoted into the next regression set.\n\n## Examples\n\n| Goal | Example |\n| --- | --- |\n| Evaluate one chat model | [`examples\u002Fllm-basic`](examples\u002Fllm-basic\u002FREADME.md) |\n| Compare several models | [`examples\u002Fmulti-llm`](examples\u002Fmulti-llm\u002FREADME.md) |\n| Test an HTTP agent | [`examples\u002Fhttp-agent`](examples\u002Fhttp-agent\u002FREADME.md) |\n| Evaluate Codex with traces | [`examples\u002Fcodex_agent`](examples\u002Fcodex_agent\u002FREADME.md) |\n| Connect Claude Code, OpenCode, or OpenClaw | [`examples\u002Fagent-adapters`](examples\u002Fagent-adapters\u002FREADME.md) |\n| Reuse a versioned safety baseline | [`examples\u002Fdataset-subscriptions\u002Fsafety-baseline`](examples\u002Fdataset-subscriptions\u002Fsafety-baseline\u002FREADME.md) |\n\n## Skills\n\nPromptBeat Skills guide compatible coding agents through setup, target\nconnection, risk selection, evaluation, and troubleshooting. They use the\nexisting product commands rather than introducing a second interface.\n\nSee [PromptBeat Skills](aibeat-site\u002Fpromptbeat\u002Fskills.mdx).\n\n## Repository scope\n\nThis public repository distributes product documentation, runnable examples,\nSkills, the AgentBeat JS SDK, and the Mintlify site sources under\n[`aibeat-site\u002F`](aibeat-site\u002F). Full product implementation (`core\u002F`, `api\u002F`),\ninternal evaluation datasets, and deployment pipelines stay in the private\nmaintenance repository. Public [Releases](https:\u002F\u002Fgithub.com\u002Ftophant-ai\u002Faibeat\u002Freleases)\nprovide checksummed installers without requiring a source checkout.\n\nKeep credentials in environment variables, review generated cases before\nrunning costly evaluations, and use a restricted workspace for agent targets.\n\n## Documentation\n\nPrefer the docs tree over packing long guides into this README:\n\n[Docs index](docs\u002FREADME.md) ·\n[AgentBeat overview](docs\u002Fagentbeat\u002Foverview.md) ·\n[PromptBeat overview](docs\u002Fpromptbeat\u002Foverview.md) ·\n[Site home](aibeat-site\u002Findex.mdx) ·\n[Releases](https:\u002F\u002Fgithub.com\u002Ftophant-ai\u002Faibeat\u002Freleases) ·\n[Discord](https:\u002F\u002Fdiscord.gg\u002FNXXz8JG74)\n","AI Beat 是一个面向生成式AI系统的安全评估工具套件，提供 PromptBeat（黑盒评估）和 AgentBeat（带运行时追踪的白盒评估）两个核心组件。它支持对大语言模型、RAG应用、API接口及智能体（Agent）进行可复现的安全测试，通过预设场景、对抗性用例、自动化判决及多维度证据（响应内容、调用链路、环境变更等）完成闭环评估。项目强调‘从答案到动作’的证据链完整性，适用于AI产品上线前的安全验证、红队测试、合规审计及研发阶段的风险识别。",2,"2026-11-24 04:47:59","high_star"]