# LLM Tips and Tricks Leaderboard

**URL:** <https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174>\
**Category:** AI in Crystallography\
**Created:** [March 3, 2026, 5:20pm UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174 "2026-03-03T17:20:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [March 3, 2026, 5:20pm UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174/1 "2026-03-03T17:20:52Z")

</div>

Submit tips and tricks for coding with LLMs like snippets you like to include in prompts or features you find helpful.

---

<div class="post-metadata">

**Author:** ![LuisAldama](https://discourse.rs-station.org/letter_avatar_proxy/v4/letter/l/8491ac/32.png) [@LuisAldama](https://discourse.rs-station.org/u/LuisAldama)\
**Post date:** [March 5, 2026, 2:13am UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174/6 "2026-03-05T02:13:51Z")

</div>

Not a snippet, but on I’ve found it useful to use “plan mode” on Claude code to avoid wasting too many tokens. You can press `shift+tab` to cycle to plan mode

---

<div class="post-metadata">

**Author:** ![jdawnduan](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/jdawnduan/32/113_2.png) [@jdawnduan](https://discourse.rs-station.org/u/jdawnduan)\
**Post date:** [August 22, 2026, 5:33pm UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174/7 "2026-08-22T17:33:15Z")

</div>

Not sure whether it’s useful for coding algorithms…but for writing code in general (typescript, python, blabla), [ponytail](https://github.com/dietrichgebert/ponytail) plugin is quite helpful and it’s recommended to go along with [caveman](https://github.com/JuliusBrussee/caveman)

According to what ponytail README FAQ

> **Can I use it with [caveman](https://github.com/JuliusBrussee/caveman)?** Yes, and you should. Caveman shrinks what the agent says; ponytail shrinks what it builds. Different halves, no overlap: caveman leaves code byte-for-byte exact, ponytail stays out of the prose. Terse talk about minimal code.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [March 3, 2026, 5:21pm UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174/2 "2026-03-03T17:21:56Z")

</div>

code reuse is paramount. whenever possible, locate high quality open source implementations for algorithms and use those instead of implementing something yourself. chances are someone has already solved the problem.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [March 3, 2026, 5:22pm UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174/3 "2026-03-03T17:22:08Z")

</div>

PyTorch does not manage devices for you. every time a new tensor is created, make sure it is instantiated on the correct device and with the correct dtype. ideally the correct device is inferred by looking at the device of an input tensor either explicitly or by using a method such as `ones_like(...)`.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [March 3, 2026, 5:22pm UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174/4 "2026-03-03T17:22:13Z")

</div>

clamping tensors should only be used as a last resort. it’s much better to diagnose and remedy the numerical issue that would trigger the clamp.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [March 3, 2026, 5:22pm UTC](https://discourse.rs-station.org/t/llm-tips-and-tricks-leaderboard/174/5 "2026-03-03T17:22:23Z")

</div>

you may use the reparameterization trick if the transform is linear or a simple, bijective function. otherwise, prefer implicit reparameterization gradients. the inverse CDF method for reparameterization gradients should only be used if there is no other viable option. it’s too numerically unstable for the sensitive work you’re doing.
