We minimize terrorism costs by dynamic counterterror agent staffing.
The optimal number of agents is not proportional to the number of terror plots.
Few agents should be deployed if terrorist are very efficient or inefficient.
We analyze a policy that prevents the rate of terror attacks from increasing.