The Autonomous Polymorphic Agent (APA) is a self-healing, decentralized software agent platform designed for robust, secure, and autonomous operation across diverse computing environments. Built with Go, APA combines advanced networking, self-healing mechanisms, and modular controller architecture.
- Multi-Protocol Networking: TCP, UDP, HTTP, WebSocket, and libp2p support with intelligent switching
- Cross-Platform Compatibility: Runs on Linux, macOS, and Windows across AMD64 and ARM64
- Self-Healing: Automatic fault detection, process restart, and recovery orchestration
- Decentralized Design: Peer-to-peer networking with DHT discovery and pubsub messaging
- Modular Architecture: Extensible through WASM modules and controller plugins
- Security Framework: End-to-end encryption, Ed25519 signature verification, OPA policy engine
- Self-Updating: Secure over-the-air updates with Ed25519-verified artifacts
- Health Monitoring: Continuous system health assessment with binary integrity checks
- Ephemeral Identity: Automatic identity rotation with HMAC-derived session keys
- Admin API: REST API for health, metrics, audit, and module management
- Decentralized Design: Peer-to-peer networking with DHT discovery
- Microservices Pattern: Modular components with clear separation of concerns
- Event-Driven: Reactive architecture for optimal performance
git clone https://github.com/naviNBRuas/APA.git
cd APA
go build -o apa cmd/standalone-agent/main.go
./apa --helpdocker build -t apa .
docker run -it apa --helpUsage of ./apa:
-config string
Path to agent configuration YAML file (default "configs/agent.yaml")
-version
Show version information
Create a configuration file:
log_level: info
peer_port: 9000
admin_port: 9001
bootstrap_peers:
- /ip4/1.2.3.4/tcp/9000/p2p/QmPeerID...Then run:
./apa --config=config.yamlgo test ./...# Unit tests
go test ./pkg/...
# Race condition detection
go test -race ./pkg/...
# Coverage report
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.outThe project includes comprehensive GitHub Actions workflows:
- CI: Build, test, and lint on every push/PR across Linux, macOS, and Windows
- Code Quality: golangci-lint, CodeQL static analysis, container vulnerability scan
- Release: Manual workflow_dispatch release with cross-platform artifact builds
- Documentation: Auto-generated API docs and coverage reports
In the docs/ directory:
Example modules and usage patterns are available in the examples/ directory:
- WASM modules
- Network drivers
- Controller implementations
We welcome contributions! Please see Contributing Guidelines.
git clone https://github.com/naviNBRuas/APA.git
cd APA
go mod tidy
go test ./...
go build -o apa cmd/standalone-agent/main.go- All code must pass
gofmt,govet, andgolangci-lint - Tests should cover new functionality
- Security scans must pass
Please report security vulnerabilities to founder@nbr.company.
- End-to-end encryption via AES-GCM encrypted messenger
- Ed25519 signature verification for updates and modules
- OPA policy engine for authorization
- CodeQL static analysis in CI
- Binary integrity monitoring (SHA-256, 5-minute interval)
- Anti-analysis: debugger and sandbox detection
- Ephemeral identity rotation
MIT License — see LICENSE.
- libp2p — Decentralized networking
- Go — Programming language
- Open Policy Agent — Policy engine
- WebAssembly — WASM module runtime
See ACKNOWLEDGMENTS.md for a complete list.