A chat assistant and a coding agent can run the same model. The difference is where the model can act and how many steps it takes on its own. Some problems, like a limited memory, are the same in both, and an agent runs into them faster.

Chat assistantCoding agent (e.g. Claude Code)
What it seesWhat you paste into the conversationYour project files, terminal, git state and CLAUDE.md
Where its tools actInside the chat app, if it has tools at allIn your real repo and terminal: read and edit files, search, run commands, tests and git
Who runs the next stepYou: copy the answer, run it, paste the result backThe agent, in a loop: gather context, act, verify, repeat
Does it know if the code runsNo, it has to guessYes, if it can run a check (tests, build, linter)
ModelSame modelSame model
MemoryWhat is in the conversation; in a Claude project, also the project instructions, files and project memoryWhat is in the session’s context, plus CLAUDE.md and auto memory loaded at start
How fast context fillsAs fast as you typeMuch faster: every file read and command output is added

What they have in common

  • The same model. An agent is not a different brain; it is the model plus tools plus a loop (see Agentic loop).
  • No memory of its own. The model reads the whole conversation again on every step. Its memory is whatever is in the context window right now.
  • A limited window. A chat lives inside one conversation, an agent inside one session, and both degrade when they get long and mixed: details slip, old and new get confused, gaps get filled with made-up answers.
  • Standing instructions cost context in both. A Claude project in the chat app has instructions and uploaded files (project knowledge) that Claude uses in every chat of that project, the way CLAUDE.md works for an agent. When project knowledge gets close to the context limit, Claude switches to retrieval (RAG): it searches the files for the parts relevant to the question instead of holding them all. The rule is the same as for CLAUDE.md: keep instructions short and to the point, and put reference material in files.
  • The same habit helps both: one task per session, and a fresh start with a short summary when things drift.

When to pick which

  • Pick a chat for questions that do not need your code: explaining a concept, comparing libraries, drafting text, a quick regex. It is fast and keeps your repo out of the picture.
  • Pick an agent when the answer depends on your codebase or has to be checked by running something: fixing a failing test, a change across several files, a refactor, debugging with real logs. Give it a check it can run so the loop can close on its own.
  • Either way, keep the session to one task. An agent fills its context in minutes where a chat takes an hour of conversation, so watch it with /context in Claude Code.

Citations

  1. How Claude Code works
  2. Best practices for Claude Code
  3. What are projects? (Claude Help Center)
  4. RAG for projects (Claude Help Center)
  5. Use Claude’s chat search and memory (Claude Help Center)
  6. How Claude remembers your project
  7. Using the Messages API: multiple conversational turns
  8. Effective context engineering for AI agents