COXSACKIE, N.Y.  Allen Jacobs lived hard for his 50 years, and when his liver finally shut down he faced the kind of death he did not want. On a recent afternoon Mr. Jacobs lay in a hospital bed staring blankly at the ceiling, his eyes sunk in his skull, his skin lusterless. A volunteer hospice worker, Wensley Roberts, ran a wet sponge over Mr. Jacobs’s dry lips, encouraging him to drink.

“Come on, Mr. Jacobs,” he said.

Mr. Roberts is one of a dozen inmates at the Coxsackie Correctional Facility who volunteer to sit with fellow prisoners in the last six months of their lives. More than 3,000 prisoners a year die of natural causes in correctional facilities.

Mr. Roberts recalled a day when Mr. Jacobs, then more coherent, had started crying. Mr. Roberts held his patient and tried to console him. Then their experience took a turn unique to their setting, the medical ward of a maximum security prison. Mr. Roberts said he told Mr. Jacobs to “man up.”

Mr. Jacobs, serving two to four years for passing forged checks, cursed at him, telling him, “‘I don’t want to die in jail. Do you want to die in jail?’ ”