In the newspaper April 26, 1797 - Saunders Newsletter + Advertiser Farrell Cuffe was found Guilty of Defenderism. This could have been held at the gaol perhaps from reading the snippet.
He would have been tried at the assize court which met twice yearly.
Newspaper report in Reply #15:
" ... business of the Home Circuit"
Farrell Cuffe is named early in the article as the only person convicted. Later in the article it says 2 men named Farrell and Madden were indicted for high treason at Philipstown.
Philipstown, King's County ... was an assize town. The courthouse was where the county court met. The prison in Philipstown was the county gaol, erected around 1800.
Philipstown is now Daingean in County Offaly.
Offaly History Blog has several article about courts and prisons, many written by Michael Byrne.
Examples:
"Tullamore Jail" by Michael Byrne (April 2018)
This mentions Philipstown county jail. Includes an extract from an official report into Philipstown jail. There were Acts of Parliament about prisons in 1810 and 1820. New prisons were built in Ireland.
Tullamore replaced Philipstown/Daingean as county town in 1830s. The assize court met in Tullamore instead of Philipstown after that and a new prison was built at Tullamore as a replacement for the county jail at Philipstown. Convicts in Philipstown jail were taken by canal barge to the new county jail in Tullamore when it opened. The Grand Canal opened 1798.
A new article by Michael Byrne "The Courts of Assize in Offaly and the ceremonial display of British power in Ireland" (March 2022) Brief history of Assizes in King's County. Circuit system - King's County was part of Leinster Circuit until 1796 when a new sixth circuit was established, known as the *home circuit. Describes how business of assizes was conducted. Grand Jury.
*"business of the Home Circuit" in the newspaper report.
"Grand Juries in Ireland: the politics of power in the counties" by Michael Byrne (Oct. 2021)
The blog has 13 articles in the topic "Criminal Law" in contents list.
Philipstown is Daingean in the alphabetical list of places in contents.
Taylor & Skinner maps 1777 show routes of all main roads in Ireland, in case you need to work out routes. Don't forget the Grand Canal, constructed 20 years later.