If your code is 0% derived from GPL/AGPL code in a copyright sense then there is no virality and you can generally use them together without license worries if you're careful about how you link.
If your code is 0% derived from GPL/AGPL code in a copyright sense then there is no virality and you can generally use them together without license worries if you're careful about how you link.