AI Attestation:建立 AI 生成代碼的透明度標準 | AI Attestation: Establishing a Transparency Standard for AI-Generated Code

一個開放標準,用於追蹤儲存庫中 AI 生成代碼的來源與合規性。 | An open standard for tracking the provenance and compliance of AI-generated code in your repositories.

🔎 工具速覽 / AT A GLANCE

CategoryDevOps / Compliance Tool
PricingFree (Open Source / CC0 Spec)
BestForEnterprise compliance teams, OSS maintainers, and security auditors.
GitHub Stars⭐ 132

🚀 引言 / Introduction

隨著 AI 輔助編程工具的普及,代碼庫的成分正迅速改變。AI Attestation 提供了一套機器可讀的標準,幫助開發者與企業明確地記錄哪些代碼由 AI 生成及其審查狀態。 | As AI-assisted programming tools proliferate, the composition of codebases is shifting rapidly. AI Attestation provides a machine-readable standard to explicitly document which code is AI-generated and its review status.

🛠️ 核心功能 / Key Features

Automated Tracking: Automatically identifies AI tool signatures by scanning Git history to generate tracking files.

自動化追蹤:透過掃描 Git 歷史記錄,自動識別 AI 工具簽名並生成追蹤文件。

Multi-dimensional Detection: Supports various detection mechanisms including Co-author trailers, commit messages, metadata headers, and Git configurations.

多維度偵測:支持 Co-author 標籤、提交訊息、元數據標頭及 Git 配置等多種偵測機制。

Extensive Tool Support: Capable of detecting 19 leading AI coding tools, including GitHub Copilot, Cursor, and Claude Code.

廣泛的工具支持:目前可偵測包括 GitHub Copilot, Cursor, Claude Code 在內的 19 種主流 AI 編程工具。

Governance Scan Records: Allows tracking whether AI-generated code has undergone governance scanning to ensure compliance.

治理掃描記錄:允許記錄 AI 生成代碼是否已通過治理掃描,確保合規性。

💡 技術亮點 / Tech Highlights

Open Standard: Built on a CC0 spec, aiming to become a universal, permissionless transparency standard for the industry.

開放標準:採用 CC0 規範,旨在成為業界通用、無權限限制的透明度標準。

Seamless Integration: Implements automatic updates via post-commit hooks, eliminating the need for manual maintenance.

無感集成:透過 post-commit hook 實現每次提交後自動更新,無需手動維護。

Enterprise Compliance: Addresses audit requirements regarding AI code ratios, tool origins, and review statuses.

企業級合規:解決企業對 AI 代碼佔比、工具來源及審核狀態的審計需求。

📦 快速上手 / Quick Start

Run the initialization command: `npx @korext/ai-attestation init`

執行初始化指令:`npx @korext/ai-attestation init`

Automatic History Scan: The tool scans Git history and creates `.ai-attestation.yaml` in the root directory.

自動掃描歷史:工具將掃描 Git 歷史並在根目錄創建 `.ai-attestation.yaml`。

Configure Auto-updates: Installs a post-commit hook to ensure data is synchronized on every commit.

配置自動更新:安裝 post-commit hook,確保每次提交時數據同步更新。

準備好試試 AI Attestation:建立 AI 生成代碼的透明度標準 | AI Attestation: Establishing a Transparency Standard for AI-Generated Code 了嗎?

Ready to try AI Attestation:建立 AI 生成代碼的透明度標準 | AI Attestation: Establishing a Transparency Standard for AI-Generated Code?

前往 GitHub 頁面 →

留言

這個網誌中的熱門文章

[Security] wpa_supplicant setup

[拆機] Nexus5 更換背蓋、電池

[我的MAC Air] 2012年中,MAC Air SSD升級