agent-graph-auditor

v0.3.1
io.github.GuardBee/agent-graph-auditor Checked 1 hour ago Published 1 month ago

Finds transitive excessive agency across LangGraph/CrewAI/AutoGen orchestration graphs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_text

Scan a Python snippet defining a multi-agent orchestration (LangGraph, CrewAI, or AutoGen/ag2) for excessive agency reachable through delegation or group membership — an agent with no dangerous tool of its own that can still reach one (shell/code-exec/file-write/network/credentials) through another agent it can hand off to.

ParameterTypeDescription
content *stringThe Python source to scan
labelstringOptional label shown in findings (e.g. filename)

scan_file

Scan a single Python file for excessive-agency paths across LangGraph/CrewAI/AutoGen orchestration constructs

ParameterTypeDescription
path *stringAbsolute or relative path to the .py file to scan

scan_directory

Recursively scan a directory of Python files and report excessive-agency paths found in each. Each file's agent/tool graph is analyzed independently — variable references don't resolve across files, so a Crew/GroupChat whose members are defined in a different file than the assembling call won't be connected.

ParameterTypeDescription
path *stringAbsolute or relative path to the directory to scan
excludearraySkip files/dirs whose path contains one of these strings
includearrayOnly scan files whose path contains one of these strings
maxFilesintegerMaximum number of files to scan (default: 2000)

list_patterns

List every dangerous-capability rule this auditor looks for at the end of a delegation path, grouped by category