CIA in fiction

Espionage and secret operations have long been a source of fiction, and the real and perceived U.S. Central Intelligence Agency (CIA) is a source of many books, films and video games. Some fiction may be historically based, or will refer to less action-oriented aspects, such as intelligence analysis or counterintelligence.
Adaptations of real events.
The film "Charlie Wilson's War", released in December 2007, gives a popular account of the efforts of U.S. Congressman Charles Wilson to secure funding for the CIA's Operation Cyclone, giving covert assistance to Afghan rebels during the Soviet–Afghan War. This film positively portrays the CIA, while finishing with a muted scolding of Congress for funding the war but not funding subsequent peacetime reconstruction. This lack of funding for reconstruction, or what are called Operations Other Than War (OOTWA) in military parlance and counter-insurgency doctrine, are mooted as an antecedent to the present War on Terrorism. According to Declan Walsh, writing in "The Guardian", the support of the mujahideen by the U.S. and Pakistan backfired on the U.S. in the form of the 9/11 attacks, and is now backfiring on Pakistan. The film has its critics.
"The Good Shepherd", directed by Robert De Niro and released in 2006, narrates the CIA's tumultuous early history as viewed through the prism of one man's life. While the lead character is a composite of several real people, the most important is the long-term chief of the CIA Counterintelligence Staff, James Jesus Angleton. Angleton is also the basis of William F. Buckley, Jr.'s novel "Spytime: The Undoing of James Jesus Angleton" The same story is told in the 2007 TNT miniseries "The Company".
Hypothetical but modeled on real organizations.
The character Jack Ryan in Tom Clancy's books is a CIA analyst. Ryan is never a case officer in the usual sense of the term, as opposed to characters such as John Clark and Domingo Chavez. Ryan starts as a contract consultant, becomes an analyst, and rises in responsibility. There are operations officers that play a major role in Clancy's novels, such as Clark and Chavez, to say nothing of the creative and intelligent Mary Pat Foley.
Graham Greene's "The Quiet American", which has been issued in two editions and made into a film, is based on an amoral CIA agent operating in Southeast Asia.