How can I improve my chances for UCSD CS?

Your UC capped GPA is probably in the 4.1-4.15 range. You currently probably have a 30-50% shot at UCSD as well as UCI and UCSB. You probably can improve your odds by raising your SAT 50+ points. I can’t remember if UCSD values demonstrated interest (I know UCI does) but that might help - take an official visit or 2 there and talk to admissions. Get on their mailing lists.

Finally, you’ll want you GC to mark your school transcript as “most rigorous”. Find out what that criteria is. Does your school offer a lot of AP classes? If so you may want to add more, like say a Science AP. If you are only planning on applying to UCs and CSUs, note that they don’t care about your 12th grade grades unless you are accepted. So IMO loading up on APs is a good thing if this is the case, assuming that you don’t get Cs in the classes.