Model Releases
how to create .md files and set context window more than 64k for ollama and claude running locally.
This Reddit thread discusses how to configure Ollama for use with Claude Code locally, covering two key setup steps. By default, Ollama uses a context window of only 4,096 tokens — insufficient for Cl
This Reddit thread discusses how to configure Ollama for use with Claude Code locally, covering two key setup steps. By default, Ollama uses a context window of only 4,096 tokens — insufficient for Claude Code's multi-step workflows — and the recommended fix is to use a Modelfile (analogous to a Dockerfile for LLMs) to customize the base model with a higher num_ctx parameter. A context window of 64K is recommended by Ollama and has been found to be the practical minimum for multi-file agentic work with Claude Code. The thread likely also covers creating CLAUDE.md files, which serve as project-level instruction files used to specify requirements and context for Claude Code's code generation.
Related
- Possible memory leak in Ollama when using Claude Code?
- KIV: 1M token context window on a RTX 4070 (12GB VRAM), no retraining, drop-in HuggingFace cache replacement - Works with any model that uses DynamicCache [P]
- Ollama with VSCode
- Can't get a good coding setup on Macbook Pro M3 Max 36GB
- I built a VS Code extension that cuts my Claude API bill to ~$5/day
- I reduced my token usage by 178x in Claude Code!!
Source: r/ollama | 2026-04-12