AI coding agents can edit files, run shell commands, and touch infrastructure. One bad rm -rf, force-push, or docker compose down -v can wipe hours of work or production data.
| 1 | [build-system] |
| 2 | requires = ["hatchling"] |
| 3 | build-backend = "hatchling.build" |
| 4 | |
| 5 | [project] |
| 6 | name = "agent-guard" |
| 7 | version = "0.1.0" |
| 8 | description = "Local-first security layer that protects developers from dangerous AI coding agent actions" |
| 9 | readme = "README.md" |
| 10 | license = "MIT" |
| 11 | requires-python = ">=3.11" |
| 12 | authors = [ |
| 13 | { name = "agent-guard contributors" }, |
| 14 | ] |
| 15 | keywords = [ |
| 16 | "security", |
| 17 | "ai-agents", |
| 18 | "cli", |
| 19 | "policy", |
| 20 | "filesystem", |
| 21 | "git", |
| 22 | "docker", |
| 23 | ] |
| 24 | classifiers = [ |
| 25 | "Development Status :: 4 - Beta", |
| 26 | "Environment :: Console", |
| 27 | "Intended Audience :: Developers", |
| 28 | "License :: OSI Approved :: MIT License", |
| 29 | "Operating System :: OS Independent", |
| 30 | "Programming Language :: Python :: 3", |
| 31 | "Programming Language :: Python :: 3.11", |
| 32 | "Programming Language :: Python :: 3.12", |
| 33 | "Programming Language :: Python :: 3.13", |
| 34 | "Topic :: Security", |
| 35 | "Typing :: Typed", |
| 36 | ] |
| 37 | dependencies = [ |
| 38 | "typer>=0.12.0", |
| 39 | "rich>=13.0.0", |
| 40 | "pyyaml>=6.0", |
| 41 | ] |
| 42 | |
| 43 | [project.optional-dependencies] |
| 44 | dev = [ |
| 45 | "pytest>=8.0.0", |
| 46 | "pytest-cov>=5.0.0", |
| 47 | "ruff>=0.6.0", |
| 48 | "mypy>=1.11.0", |
| 49 | "types-PyYAML>=6.0", |
| 50 | ] |
| 51 | |
| 52 | [project.scripts] |
| 53 | agent-guard = "agent_guard.cli:main" |
| 54 | |
| 55 | [project.urls] |
| 56 | Homepage = "https://github.com/gitrabbit/agent-guard" |
| 57 | Repository = "https://github.com/gitrabbit/agent-guard" |
| 58 | Issues = "https://github.com/gitrabbit/agent-guard/issues" |
| 59 | |
| 60 | [tool.hatch.build.targets.wheel] |
| 61 | packages = ["src/agent_guard"] |
| 62 | |
| 63 | [tool.hatch.build.targets.sdist] |
| 64 | include = [ |
| 65 | "/src", |
| 66 | "/tests", |
| 67 | "/examples", |
| 68 | "/README.md", |
| 69 | "/LICENSE", |
| 70 | "/CONTRIBUTING.md", |
| 71 | ] |
| 72 | |
| 73 | [tool.pytest.ini_options] |
| 74 | testpaths = ["tests"] |
| 75 | pythonpath = ["src"] |
| 76 | addopts = "-q --strict-markers --import-mode=importlib" |
| 77 | |
| 78 | [tool.coverage.run] |
| 79 | source = ["agent_guard"] |
| 80 | branch = true |
| 81 | omit = ["*/__main__.py"] |
| 82 | |
| 83 | [tool.coverage.report] |
| 84 | show_missing = true |
| 85 | skip_covered = false |
| 86 | fail_under = 90 |
| 87 | |
| 88 | [tool.ruff] |
| 89 | target-version = "py311" |
| 90 | line-length = 100 |
| 91 | src = ["src", "tests"] |
| 92 | |
| 93 | [tool.ruff.lint] |
| 94 | select = [ |
| 95 | "E", |
| 96 | "F", |
| 97 | "I", |
| 98 | "B", |
| 99 | "UP", |
| 100 | "SIM", |
| 101 | "RUF", |
| 102 | ] |
| 103 | ignore = [ |
| 104 | "B008", |
| 105 | "E501", |
| 106 | "SIM102", |
| 107 | "SIM103", |
| 108 | "SIM105", |
| 109 | "SIM108", |
| 110 | "SIM114", |
| 111 | "SIM117", |
| 112 | ] |
| 113 | |
| 114 | [tool.ruff.lint.per-file-ignores] |
| 115 | "tests/**" = ["S101"] |
| 116 | |
| 117 | [tool.mypy] |
| 118 | python_version = "3.11" |
| 119 | strict = true |
| 120 | warn_return_any = true |
| 121 | warn_unused_configs = true |
| 122 | disallow_untyped_defs = true |
| 123 | packages = ["agent_guard"] |
| 124 | mypy_path = "src" |