Yungu zaji 雲谷雜記 "Miscellaneous Records from the Clouded Valley" is a biji 筆記 "brush notes" style book written by the Southern Song period 南宋 (1127-1279) scholar Zhang Hao 張淏, courtesy name Zhang Qingyuan 張清源. His family came from the capital Kaifeng 開封 (modern Kaifeng, Henan) but moved to Wuzhou 婺州 (modern Jinhua 金華, Zhejiang) when northern China was conquered by the Jurchens. Zhang Hao was court gentleman consultant (fengyilang 奉議郎). He had an excellent education and has compiled a number of books, among these the local gazetteers Guiji xuzhi 會稽續志 and Genyueji 艮岳記.
The Yungu zaji is not mentioned in Chen Zhensun's 陳振孫 bibliography Zhizhai shulu jieti 直齋書錄解題 and the imperial bibliography in the official dynastic history Songshi 宋史, but only in the bibliography Wenyuange shumu 文淵閣書目. This means that it was lost at an early point of time, but has at least partially survived as quotations in the Ming period 明 (1368-1644) encyclopedia Yongle dadian 永樂大典. The 110 fragments constitute a reconstructed text with a length of 4 juan "scrolls". The text is mainly concerned with an analysis of old books and comments on the Confucian Classics, histories, the "masters and philosophers" and belles-lettres. It is very helpful concerning errors that were to be found in contemporarian writings like Shao Bo's 邵博 Wenjian houlu 聞見后錄 or Cai Tiao's 蔡絛 Xiqing shihua 西清詩話.
The Yungu zaji is to be found in the reprint series Siku quanshu 四庫全書, Wuyingding juzhenban shu 武英殿聚珍版書, Haishanxianguan congshu 海山仙館叢書, Qingfentang congshu 清芬堂叢書, Shuofu 說郛, Wuchao xiaoshuo 五朝小說 and Wuchao xiaoshuo daguan 五朝小說大觀. In 1958 the Zhonghua shuju press 中華書局 published a modern edition with annotations by Zhang Zongxiang 張宗祥.