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
| Tool | Version | Used for |
|---|---|---|
| Go | 1.23 or newer (go.work) | Gateway, event relay, policy engine, identity |
| Node.js | 22 or newer (.nvmrc) | Control plane, dashboard, TypeScript SDK, docs site |
| npm | Bundled with Node.js | Workspaces in the root package.json |
| Python | 3.11 or newer | Intelligence engine, Python SDK, integrations, repository tests |
| Ruff | Current | Python lint |
| Docker with Compose v2 | Current | Data 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.ps1On 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 installThe 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?
Operational Best Practices
Routines and habits for running AgentShield day to day. Policy change management, approvals, key hygiene, monitoring, and resilience testing.
Repository Structure
A map of the AgentShield repository. Where each service, library, contract, migration, and deployment file lives.