cDNA encoding a single-chain antibody to HIV p17 with cytoplasmic or nuclear retention signals inhibits HIV-1 replication.