<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob" -->

---
title: I stopped giving Claude Code my entire project, and my...
description: Reducing Claude Code's token consumption comes down to limiting how much of a codebase it explores per task. Rather than letting the tool search an entire...
canonical: https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I stopped giving Claude Code my entire project, and my Claude usage lasted 4x longer | daily.dev
og:description: Reducing Claude Code's token consumption comes down to limiting how much of a codebase it explores per task. Rather than letting the tool search an entire...
og:url: https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob
og:image: https://api.daily.dev/og/posts/0O1UbxJOB.png
og:image:alt: I stopped giving Claude Code my entire project, and my Claude usage lasted 4x longer
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I stopped giving Claude Code my entire project, and my Claude usage lasted 4x longer

**[XDA Developers](https://daily.dev/sources/xda-developers)** · 5 min read · 0 upvotes · 0 comments

## Summary

Reducing Claude Code's token consumption comes down to limiting how much of a codebase it explores per task. Rather than letting the tool search an entire project from scratch, providing specific context upfront—naming likely files, suggesting search terms, or using @ mentions to point directly to relevant files—cuts down wasted exploration. The /clear and /compact slash commands also help by wiping stale conversation context between unrelated tasks, preventing irrelevant prior exploration from being carried forward and consuming tokens. Applying these habits reportedly extended usage limits roughly fourfold.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.xda-developers.com/stopped-giving-claude-code-entire-project-token-usage-plummeted>

## Questions this post answers

### How can I reduce how many tokens Claude Code uses when fixing a bug in a large codebase?

Give Claude Code specific context upfront instead of letting it search the whole project from scratch. Point it toward likely files using @ mentions, suggest search terms like the function or error message involved, or tell it to grep for relevant references before opening files. This narrows exploration and avoids paying the token cost of Claude reading unrelated code just to locate the actual issue.

_Developers hunting for ways to stretch AI coding usage limits track workflow tips like this on daily.dev._

### What is the difference between Claude Code's /clear and /compact commands?

The /clear command wipes the current conversation context entirely, giving a fresh start, which is useful when switching to a completely unrelated task after finishing one, such as moving from debugging authentication to working on a settings page. /compact is the less aggressive option for trimming context without a full reset. Clearing stale context prevents old exploration from being carried forward and consuming tokens unnecessarily.

_Anyone managing AI coding sessions can compare context-management tricks like these on daily.dev._

## Similar posts on daily.dev

- [7 ways I make Claude Code use fewer tokens without hurting the results](https://daily.dev/posts/7-ways-i-make-claude-code-use-fewer-tokens-without-hurting-the-results-s1mmfwq7r) · XDA Developers · 1 upvotes · 0 comments
- [Maximize AI Efficiency: Reduce Token Use in Claude Pro](https://daily.dev/posts/maximize-ai-efficiency-reduce-token-use-in-claude-pro-vwm1wdmka) · Sergio Lema · 1 upvotes · 0 comments
- [Claude Code Context Management](https://daily.dev/posts/claude-code-context-management-4iv2b3ese) · SitePoint · 0 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#claude-code](https://daily.dev/tags/claude-code), [#prompt-engineering](https://daily.dev/tags/prompt-engineering)

[View this post on daily.dev](https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I stopped giving Claude Code my entire project, and my Claude usage lasted 4x longer","url":"https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob"},"datePublished":"2026-09-18T10:04:48.131Z","dateModified":"2026-09-18T11:19:19.815Z","description":"Reducing Claude Code's token consumption comes down to limiting how much of a codebase it explores per task. Rather than letting the tool search an entire...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/271d5db869f59988c24cbd777302109b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/271d5db869f59988c24cbd777302109b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"XDA Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"XDA Developers","logo":"https://media.daily.dev/image/upload/s--kCg6yyAP--/f_auto,q_auto/v1774964407/logos/xda-developers?_a=BAMAMiWQ0","url":"https://daily.dev/sources/xda-developers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,claude-code,prompt-engineering","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"XDA Developers","item":"https://daily.dev/sources/xda-developers"},{"@type":"ListItem","position":3,"name":"I stopped giving Claude Code my entire project, and my Claude usage lasted 4x longer"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/i-stopped-giving-claude-code-my-entire-project-and-my-claude-usage-lasted-4x-longer-0o1ubxjob#faq","mainEntity":[{"@type":"Question","name":"How can I reduce how many tokens Claude Code uses when fixing a bug in a large codebase?","acceptedAnswer":{"@type":"Answer","text":"Give Claude Code specific context upfront instead of letting it search the whole project from scratch. Point it toward likely files using @ mentions, suggest search terms like the function or error message involved, or tell it to grep for relevant references before opening files. This narrows exploration and avoids paying the token cost of Claude reading unrelated code just to locate the actual issue. Developers hunting for ways to stretch AI coding usage limits track workflow tips like this on daily.dev."}},{"@type":"Question","name":"What is the difference between Claude Code's /clear and /compact commands?","acceptedAnswer":{"@type":"Answer","text":"The /clear command wipes the current conversation context entirely, giving a fresh start, which is useful when switching to a completely unrelated task after finishing one, such as moving from debugging authentication to working on a settings page. /compact is the less aggressive option for trimming context without a full reset. Clearing stale context prevents old exploration from being carried forward and consuming tokens unnecessarily. Anyone managing AI coding sessions can compare context-management tricks like these on daily.dev."}}]}
```

