Jump to content

AI LLM for Coding: Difference between revisions

From Torben's Wiki
mNo edit summary
Line 21: Line 21:
  npx skills add JuliusBrussee/caveman -a github-copilot
  npx skills add JuliusBrussee/caveman -a github-copilot
It has an option to install to local home dir instead of to project repo.
It has an option to install to local home dir instead of to project repo.


===Context7===
===Context7===

Revision as of 17:24, 12 June 2026

Tips

  • E2E tests (e.g. Cypress) are very important
  • Use tools for code formatting, linting, type-hints
  • Configure these tools to produce minimum output to reduce token consumption. e.g. for
    • Prettier: --log-level silent
    • Cypress: cypress run --e2e --quiet
  • For Refactoring/renaming: better do it manually, via VSCode, that is a lot faster

Cavemen style

According to [1] It can be reduced to 6 hard coded lines in AGENTS.md:

Respond like smart caveman. Cut all filler, keep technical substance.
- Drop articles (a, an, the), filler (just, really, basically, actually).
- Drop pleasantries (sure, certainly, happy to).
- No hedging. Fragments fine. Short synonyms.
- Technical terms stay exact. Code blocks unchanged.
- Pattern: [thing] [action] [reason]. [next step].

Original Repo: [2]

npx skills add JuliusBrussee/caveman -a github-copilot

It has an option to install to local home dir instead of to project repo.

Context7

[3] offers an MCP server of latest spec to many languages, enabling the LLM to support latest versions and best practice.

npx ctx7 setup

In prompt write:

use context7. do xxx

RTK - Rust Token Killer

https://www.rtk-ai.app

brew install rtk
brew upgrade rtk
rtk init --global
rtk init --global --opencode
rtk init --global --gemini

Coding Agents

OpenCode

Website: [4]

brew install anomalyco/tap/opencode

# add context7 MCP
npx ctx7 setup --opencode

# initialize Opencode and create/update/improve/compress AGENTS.md file
 /init
 
# update
brew update
brew upgrade anomalyco/tap/opencode

For saving of tokens, add Caveman speech to AGENTS.md

Mistral Devstral

Obtain API key from [5]

uv tool install mistral-vibe
# run via
vibe

Claude

Web

Website: [6]

  • Pros: Daily reset free quota
  • Cons: Need to manually upload single files

Claude Console

Claude Console via API and VISA Pre-Paid: [7]

  • Pros: Fully integrated in codebase
  • Cons: Costs money (e.g., 5€ are easily spent)
npm install -g @anthropic-ai/claude-code
cd myProject
claude

GitHub Copilot

global config file:

.copilot\copilot-instructions.md

Google Gemini

  • Pros: Free to use with Google account

Create your API key at [8]

Install

npm install -g @google/gemini-cli@latest
gemini
# or just run
npx https://github.com/google-gemini/gemini-cli

Usage

cd /tmp
export GEMINI_API_KEY="xxx"
git clone https://github.com/entorb/meeting-meter
cd myProject
gemini

To switch model from pro to flash:

export GEMINI_MODEL="gemini-2.5-flash"

Secret alternative: .env file

GEMINI_API_KEY=xxx

Google Antigravity

Website: [9]