Disclosed herein is a nanoparticle comprising a copolymer comprising a polyethylene glycol polymer, a polyhydroxylated polymer, and a peroxide-sensitive pendant group; a glucose-responsive agent; and a therapeutic agent; wherein the copolymer encapsulates the glucose-responsive agent and the therapeutic agent. Also disclosed herein is a method of delivering a therapeutic agent to a subject comprising administering to the subject a nanoparticle comprising a copolymer comprising a polyethylene glycol polymer, a polyhydroxylated polymer, and a peroxide-sensitive pendant group; a glucose-responsive agent; and a therapeutic agent; wherein the copolymer encapsulates the glucose-responsive agent and the therapeutic agent; and releasing the therapeutic agent from the nanoparticle in the presence of hyperglycemic levels of glucose. In some embodiments, the glucose-responsive agent produces a peroxide when exposed to hyperglycemic levels of glucose, thereby triggering disassembly of the nanoparticle and release of encapsulated therapeutic agent.