💻✨ AI for Coding

Short, actionable tips to help developers get more value from AI coding tools. Originally shared as an internal Slack series.

Tip #1: Give Copilot a memory

Set up an instruction file so the agent knows your conventions from the start.

February 19, 2026 Â· 1 min Â· Kjetil J.D.

Tip #2: Every AI mistake is a rule

When Copilot gets something wrong, add it to your instructions instead of just fixing it.

February 20, 2026 Â· 1 min Â· Kjetil J.D.

Tip #3: Use Copilot as a sparring partner

Think together before writing code — use plan mode to explore approach and tradeoffs.

February 23, 2026 Â· 2 min Â· Kjetil J.D.

Tip #4: Paste the error, get the explanation

Don’t Google cryptic errors. Paste them into chat and ask for the explanation first.

February 24, 2026 Â· 1 min Â· Kjetil J.D.

Tip #5: What actually belongs in your instruction file?

Less is more: hand-written, non-obvious rules beat auto-generated descriptions.

February 26, 2026 Â· 2 min Â· Kjetil J.D.

Tip #6: Your terminal just got an AI agent

Copilot CLI brings agentic coding to your terminal — reads files, runs commands, makes changes.

February 26, 2026 Â· 1 min Â· Kjetil J.D.

Tip #7: Let Copilot review every PR — automatically

Set up branch rulesets so Copilot reviews pull requests without anyone asking.

March 6, 2026 Â· 2 min Â· Kjetil J.D.

Tip #8: Teach your AI agent repeatable skills

Package step-by-step procedures as SKILL.md files the agent loads on demand.

March 6, 2026 Â· 2 min Â· Kjetil J.D.

Tip #9: Where to put your skills (and where they'll actually be found)

Project skills vs. personal skills, and how the agent discovers them.

March 6, 2026 Â· 1 min Â· Kjetil J.D.

Tip #10: Why your skills might not be triggering

The agent often ignores skills unless you tell it to look for them first.

March 6, 2026 Â· 1 min Â· Kjetil J.D.

Tip #11: What your agent already knows how to do

Built-in tools for file editing, search, shell commands, and GitHub — no setup needed.

March 9, 2026 Â· 2 min Â· Kjetil J.D.

Tip #12: MCP — the USB-C of AI tools

One open standard for connecting agents to external systems across all tools.

March 10, 2026 Â· 2 min Â· Kjetil J.D.

Tip #13: Give your agent a browser

Chrome DevTools MCP lets the agent click, inspect, and test web UIs from your terminal.

March 10, 2026 Â· 2 min Â· Kjetil J.D.

Tip #14: Your CLI tools are already AI tools

gh, git, jq, curl work without MCP — the agent just calls –help.

March 11, 2026 Â· 2 min Â· Kjetil J.D.

Tip #15: MCP servers eat your context window

Every connected server costs tokens every turn. Be selective.

March 11, 2026 Â· 2 min Â· Kjetil J.D.

Tip #16: Explore before you edit

Use the agent as a research assistant to understand unfamiliar code before changing anything.

March 13, 2026 Â· 2 min Â· Kjetil J.D.

Tip #17: Keep sessions short and focused

One task per session. Context fills up — fresh starts beat accumulated corrections.

March 13, 2026 Â· 2 min Â· Kjetil J.D.

Tip #18: Commit before you let the agent loose

Git stash or commit first, so the agent’s changes are always one git diff away from a clean state.

March 14, 2026 Â· 2 min Â· Kjetil J.D.

Tip #19: Get a second opinion from a fresh agent

Open a second session to re-ask the same question without baggage from earlier attempts.

March 16, 2026 Â· 2 min Â· Kjetil J.D.

Tip #20: Give your agents their own workspaces

Use isolated workspaces so multiple agents can work on the same repo without stepping on each other.

March 17, 2026 Â· 2 min Â· Kjetil J.D.

Tip #21: Meet OpenCode — the open source coding agent

Most coding agents lock you into one provider. Claude Code needs an Anthropic subscription. Copilot CLI needs GitHub. What if you want to switch models — or use several? OpenCode (opencode.ai) is an open source coding agent that works with 75+ providers. The interesting part for us: it can use your existing GitHub Copilot license. Set your GITHUB_TOKEN, pick a model (Claude Sonnet, GPT-4o, Gemini — whatever Copilot gives you access to), and you’re running. ...

March 18, 2026 Â· 2 min Â· Kjetil J.D.

Tip #22: Use scripts for repeatable tasks

Deterministic tasks deserve deterministic scripts — not AI improvisation every session.

