Bailclock

Weekly lists of undertrials who have served long enough to seek release

Government

TL;DR Bailclock reads jail admission records and charge details, works out when each undertrial crosses the detention limit in the new criminal procedure code and hands legal aid lawyers a weekly list with the papers they need. District legal services authorities and prison departments pay. It predicts nothing about people.

The problem

At the end of 2022, India's prisons held 5,73,220 people at 131.4% of capacity, and 75.8% of them were undertrials who had not been convicted[1]. About 1,34,799 undertrials had been held for over a year[2].

The law already offers a way out for some of them. Yet in 2022 the official count found only 1,487 undertrials eligible for release on time served, and state figures disagree wildly. Uttar Pradesh reported 30,415 eligible to Parliament over 2017–2021 but 5,825 to the national crime bureau[2]. Nobody is reliably doing the arithmetic, prisoner by prisoner.

The idea

What it does, in regulatory terms: a record-keeping and alert tool. It gives no legal advice, and a lawyer checks every flag before anything is filed.

The seed proposed AI that predicts who will reoffend, and I dropped that without a second thought. ProPublica's study of a US risk tool found Black defendants who did not reoffend were labelled high risk 44.9% of the time, against 23.5% for white defendants[3]. India's recorded recidivism is 1.9% of convicts admitted[1], and the real overload is people waiting for trial.

Bailclock takes each undertrial's admission date and charges, looks up the maximum sentence and applies section 479 of the Bharatiya Nagarik Suraksha Sanhita - release after half the maximum, or one-third for first-time offenders, with its exclusions[4]. It flags people approaching or past the limit, those granted bail but still held, and records with missing data. The panel lawyer gets a ranked list and a draft application pack.

Who pays

The users are legal aid lawyers, jail legal-aid clinic staff and jail superintendents, who now carry the duty to identify eligible prisoners[2]. The payers would be state legal services authorities or prison departments, through a state contract. Prison-reform NGOs and philanthropic funders are a realistic first customer, since government budgets are thin. There's no public price for a comparable tool.

Why now

The new criminal procedure code took effect in July 2024 and added the one-third rule for first-time offenders, which widens who can apply[4]. Prison records are now digital too, and the national ePrisons portal covers 1,359 prisons and about 23.5 million records[5]. So the data exists but the eligibility calculation doesn't.

Market signal

There's no public market figure. The demand signal is the gap - between 3,800 and 5,100 prisoners a quarter in 2024–2025 had been granted bail but stayed in jail because they could not furnish surety[2].

Correctional staff such as welfare officers were also 44% short of sanctioned strength in 2022[1], so nobody has spare hands for this.

Who's already doing this

ePrisons runs prison records and a legal aid login, but I found no public eligibility alert[5]. Under Trial Review Committees in each district review cases each quarter, working from the same patchy counts[2]. Prison-reform NGOs do this by hand in some jails.

The gap is software that does the calculation every week for every prisoner and shows its working.

How hard is it?

Difficulty Moderate (46/100)
Starting capital ₹35–70 L
Time to launch 6–12 months

The software is simple. The hard parts are getting access to jail records, mapping thousands of offences under old and new laws to maximum sentences and selling to state bodies that rarely buy software of any kind. Plan on grant money for the first year or two.

Licences and approvals

No licence covers the software itself, but legal and data rules decide what it can do.

  • BNSS section 479 sets the detention limits and exclusions the tool applies. Confirm the current text and any court rulings before you code the rules[4].
  • DPDP Act processor role. Prison departments process data for State functions under section 7, so Bailclock acts only as their processor under a written contract, hosted in India[6].
  • Written access permission from the state prison department or legal services authority, before you read any record [Requires validation].
  • Advocates Act. Output goes to an enrolled lawyer who decides what to file. The tool must not advise prisoners.
  • Company registration and GST, before you invoice a state body.

Building this outside India? The categories above usually have a local equivalent, so check with your own regulator.

How AI can power this business

Bailclock is rules-based on purpose, so AI plays a supporting role.

  • Charge mapping. A language model can suggest which old IPC or new BNS offence a messy charge entry refers to, so staff map thousands of records faster, with a person confirming each one.
  • Missing-data flags. Pattern checks find records with blank admission dates or charges, which tells the jail which files to fix first.
  • Draft application packs. AI can pre-fill a bail application from the record, so the panel lawyer spends time on judgement instead of typing.
  • Document reading. Text extraction pulls dates and sections from scanned orders where the digital record is incomplete.

Never let AI decide who qualifies or predict anyone's behaviour. The eligibility calculation stays as fixed rules that show their working, and a lawyer checks every flag.

Want to work out the AI layer for Bailclock? Talk to Yash →

Biggest risks

Here's what can go south -

  • Data access. Without a state agreement you cannot see the records at all.
  • Wrong flags. A miscoded charge could send a lawyer down a dead end or miss someone who qualified.
  • No budget. Legal services authorities may value it but have no line to pay for it.

Our take

I think this is a strong idea for a founder with legal-tech or justice-system experience who can work with government and NGO funders. If you need venture-scale returns then it's a poor fit.

Prove one thing first - in one district jail, show the tool finds eligible prisoners the current process missed.

Questions founders ask

My estimate is ₹35–70 L to launch, mostly for offence mapping, secure hosting and the long wait for state access.

Do I need a licence to build legal-aid software for prisons in India?

No licence, but you need written permission to read jail records, a processor contract under the DPDP Act, and output that goes only to enrolled lawyers.

Can I start a prisoner release eligibility tool in another country?

Possibly, wherever pre-trial detention limits exist and records are digital. The rules and data access process differ a lot, so start with the local law.

Download the kit

The free Bailclock validation kit has the line-by-line capital breakdown, the effort scoring, the data and legal checklist, a 14-day validation sprint with pass/fail targets, a 90-day launch plan, 10 interview questions for legal aid lawyers and jail staff, and 5 assumptions to test. Download the kit →

Talk to Yash

Thinking about building Bailclock or something close to it? The make-or-break work is winning one state's permission to read jail records, and I'm glad to help you work out how to ask. If you need a hand, you know where to find me. Talk to Yash →

Sources

  1. LiveLaw, "NCRB releases Prison Statistics India 2022 report", 2023-12-07. https://www.livelaw.in/news-updates/ncrb-releases-prison-statistics-india-report-2022-243973
  2. Vidhi Centre for Legal Policy, "The invisibilisation of the undertrial", 2026-09-22. https://vidhilegalpolicy.in/?p=34754
  3. ProPublica, "Machine Bias", 2016-05-23. https://www.propublica.org/article/machine-bias-risk-assessments-in-criminal-sentencing
  4. PRS Legislative Research, "The Bharatiya Nagarik Suraksha Sanhita, 2023", accessed 2026-10-21. https://prsindia.org/billtrack/the-bharatiya-nagarik-suraksha-sanhita-2023
  5. ePrisons, National Prison Portal, official site, accessed 2026-10-21. https://eprisons.nic.in/
  6. DPDPA commentary, "Section 7: Certain legitimate uses", accessed 2026-10-21. https://www.dpdpa.com/dpdpa2023/chapter-2/section7.html

For illustration only. Names are fictional and ideas hypothetical; sourced facts are real but may be out of date. Nothing here is legal, financial or professional advice, and Yash Khatri is not personally liable for any use of it. Read the full disclaimer.

Reviews

No reviews yet