Skip to Content
AgentShield
Contributing

Development Environment

The toolchain needed to build, test, and lint every part of AgentShield.

AgentShield is a polyglot repository: Go for the enforcement path, TypeScript for the management path and one SDK, and Python for content analysis, the reference SDK, and framework integrations.

Required tools

ToolVersionUsed for
Go1.23 or newer (go.work)Gateway, event relay, policy engine, identity
Node.js22 or newer (.nvmrc)Control plane, dashboard, TypeScript SDK, docs site
npmBundled with Node.jsWorkspaces in the root package.json
Python3.11 or newerIntelligence engine, Python SDK, integrations, repository tests
RuffCurrentPython lint
Docker with Compose v2CurrentData services and full-stack runs

Optional: kubectl with a local cluster (minikube with Calico) for the Kubernetes overlays, cosign for verifying releases, and LangChain and CrewAI for their integration tests.

Editor settings

The repository includes .editorconfig. Go code must be gofmt-clean; the lint step fails otherwise. Python is checked with Ruff (ruff.toml), TypeScript with tsc --noEmit.

Windows

The repository supports Windows natively. scripts/test.ps1 and scripts/lint.ps1 run every suite, and they use a bundled Go toolchain from .tools/go/bin when one is present:

powershell -File scripts/test.ps1
powershell -File scripts/lint.ps1

On macOS and Linux, make test and make lint run the same checks.

Workspaces

The root package.json declares npm workspaces for apps/control-plane, apps/dashboard, and sdk/typescript. Install once from the root:

npm install

The documentation site in apps/docs is a separate npm project so it can be deployed on its own. See Repository structure.

Was this page helpful?

On this page