Dorothy Gilman, an espionage writer whose best-known heroine, Mrs. Pollifax, is very likely the only spy in literature to belong simultaneously to the Central Intelligence Agency and the local garden club, died on Thursday at her home in Rye Brook, N.Y. She was 88.