14The ability to efficiently and dynamically change information stored in genomes would 15 enable powerful strategies for studying cell biology and controlling cellular phenotypes. Current 16 recombineering-mediated DNA writing platforms in bacteria are limited to specific laboratory 17 conditions, often suffer from suboptimal editing efficiencies, and are not suitable for in situ 18 applications. To overcome these limitations, we engineered a retroelement-mediated DNA writing 19 system that enables efficient and precise editing of bacterial genomes without the requirement for 20 target-specific elements or selection. We demonstrate that this DNA writing platform enables a 21 broad range of applications, including efficient, scarless, and cis-element-independent editing of 22 targeted microbial genomes within complex communities, the high-throughput mapping of spatial 23 information and cellular interactions into DNA memory, and the continuous evolution of cellular 24 traits. 25 26 One Sentence Summary: Highly-efficient, dynamic, and conditional genome writers are 27 engineered for DNA memory, genome engineering, editing microbial communities, high-28 resolution mapping of cellular connectomes, and modulating cellular evolution. 29 30 31 3Main Text: 32 Genomic DNA is an evolvable functional memory that records the history of adaptive 33 changes over evolutionary timescales. DNA writing platforms that enable efficient and targeted 34 modifications of genomic DNA are essential for studying and engineering living cells, with many 35 applications ranging from the recording of cellular lineages and transient molecular events into 36 permanent DNA records to cellular computation (Farzadfard and Lu, 2018). An ideal precise DNA 37 writer (a genetically-encoded device for the targeted editing of DNA in living cells) would enable 38 one to introduce any desired mutation to any desired genomic target with high efficiency and 39 without the requirement for specific cis-encoded elements or the generation of double-strand DNA 40 breaks. Despite many advances in recent years in DNA writing technologies, existing platforms in 41 bacteria (Costantino and Court, 2003;Datsenko and Wanner, 2000;Farzadfard et al., 2019; Pines 42 et al., 2015;Swingle et al., 2010;Wang et al., 2009;Yu et al., 2000) are not ideal for certain 43 applications (Table S1). For example, recombineering-based approaches enable targeted, small 44 modification of bacterial genomes but 1) they are restricted to specific conditions in which efficient 45 transformation is possible, 2) are often limited by suboptimal editing rates, and 3) are not 46 applicable to complex environments, such as bacterial communities (Costantino and Court, 2003; 47 Wang et al., 2009;Yu et al., 2000). In addition, recombineering events cannot be linked to cellular 48 regulatory networks and thus cannot be used for continuous and dynamic manipulation of cellular 49 phenotypes, autonomous recording of cellular events histories, or evolutionary genome 50 engineering. Al...