Don't do this. Proper LiIon charger ICs aren't any harder to get, need less or the same amount of components and unlike your circuit are likely to actually provide safe charging.
The shown schematic seems very questionable, seeing there's a diode (the blue LED) that limits the difference between the transistor base and the TL341. This never shuts off charging. That will damage the battery! So, this is anything but a "smart" charger.
Also, this is 2023; a charger without input for a small thermal sensor feels unnecessarily dangerous. Be nice to your batteries!
So,
I already designed a tp4056 pcd and working but it is big for my project so I want something smaller.
Then use something that's actually smaller! The MJE13005G from your schematic alone is about the size of a TP4056.
There's really many Lithium Ion charger ICs, just pick one. If you want small, but still easy to solder, TI's BQ21040. You can ask them to send you a free sample.
I threw together a bq21040 charger board. Nothing here was tested, just for your enjoyment. Here's the design files, go wild, it's open source hardware (see license). You can probably directly drop the .kicad_pcb file into Aisler's website (or oshpark's, or you can generate gerbers and put them through jlcpcb.com) and get the board manufactured for probably less than what a handful TP4056 would have cost you.
The whole board is 18 mm × 15mm, and as you can see, mostly unused space, mounting holes, and connectors. I'm sure you can easily schrink it down to 12×10mm or less.
The temperature sensor you want is a 10 kΩ NTC (103AT).