Observed since 20 Oct, 23:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Local-first safety scanner and incident report generator for AI coding agent workspaces.
Production-grade local-first scanner and report generator for teams giving AI coding agents access to repos, terminals, credentials, MCP tools, and automation workflows.
AI coding agents are moving from autocomplete to execution. They can read files, run commands, call tools, mutate repos, invoke MCP servers, and sometimes touch production credentials. Most teams do not have a simple way to answer:
agent-safety-doctor starts as a productized-service accelerator: it generates a first-pass safety report for an AI Coding Agent Safety Audit.
Install from PyPI:
python -m pip install agent-safety-doctor
agent-safety-doctor scan /path/to/repo --output agent-safety-report.md
Run directly from a source checkout:
python -m agent_safety_doctor.cli scan /path/to/repo --output agent-safety-report.md
For editable development:
python -m pip install -e .
agent-safety-doctor scan /path/to/repo --output agent-safety-report.md
JSON output:
agent-safety-doctor scan /path/to/repo --output agent-safety-report.json
HTML output for buyer-facing review:
agent-safety-doctor scan /path/to/repo --output agent-safety-report.html
CI/pilot gating:
agent-safety-doctor scan /path/to/repo --fail-under 85 --output agent-safety-report.md
If the safety score is below the threshold, the CLI exits non-zero.
Create .agent-safety-doctor.toml in the scanned workspace:
[scanner]
ignore_dirs = [".git", "node_modules", ".venv", "dist", "build"]
ignore_globs = ["*.pyc", "*.png", "*safety-report.md"]
allow_secret_file_globs = ["*.example", ".env.example"]
max_file_bytes = 300000
scan_tests = false
Or pass an explicit config:
agent-safety-doctor scan /path/to/repo --config /path/to/.agent-safety-doctor.toml
Markdown report includes:
JSON report includes:
schema_versionmetadatascorecountsfindingsHTML report includes:
Secret values are redacted from reports.
Generate a sample high-risk report from the included unsafe demo workspace:
python -m agent_safety_doctor.cli scan examples/unsafe-agent-workspace --output docs/sample-unsafe-workspace-report.md --display-root unsafe-agent-workspace
python -m agent_safety_doctor.cli scan examples/unsafe-agent-workspace --output docs/sample-unsafe-workspace-report.json --display-root unsafe-agent-workspace
python -m agent_safety_doctor.cli scan examples/unsafe-agent-workspace --output docs/sample-unsafe-workspace-report.html --display-root unsafe-agent-workspace
View the included buyer-facing example:
The CLI is the first-pass evidence layer. Teams that need a scoped review of agent permissions, secrets exposure, destructive command paths, approval gates, and rollback readiness can review the AI Coding Agent Safety Audit.
This is a first-pass operational safety scanner, not a full penetration test, compliance audit, SAST engine, or guarantee of agent safety. It is designed to generate buyer-facing evidence quickly and identify obvious risky paths before deeper review.
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -q
python -m agent_safety_doctor.cli --version
python -m agent_safety_doctor.cli scan examples/unsafe-agent-workspace --output docs/sample-unsafe-workspace-report.md --summary
Sell the audit first. Productize repeated checks second.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 11 Aug 2026 | 0 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 23:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:72fc6af9abcd345ba3bd85b7a740d4e30c6efb9382fa9fbf96c320c4743ac3f4