Plaintiff Rodney Taylor, pro se, instituted this action under 42 U.S.C. § 1983 in 1978 against Michael Kavanagh, an Assistant District Attorney for Ulster County, New York. Claiming that Kavanagh lied to him during plea negotiations and violated the terms of the negotiated plea agreement, Taylor seeks to set aside a criminal convic *451 tion resulting from his guilty plea. He also requests compensatory and punitive damages amounting to $5.5 million.
I.
Taylor was arrested in Kingston, New York, in October 1974, and on December 20, 1974, he was indicted and charged with third degree burglary and attempted grand larceny. He was taken into custody again on August 14, 1975, and charged with third degree burglary and criminal possession of a controlled substance in the seventh degree.
On June 9, 1976, Taylor, represented by counsel, pleaded guilty in the Ulster County Court to the third degree burglary charge contained in the December 1974 indictment. This plea was in full satisfaction of the charges resulting from both the October 1974 and the August 1975 arrests, although no indictment concerning the events of August 1975 had ever been returned. The court was advised that Taylor and Assistant District Attorney Kavanagh had agreed that no recommendation or statement would be made relating to the sentence to be imposed.
On June 7, 1977, Taylor moved in the state court to vacate his guilty plea, claiming that 1) during plea negotiations and at the time he entered his plea, the Assistant District Attorney had misrepresented to him and the court that a grand jury had returned an indictment on the charges relating to the August 1975 arrest; and 2) Kavanagh had indicated he would not abide by his promise not to recommend any sentence. This motion was denied.
At the sentencing proceeding in February 1978, Kavanagh made a lengthy and detailed statement concerning Taylor’s prior criminal record and recommended that he receive the maximum punishment. The court then sentenced Taylor to an indeterminate term of six years, with a minimum term of two years. Taylor appealed the judgment of conviction, but the Appellate Division affirmed, ordering, however, that Taylor be resentenced. The court stated that although the misrepresentation by the prosecutor concerning the existence of the second indictment was harmless error, re-sentencing was necessary because the prosecutor failed to honor his promise.
People v. Taylor,
Taylor filed the instant action in October 1978, claiming he was induced to plead guilty by the Assistant District Attorney’s misrepresentations concerning the alleged second indictment. He also asserted that he should be awarded damages for Kavanagh’s breach of the plea bargain.
The defendant moved for judgment on the pleadings, which Judge Griesa granted in July 1980.
Taylor v. Kavanagh,
II.
We note at the outset that when a prisoner is challenging his imprisonment in state facilities, his sole federal remedy is a writ of habeas corpus pursuant to 28 U.S.C. § 2254,
Preiser v. Rodriguez,
Taylor’s damages claim also fails because the Assistant District Attorney’s conduct in the plea bargaining negotiations
*452
and the sentencing proceeding in state court is protected by the doctrine of absolute prosecutorial immunity.
See Imbler v. Pachtman,
Absolute protection does not extend, however, to a prosecutor’s investigative or administrative acts,
id.
at 431 n.33,
The task of determining whether a particular activity is better characterized as “quasi-judicial” and subject to absolute immunity, or “investigative” and subject to only qualified “good faith” immunity requires more than the mechanical application of labels. An examination of the functional nature of prosecutorial behavior, rather than the status of the person performing the act, is determinative.
Imbler, supra,
In contrast, activities in which a prosecutor engages that are independent of prosecution,
Lee v. Willins, supra,
Decisions to engage in conduct of this character are not directly related to the delicate judgments prosecutors must make concerning the development of the Govern *453 ment’s case. The “investigatory” and “administrative” work involved in testifying before a grand jury, accumulating evidence, and disseminating information to the press is analogous to the tasks performed by the police, and therefore only the same qualified “good faith” immunity is available.
This functional approach requires us to evaluate plea bargaining in light of the general purpose of the absolute immunity doctrine. Judge Griesa properly recognized that the purpose of the doctrine “is to. insure that a prosecutor will perform his difficult function with complete vigor and independence, undeterred by the spector of liability for damages with respect to his activities.”
Taylor
v.
Kavanagh, supra,
III.
We are satisfied that a prosecutor’s activities in the plea bargaining context merit the protection of absolute immunity. The plea negotiation is an “essential component” of our system of criminal justice,
Santobello
v.
New York,
Moreover, reference to the type of harm suffered from the alleged misconduct during a plea negotiation demonstrates that defendant Kavanagh should be afforded absolute immunity in this case.
Lee v. Willins, supra,
Finally, we note that by extending the doctrine of absolute immunity to a prosecutor’s plea bargaining activities, we do not condone Kavanagh’s alleged misconduct. Prosecutorial abuses can and should be remedied at the trial and appellate levels, as well as by state and federal post-conviction collateral procedures.
Imbler, supra,
424
*454
U.S. at 427,
Affirmed.
Notes
. We do not find it necessary to consider whether the Supreme Court’s recent decision in
Allen v.
McCurry, - U.S. -,
. Prosecutors are also subject to professional discipline for their misconduct. See
Imbler v. Pachtman,
