Start with a thick layer of wood shavings or straw and add clean material on top when needed. The hens turn it as they scratch and the bottom layer starts to compost; once or twice a year it is cleared out completely and goes on the compost heap.
It only works if it is kept dry and free of any smell of ammonia: if it smells, add dry material or change it.

