CoReMem: Cost-Internalizing Memory for Successive Coding Tasks with Prospective Valuation — ThinkLLM