The court, which is hearing a matter relating to inhuman conditions prevailing in 1,382 prisons across the country, also dealt with other issues related to the jails.
The bench requested the high courts to look into the functioning of a review committees, which deal with the issue of release of under trial prisoners.
It said that a standard operating procedure (SOP) prepared by the National Legal Services Authority (NALSA) with respect to functioning of under trial review committees was required to be "re-drafted".
"It (SOP) reads like minutes of a meeting. You (NALSA) have to re-draft it completely. It is not a SOP," the bench told NALSA Director S S Rathi, who was present in the court.
Advocate Gaurav Agrawal, assisting the court as an amicus curiae in the matter, told the bench that around 1,800 children were there in jails across the country.
The bench asked him regarding education, health facility and well being of such children who were living in jails with their mothers and also about what happens to them when they come out of the prison after attaining the age of six.
The amicus told the court that in pursuance to the apex court's direction in the matter, model prison manual 2016 was prepared by the government.
During the hearing, the bench also dealt with a separate application filed by an NGO which has raised the issue of foreigners detained at the detention centres in Assam.
Additional Solicitor General Tushar Mehta, who was appearing for the Centre, told the bench that he would take instruction in the matter and would get back to the court.
He said that Article 21 of the Constitution which deals with protection of life and personal liberty was applicable even to foreigners who are in India.
NALSA told the bench that legal aid was provided by the authority to the foreigners also.
The bench issued notices to the Centre and Assam on the application and sought their responses within two weeks.
"We would like to know from the Centre and the state about the living condition of persons in these detention centres," the bench said.
The apex court had earlier taken strong exception to overcrowded jails and said that prisoners also have human rights and they cannot be kept in jail like "animals".
The court had earlier passed a slew of directions over unnatural deaths in jails and on prison reforms across India.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)