Boundary engineering has proven effective in enhancing the thermoelectric performance of materials. SnSe, known for its low thermal conductivity, has garnered significant interest; however, its application is hindered by poor electrical conductivity. Herein, the Ag8GeSe6 is introduced into the p-type polycrystalline SnSe matrix to optimize the thermoelectric performance, and the in-situ Ag2Se precipitates are formed in grain boundaries, which play dual roles, acting as an electron attraction center for improving hole concentration and a phonon scattering center for reducing lattice thermal conductivity. It effectively decouples the thermal and electrical transport properties to optimize the thermoelectric performance. Importantly, the amount of Ag2Se can be controlled by adjusting the amount of Ag8GeSe6 added to the SnSe matrix. The introduction of Ag8GeSe6 enhances electrical conductivity due to the increased hole carrier caused by the introduced Ag+ and the formed electron attraction center (in-situ Ag2Se precipitates). Based on the DFT calculations, the band gap of the Ag8GeSe6-doped samples is considerably decreased, facilitating carrier transport. As a result, the electrical transport properties increase to 808 μW m−1 K−2 at 823 K for SnSe + 0.5 wt% Ag8GeSe6. In addition, in-situ Ag2Se precipitates in grain boundaries strongly enhance phonon scattering, causing a decrease in lattice thermal conductivity. Furthermore, the presence of defects contributes to a reduction in lattice thermal conductivity. Specifically, the thermal conductivity of SnSe + 1.0 wt% Ag8GeSe6 decreases to 0.29 W m−1 K−1 at 823 K. Consequently, SnSe + 0.5 wt% Ag8GeSe6 obtains a high ZT value of 1.7 at 823 K and maintains a high average ZT value of 0.57 over the temperature range of 323−773 K. Additionally, the mechanical properties of Ag8GeSe6-doped also show an improvement. These advancements can be applied to energy supply applications during deep space exploration.