SuperAPIAI Directory

Pandaone-AI-Agent

github.com · AI agents

Requires every AI agent code change to leave a problem, reason and approach audit record before commit, with a pre-commit hook and audit trail dashboard.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Pandaone Guard is a free, open-source, MIT-licensed MCP server for AI code auditing. Its core idea is to treat every AI Agent as an employee working in the codebase, while Pandaone is the codebase's dedicated manager; any code change must go through Pandaone's audit and approval, leaving a traceable chain of compliance evidence.

Purpose and applicable scenarios

  • AI Agent development: prevent Agents from bypassing review and modifying code directly.
  • Enterprise compliance: meet code change audit requirements such as SOC2 / ISO 27001.
  • Team collaboration: all PRs must have an audit record before being merged.

Main capabilities

  • 7-layer defense system: build multi-layer protection around file locks, audit logs, pre-commit hooks, and more.
  • Format coverage: protect 17 text formats (such as .py, .md, .json, .yml, .env) and 24 binary formats (such as .png, .pdf).
  • Native MCP support: AI IDEs such as Claude / Cursor / Trae can connect directly, exposing 11 tools (pandaone_init / lock / unlock / write / log / status / install_hook / watch / install_git / fingerprint_update / ci); all tools declare the complete 4 MCP annotations, complying with the OpenAI directory.
  • Audit credentials: every change must include a three-part record of reason / problem / approach; compliant changes are written, automatically git committed, and traced, while non-compliant changes are rejected and likewise traced.
  • File locking: pandaone lock --root . can set protected files to OS-level read-only (cannot be bypassed), and pandaone unlock --root . restores them. Note that it must be run as a regular user; OS permission bits are ineffective under root.
  • Audit log export: supports 13 formats, including Excel / Word / PDF / SQLite, and more.
  • Web real-time dashboard: displays project path, configuration summary, L1 lock status, binary snapshots, recent audits, version fingerprints, and more, and supports real-time push for collaboration across multiple AI tools (claude-code / cursor / trae).
  • Cross-platform: pure Python implementation, no C extensions, compatible with Windows / macOS / Linux.
  • Right-click menu integration: install native right-click menus on the three major platforms with one command (HKCU / Quick Action / Nautilus + Dolphin).
  • Internationalization: supports zh-CN / en bilingual CLI auto-detection, and --lang can be used to force a specification and persist the preference.
  • Environment diagnostics: doctor detects 9 items and automatically fixes 13 types of issues (pip / git / installation location / PATH / fingerprint contamination / setuptools / 5 runtime dependencies).

Usage Installation method A (from PyPI): Method B (from source, recommended for developers, includes the latest i18n + CI lint): The installation script automatically detects Python ≥ 3.10, probes git, uninstalls old versions in site-packages, performs pip install -e . editable installation, verifies that commands are available, and calls doctor.py --fix --persist-path to fix remaining issues.

Package name reminder: the package name on PyPI is pandaone-guard; the old name pandax-guard is deprecated (stopped at 0.7.4 and no longer updated). If you previously installed the old version, please uninstall it first: pip uninstall pandax-guard && pip install pandaone-guard

MCP configuration: can be integrated in claude_desktop_config.json and Cursor MCP configuration. ChatGPT Desktop's Developer Mode also natively supports MCP server; you need to enable Developer Mode in Settings → Beta features, then enter the configuration JSON in Settings → Connectors → Create new connector. Before the first conversation, ChatGPT will require installing pandaone-guard; if it is not installed automatically, you can manually runRun the installation command.

After configuration, you can directly say something to the AI, for example: "Change hi in main.py to hello, and explain why you changed it." The AI will be forced to go through the audit channel (pandaone_write), and must fill in the trio: reason / what problem is solved / what method is used.

Environment variable: there is only one secret variable, PANDAX_FP_PASSWORD, which is stored only in the local configuration and is never uploaded to any remote location.

Development and testing The current number of tests: 342 passed, 1 skipped, covering i18n / write / status / lock / ci / watchdog / export / init / e2e / serve / desktop-icon / gitignore. The project provides EXAMPLES.md (10 real workflows + terminal output), examples/ (5 runnable Python demo scripts), a bilingual Chinese-English documentation site in docs/ (mkdocs), and docs/index.html, an interactive HTML documentation homepage.

Limitations Regarding specific fees and pricing information, the materials do not provide it. Regarding more detailed deployment requirements or platform details not mentioned in the above content, the materials do not provide them.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools