Systematic interrogation of the expression profile of various biomarkers on-site is essential for dissecting tumor-related complex cellular events and precision therapy. However, current DNA-based sensing platforms face the challenges of extracellular activation, single-information readout, inadequate imaging output, and suboptimal therapeutic outcomes. Here, we developed an intelligent “hierarchical scanning, operation and autofeedback” nanointerrogator (HSOAN) for high-performance imaging of multiple biomarkers across cell compartments. The HSOAN system was constructed by introducing a functionalized DNA framework-coupled amplification circuit into a multiparameter-gated biocomputer, and further combining them with MoS2/h-BN nanoheterojunctions (MBNHs). Using MCF-7 cells as the model, the nanosystem was programmed to sequentially sense membrane protein PTK7 and cytoplasmic TK1 mRNA and microRNA-21 genes in a progressive “YES-ANDI-ANDII” manner. The multiple encryption of the logic processor and the high fluorescence quenching efficiency of MBNHs ensure the initial silence (light-off) of the HSOAN. Undergoing top-down scanning, the nanointerrogator only allowed spatial-specific dual light-up in three biomarker-encoded target cells. This “dual lock-three key-dual reporter”-controlled nanointerrogator improved the accuracy of cell identification. More importantly, the engineered framework-supported membrane anchoring and the downstream self-confined amplification circuit-mediated hyperbranching assembly enhanced the on-site retention capabilities of imaging information and also improved the signal-to-background ratio. Furthermore, the excellent photothermal conversion efficiency and biosafety of MBNHs also contribute to the satisfactory therapeutic effects both in vitro and in vivo. This construction strategy will inspire further improvement of biomedical and theranostic platforms.