| Tool | Version |
|---|---|
| Go | 1.22+ |
| git | 2.x |
git clone https://github.com/SecAI-Hub/agent-tool-firewall.git
cd agent-tool-firewall
go build .
go test -v -race ./...
go vet ./...POLICY_PATH=./examples/policy.yaml ./agent-tool-firewallgo test -v -race -count=1 ./...All tests must pass before submitting a PR.
- Run
gofmt -s -w .before committing. - Run
go vet ./...to catch common issues. - Keep the single-file structure unless there is a strong reason to split.
- Fork the repo and create a feature branch.
- Make your changes with clear, focused commits.
- Ensure all tests pass (
go test -race ./...). - Open a PR against
main.
<type>: <short summary>
<optional body>
Types: feat, fix, docs, test, refactor, chore, security.
See SECURITY.md for reporting vulnerabilities.