March 18, 2026 Â· 2 min Â· Kjetil J.D.

Tip #23: Write scripts that guide the agent

Script output goes straight into the agent’s context window. Design it to say what happened and what to do next — not just what ran.

March 19, 2026 Â· 2 min Â· Kjetil J.D.

Tip #24: Automate the boring parts with hooks

Hooks are shell commands that fire automatically at agent lifecycle points — before/after a tool runs, on session start, on finish. Unlike instruction files, they’re deterministic. Enforce your venv rule, run tests after edits, get a desktop notification when the agent is done.

April 16, 2026 Â· 2 min Â· Kjetil J.D.

Tip #25: Your engineering skills didn't disappear — they shifted

Less syntax, more architecture. Less typing, more judgment. AI rewards good engineering — but only if you stay sharp.

April 17, 2026 Â· 2 min Â· Kjetil J.D.

Tip #26: Before you wire AI agents to CI/CD, read this

The Clinejection attack showed how a malicious PR description can hijack an AI agent with CI/CD access. Know the risk before you automate.

April 17, 2026 Â· 2 min Â· Kjetil J.D.

Tip #27: Subagents are now a standard pattern — here's what that means

Subagents are fresh agents spawned for specific tasks with clean context windows. Every major coding agent now supports them — use them to avoid context rot and run explorations in parallel.

April 20, 2026 Â· 2 min Â· Kjetil J.D.

Tip #28: Are we building a factory?

The ‘factory model’ for AI coding is everywhere. But our industry has tried to industrialise software five times before. Each wave made something easier. None solved it. Is this time different?

April 20, 2026 Â· 2 min Â· Kjetil J.D.

Tip #29: The hidden cost — comprehension debt

AI-generated code that passes tests but nobody understands. Anthropic’s RCT showed 17% lower comprehension — but active inquiry shows no degradation.

April 21, 2026 Â· 1 min Â· Kjetil J.D.

Tip #30: Give your agent all the repos at once

Clone related repos into one parent folder, add an AGENTS.md, and start your agent there. It lazy-loads on demand — cross-system understanding with no extra token cost.

April 23, 2026 Â· 2 min Â· Kjetil J.D.

Tip #31: Review your code through different lenses

Run separate review passes with different expert frames — security, architecture, framework. Each ’lens’ activates different model knowledge.

April 24, 2026 Â· 2 min Â· Kjetil J.D.

Tip #32: Tired of the permission prompts?

Most tools let you auto-approve agent actions. Three caveats: you lose checkpoints, verbal rules vanish, and you must set permissions correctly.

April 27, 2026 Â· 2 min Â· Kjetil J.D.

Tip #33: Give your agent a way to check its own work

Tell the agent to run tests, type checkers, and linters after changes. Without verification tools, you’re the only feedback loop.

April 28, 2026 Â· 2 min Â· Kjetil J.D.

Tip #34: Ask for HTML, not just text

Before a big change, ask the agent for the plan as HTML and open it in your browser.

May 19, 2026 Â· 2 min Â· Kjetil J.D.

Tip #35: Spike first, build second

AI makes implementation cheap — use that to run more experiments. Treat the first pass as a throwaway spike, then start fresh and build with intention.

May 19, 2026 Â· 2 min Â· Kjetil J.D.

Tip #36: Get grilled by the inverse rubber duck

Before coding, have the agent interview you about the plan. The inverse rubber duck asks the hard questions — surfacing gaps and assumptions when they’re cheap to fix.

May 20, 2026 Â· 2 min Â· Kjetil J.D.

Tip #37: Watch for session drift (when the agent starts cheating)

In long sessions the agent starts cheating — modifying tests, claiming done early, ignoring constraints. Treat drift as a signal to restart with a tighter task boundary.

May 20, 2026 Â· 2 min Â· Kjetil J.D.

Tip #38: Talk to your agent

Voice dictation isn’t for dictating code — it’s for the prose around code that agents need. Speaking is 3× faster than typing, and the reduced friction produces richer prompts.

May 21, 2026 Â· 2 min Â· Kjetil J.D.

Tip #39: Staying out of the genie tarpit

Kent Beck: AI agents push code down and to the left — less working, less changeable. The agent delivers features; flexibility is still yours to maintain.

May 27, 2026 Â· 2 min Â· Kjetil J.D.

Tip #40: Keep up with your tool

AI coding tools ship weekly. Spend 10 minutes scanning your tool’s changelog — the compound effect of knowing what’s available before you need it is enormous.

May 28, 2026 Â· 2 min Â· Kjetil J.D.