{"id":"6b08c24a38c84264c202743c","slug":"ai-coding-assistants","title":"AI coding assistants: from editor suggestions to an agent that opens pull requests","summary":"How to work with AI on code so you gain speed without losing quality: modes of work, project context (CLAUDE.md, AGENTS.md), the explore–plan–implement–verify cycle, change review, tests, security and automated review in CI.","servedLang":"en","availableLangs":["pl","en"],"topics":["ai-coding-assistants","ai-agents","ai-guardrails","prompt-engineering"],"techs":["python","typescript","dotnet"],"tags":["coding-assistants","claude-code","copilot","code-review","agents-md","ci","claude"],"level":"beginner","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":14,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:35:38.797Z","updatedAt":"2026-11-27T13:12:45.162Z","requestedLang":"en","theme":{"hero":"classic","heroMedia":null,"accent":"rose","background":"dots","weaveResources":true,"toc":"right"},"seoDescription":"AI coding assistants in practice: suggestions, chat and agents (Claude Code, Copilot, Cursor), CLAUDE.md and AGENTS.md files, a test-driven workflow, code review, security and AI review in GitHub Actions with code in Python, TypeScript and C#.","wordCount":2659,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"An AI coding assistant can write an endpoint, a test or a migration in a few minutes – and just as quickly bring into the repository a bug that slips through a careless review. The difference between a team that gains from AI and a team drowning in technical debt is not the choice of tool but the way of working: what context the assistant gets, how big the tasks it is given are, how the result is verified and where the trust boundaries lie."}]},{"type":"stats","attrs":{"items":[{"value":"3","label":"modes of work","hint":"editor suggestions, chat, an agent in the repository"},{"value":"1","label":"project context file","hint":"CLAUDE.md, AGENTS.md or Copilot instructions"},{"value":"100%","label":"of changes go through review and tests","hint":"no matter who wrote them"}]}},{"type":"callout","attrs":{"variant":"info","title":"TL;DR"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Treat the assistant like a very fast collaborator who does not know your repository and does not remember yesterday's conversation: give it project context, small tasks and clear completion criteria."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"The best work cycle is "},{"type":"text","text":"explore → plan → implement → verify","marks":[{"type":"bold"}]},{"type":"text","text":", with tests as an objective judge and your review at the end."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"AI-written code is code like any other: the PR author is responsible for it. You set trust boundaries (secrets, agent permissions, dependencies) in the tools, not in the model's goodwill."}]}]}]}]},{"type":"heading","attrs":{"level":2,"id":"the-problem-fast-confident-and-off-target"},"content":[{"type":"text","text":"The problem: fast, confident and off target"}]},{"type":"paragraph","content":[{"type":"text","text":"The pierogi ordering platform team gets AI assistants. After a month the results are mixed. A new discounts endpoint was built in an hour – but it computed the discount on the price including delivery, although the terms say otherwise, and the tests generated alongside it checked… exactly that wrong behaviour. An agent asked to \"fix a flaky test\" simply added "},{"type":"text","text":"skip","marks":[{"type":"code"}]},{"type":"text","text":". Another PR brought in a dependency whose name was deceptively similar to a popular library, but which in the package registry belonged to someone else entirely. And someone pasted the "},{"type":"text","text":".env","marks":[{"type":"code"}]},{"type":"text","text":" file into the chat so the assistant could \"see the configuration\"."}]},{"type":"paragraph","content":[{"type":"text","text":"None of these problems comes from AI writing bad code. They come from the team starting to "},{"type":"text","text":"accept","marks":[{"type":"bold"}]},{"type":"text","text":" code it did not understand, and verifying it with tools written by the same assistant."}]},{"type":"heading","attrs":{"level":2,"id":"three-modes-of-work"},"content":[{"type":"text","text":"Three modes of work"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Mode"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Examples"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Best for"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Risk"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Editor suggestions","marks":[{"type":"bold"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"completions in GitHub Copilot, Cursor and other IDEs"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"repetitive code, boilerplate, finishing an obvious line"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"quietly introducing small bugs that are hard to notice"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Chat in the IDE or browser","marks":[{"type":"bold"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"IDE chat, Claude, ChatGPT"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"explaining code, sketching a function, refactoring ideas, an error from the logs"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"no repository context, copying without understanding"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"An agent in the repository","marks":[{"type":"bold"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Claude Code, Copilot coding agent, Codex, agent mode in IDEs"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"multi-file tasks: implementation with tests, migrations, analysing a bug across the codebase"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"large changes at once, actions with permissions (commands, network, git)"}]}]}]}]},{"type":"chart","attrs":{"type":"radar","title":"Strengths and weaknesses of the modes of working with an assistant","caption":"An editorial assessment on a 1–5 scale (higher = better), not a measurement. Safety by default means how little harm can be done without extra safeguards.","data":{"labels":["Speed of small changes","Control over the code","Task scope","Repository context","Safety by default"],"series":[{"name":"Suggestions","values":[5,5,1,2,4]},{"name":"Chat","values":[3,4,3,2,4]},{"name":"Agent","values":[3,2,5,5,2]}]}}},{"type":"heading","attrs":{"level":2,"id":"intuition-a-brilliant-new-colleague-with-no-memory"},"content":[{"type":"text","text":"Intuition: a brilliant new colleague with no memory"}]},{"type":"paragraph","content":[{"type":"text","text":"Imagine a developer who knows every language and framework and writes ten times faster than you, but comes to work for the first day – every day. They do not know the team's conventions, do not know that the pierogi terms compute discounts without delivery, and do not remember what you agreed yesterday. What do you do? You give them an onboarding document, hand out tasks the size of one PR, ask for a plan before they start, and check the result with tests and a review."}]},{"type":"paragraph","content":[{"type":"text","text":"That is exactly how you work with an assistant. Its \"memory\" is the context: the files it reads, the project instructions and what you write in the request."}]},{"type":"heading","attrs":{"level":2,"id":"project-context-claude-md-agents-md-and-friends"},"content":[{"type":"text","text":"Project context: CLAUDE.md, AGENTS.md and friends"}]},{"type":"paragraph","content":[{"type":"text","text":"Coding agents read a project instruction file at startup: Claude Code reads "},{"type":"text","text":"CLAUDE.md","marks":[{"type":"code"}]},{"type":"text","text":", many other tools use the shared "},{"type":"text","text":"AGENTS.md","marks":[{"type":"code"}]},{"type":"text","text":" convention, GitHub Copilot uses "},{"type":"text","text":".github/copilot-instructions.md","marks":[{"type":"code"}]},{"type":"text","text":". It is the cheapest investment in quality: a few dozen lines that save hours of fixes."}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"CLAUDE.md"},"content":[{"type":"text","text":"# Halina's Pierogi – ordering platform\n\n## Commands\n- Build and test: `dotnet test` (API), `npm test` (web). Run both before you say a task is done.\n- Lint: `npm run lint` – the CI fails on warnings.\n\n## Architecture\n- api/ – ASP.NET Core, hexagonal: Domain has no references to Infrastructure.\n- Prices are in grosze (int), never decimal PLN. Discounts apply to items, not to delivery.\n\n## Rules\n- New dependencies need a reason in the PR description; check the exact package name in the registry.\n- Never edit migrations that are already on main – add a new one.\n- Secrets live in the vault; do not read or print .env files."}]},{"type":"paragraph","content":[{"type":"text","text":"Good instructions are concrete (commands, paths, domain rules), short and justified. Rules that can be checked automatically – formatting, layer boundaries, forbidden imports – are better entrusted to a linter or architecture tests than to prose; the agent will run those tools anyway, and they do not forget."}]},{"type":"heading","attrs":{"level":2,"id":"the-work-cycle-explore-plan-implement-verify"},"content":[{"type":"text","text":"The work cycle: explore, plan, implement, verify"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TB\n  A[\"A task the size of one PR<br/>+ completion criteria\"] --> B[\"Explore: the agent reads code,<br/>tests and docs\"]\n  B --> C[\"Plan: the agent proposes a plan of changes\"]\n  C --> D{\"Human: plan OK?\"}\n  D -->|\"revise\"| C\n  D -->|\"yes\"| E[\"Implement in small steps\"]\n  E --> F[\"Verify: tests, linter, build\"]\n  F -->|\"red\"| E\n  F -->|\"green\"| G[\"Human review + AI review in CI\"]\n  G --> H[\"Merge\"]","caption":"Working with an agent: a human approves the plan and the result, tests decide correctness"}},{"type":"paragraph","content":[{"type":"text","text":"A few practices make the biggest difference:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Separate planning from execution.","marks":[{"type":"bold"}]},{"type":"text","text":" Ask for a plan and read it before a single line of code is written. Fixing a plan takes a minute; fixing an 800-line diff takes an hour."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Tests as the judge, written or approved by a human.","marks":[{"type":"bold"}]},{"type":"text","text":" When the agent writes both the code and the tests, a matching bug in both is easy. Start with tests describing the rule (\"discounts do not cover delivery\"), and delegate the implementation afterwards."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Small steps and frequent commits.","marks":[{"type":"bold"}]},{"type":"text","text":" A small diff can be reviewed with understanding; a big one invites \"LGTM\"."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Concrete completion criteria.","marks":[{"type":"bold"}]},{"type":"text","text":" \"Done when "},{"type":"text","text":"dotnet test","marks":[{"type":"code"}]},{"type":"text","text":" passes and the new endpoint has a test for an order with and without delivery\" works better than \"implement discounts\"."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A new session for a new task.","marks":[{"type":"bold"}]},{"type":"text","text":" A long conversation accumulates stale context; a fresh session with a good "},{"type":"text","text":"CLAUDE.md","marks":[{"type":"code"}]},{"type":"text","text":" is often faster."}]}]}]}]},"toc":[{"id":"the-problem-fast-confident-and-off-target","text":"The problem: fast, confident and off target","level":2,"locked":false},{"id":"three-modes-of-work","text":"Three modes of work","level":2,"locked":false},{"id":"intuition-a-brilliant-new-colleague-with-no-memory","text":"Intuition: a brilliant new colleague with no memory","level":2,"locked":false},{"id":"project-context-claude-md-agents-md-and-friends","text":"Project context: CLAUDE.md, AGENTS.md and friends","level":2,"locked":false},{"id":"the-work-cycle-explore-plan-implement-verify","text":"The work cycle: explore, plan, implement, verify","level":2,"locked":false},{"id":"automated-review-in-ci","text":"Automated review in CI","level":2,"locked":true},{"id":"trust-boundaries","text":"Trust boundaries","level":2,"locked":true},{"id":"a-short-history-of-coding-assistants","text":"A short history of coding assistants","level":2,"locked":true},{"id":"when-to-delegate-and-when-to-write-it-yourself","text":"When to delegate, and when to write it yourself","level":2,"locked":true},{"id":"team-checklist","text":"Team checklist","level":2,"locked":true},{"id":"test-yourself","text":"Test yourself","level":2,"locked":true},{"id":"what-s-next","text":"What's next","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":45,"visibleBlocks":20,"resources":[{"id":"6b0857b33c96f2d34d0b37ac","type":"article","provider":"web","url":"https://boristane.com/blog/how-i-use-claude-code","embedUrl":null,"title":"How I use Claude Code: Separation of planning and execution","description":"The research-plan-implement workflow I use to build software with Claude Code, and why I never let it write code until I've approved a written plan.","author":"@boristane","thumbnailUrl":"https://boristane.com/assets/blog/how-i-use-claude-code/og.png","durationSec":null,"lang":"en","topics":["ai-coding-assistants"],"techs":["general"],"tags":["ai","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2026-02-22T00:29:05.000Z","popularity":86,"verifiedAt":"2026-11-26T11:19:15.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.221Z","updatedAt":"2026-11-26T16:00:51.221Z"},{"id":"6b0857b33c96f2d34d0b37d5","type":"article","provider":"web","url":"https://simonwillison.net/2026/May/6/vibe-coding-and-agentic-engineering","embedUrl":null,"title":"Vibe coding and agentic engineering are getting closer than I'd like","description":"I recently talked with Joseph Ruscio about AI coding tools for Heavybit’s High Leverage podcast: Ep. #9, The AI Coding Paradigm Shift with Simon Willison. Here are some of my …","author":"Simon Willison","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":["ai-agents","ai-coding-assistants"],"techs":["general"],"tags":["ai","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2026-05-06T15:06:37.000Z","popularity":83,"verifiedAt":"2026-11-26T11:19:38.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.221Z","updatedAt":"2026-11-26T16:00:51.221Z"},{"id":"6b0857c53c96f2d34d0b47d9","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=mViFYTwWvcM","embedUrl":"https://www.youtube-nocookie.com/embed/mViFYTwWvcM","title":"Spec-Driven Development: AI Assisted Coding Explained","description":"Learn more about AI Code-Generation Software here → https://ibm.biz/BdpBwX Is AI-assisted coding the future? 🤔 Cedric Clyburn explores spec-driven development, a game-changing approach that combines LLMs with software development best practices. Learn how it differs from vibe coding, integrates…","author":"IBM Technology","thumbnailUrl":"https://i.ytimg.com/vi/mViFYTwWvcM/hqdefault.jpg","durationSec":null,"lang":"en","topics":["ai-coding-assistants"],"techs":["general"],"tags":["llm","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2026-02-28T12:01:30.000Z","popularity":86,"verifiedAt":"2026-11-26T10:59:40.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"},{"id":"6b0857b33c96f2d34d0b37c4","type":"article","provider":"web","url":"https://www.mihaileric.com/The-Emperor-Has-No-Clothes","embedUrl":null,"title":"How to code Claude Code in 200 lines of code","description":"The core of tools like Claude Code, Cursor, and Warp isn't magic. It's about 200 lines of straightforward Python. Let's build one from scratch.","author":"mihaileric.com","thumbnailUrl":"https://cdn.searchenginejournal.com/wp-content/uploads/2021/08/20-awesome-sources-of-free-data-612c26257336f-sej.jpg","durationSec":null,"lang":"en","topics":["ai-coding-assistants","ai-in-python"],"techs":["python"],"tags":["ai","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2026-01-08T19:54:26.000Z","popularity":84,"verifiedAt":"2026-11-26T11:19:15.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.221Z","updatedAt":"2026-11-26T16:00:51.221Z"},{"id":"6b0857b33c96f2d34d0b3788","type":"article","provider":"web","url":"https://www.anthropic.com/news/claude-3-7-sonnet","embedUrl":null,"title":"Claude 3.7 Sonnet and Claude Code","description":"Today, we’re announcing Claude 3.7 Sonnet, our most intelligent model to date and the first hybrid reasoning model generally available on the market.","author":"@AnthropicAI","thumbnailUrl":"https://assets.claude.com/6d4a0d28992ade92d6fa63646fd9c9d318245c6c.jpg","durationSec":null,"lang":"en","topics":["ai-coding-assistants"],"techs":["general"],"tags":["ai","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2025-02-24T18:28:59.000Z","popularity":96,"verifiedAt":"2026-11-26T11:19:15.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.221Z","updatedAt":"2026-11-26T16:00:51.221Z"}],"challenges":[],"attachments":[],"hasCode":true,"repoUrl":null,"series":[{"slug":"ai-path","title":"AI for developers","items":[{"slug":"llm-fundamentals","title":"LLM fundamentals: tokens, context windows and next-token prediction","current":false},{"slug":"prompt-engineering","title":"Prompt engineering: writing instructions a model will actually follow","current":false},{"slug":"embeddings-vector-db","title":"Embeddings and vector databases: searching by meaning","current":false},{"slug":"rag","title":"RAG: answers grounded in your own documents","current":false},{"slug":"tool-use","title":"Tool use: how a language model calls your application's functions","current":false},{"slug":"ai-agents","title":"AI agents: a model in a loop with tools – and when a plain workflow is enough","current":false},{"slug":"mcp","title":"MCP (Model Context Protocol): one standard for connecting AI to tools and data","current":false},{"slug":"evals","title":"Evaluating LLM applications (evals): tests for systems that are not deterministic","current":false},{"slug":"llm-ops","title":"LLMOps: model gateways, caching, limits, observability and costs in production","current":false},{"slug":"ai-guardrails","title":"Guardrails and security for LLM applications: prompt injection, data leaks and tool permissions","current":false},{"slug":"local-llms","title":"Local language models: Ollama, llama.cpp, vLLM, quantization and the real trade-offs","current":false},{"slug":"fine-tuning","title":"Fine-tuning language models: when it pays off, LoRA and QLoRA in practice","current":false},{"slug":"ai-coding-assistants","title":"AI coding assistants: from editor suggestions to an agent that opens pull requests","current":true}]}],"prev":{"slug":"fine-tuning","title":"Fine-tuning language models: when it pays off, LoRA and QLoRA in practice"},"next":null,"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":68,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Authority","articles":63},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Authority","articles":53},{"key":"python","title":"Python","level":5,"levelLabel":"Authority","articles":52},{"key":"java","title":"Java","level":5,"levelLabel":"Authority","articles":38}]}}