ShieldAgent is a guardrail agent designed to enforce safety policy compliance for other autonomous agents.It constructs a safety policy model by extracting verifiable rules from policy documents and generates a shielding plan.ShieldAgent-Bench, a dataset with 3K safety-related pairs of agent instructions and action trajectories, is introduced.Experiments show that ShieldAgent outperforms prior methods, achieving high precision and efficiency in safeguarding agents.