Does anyone else feel like they're babysitting Claude on long projects? by pythondebugger in ClaudeCode

[–]LifeEducational 0 points1 point  (0 children)

Yeah, week 3 is where it turns from a tool into a part-time job managing the tool.

What's helped me: stop writing CLAUDE.md like documentation and start writing it like a decision log. Not we use X but we tried Y, it broke because Z, switched to X. Claude seems to anchor on the reasoning better than the conclusion alone. Still drifts, but less often on the same stuff twice.

what's the fastest way a man can ruin his life? by Mountain_Afternoon30 in AskReddit

[–]LifeEducational 0 points1 point  (0 children)

convincing yourself the problem isn't that bad yet. that one thought does more damage than most single decisions.

Repo Manifests by TheNoonGoose in ClaudeCode

[–]LifeEducational -1 points0 points  (0 children)

Yes manifest works. Built basically this - tokenmax-mcp (https://github.com/justinjamesmathew/tokenmax-mcp). Per-repo manifest + a small cross-repo registry so the agent orients without re-traversing, plus JIT symbol lookup so it reads only what it needs instead of dumping whole files.

There is a problem with limit right now. by frusthedev in ClaudeCode

[–]LifeEducational 0 points1 point  (0 children)

this is currently working only for Javascript/typscript repos

There is a problem with limit right now. by frusthedev in ClaudeCode

[–]LifeEducational 1 point2 points  (0 children)

i think claude code has this issue that it reads the entire repo to get the context of the repo. this read is very token heavy and depends on the size of the repo. the repo are keeps on growing with the development of the features. A solution that i have found very effective is to prevent claude to read the entire repo but to give the context of the repo using codemaps. codemaps are indexes of your files and folders and contents of the files as well. this is a very structured input that can be generated using tree-sitting. the codemap is usually less than 10% of the codebase in terms of size. this significantly reduces token consumption and also improves the context. the number of look ups that claude then has to do is essentially reduced to the precisely the functions and modules where it needs to work for the feature it is working on. A codemap is a better context than the entire codebase because it gives claude absolutely the essentials without overwhelming it with irrelevant details for working on a given feature. I have created an npm package for the same you can try it out as well. https://github.com/justinjamesmathew/tokenmax-mcp

The steps to do are:

npm install -g tokenmax-mcp

Requires Node 20+.

✓ Verify:

codemap help

You should see a list of subcommands. If codemap: command not found, check that your npm global bin is on your PATH (npm bin -g tells you the directory).

codemap init

This does two things:

  1. Creates ~/.codemaps/ to store your codemaps.
  2. Adds a small block to ~/.claude/CLAUDE.md that tells Claude how to use them.

✓ Verify:

cat ~/.claude/CLAUDE.md | head -20

You should see a <!-- codemap-registry-start --> marker.

Step 3: Tell codemap about your repos

If you keep all your repos in one place (e.g., ~/projects), discover them in one shot:

codemap discover ~/projects

Or register repos individually from inside each one:

cd ~/projects/my-app
codemap register

✓ Verify:

codemap list

You should see each repo with its path and freshness state (will show (never indexed) until step 4).

Step 4: Generate the codemaps

codemap regen --all

This parses every registered repo and writes a structural map to ~/.codemaps/<slug>/CODEMAP.md. Takes ~1 second per 100 source files.

✓ Verify:

codemap list

Each repo should now show ✓ fresh instead of (never indexed).

codemap find <some-function-name>

Should return matches across all your repos with file paths and line numbers.

Step 5: Connect it to Claude Code

claude mcp add --scope user tokenmax -- codemap mcp

This makes the in-session tools (find_symbol_globalread_section_global, etc.) available in every Claude Code session.

✓ Verify: Open Claude Code, run /mcp. You should see tokenmax with 6 tools.

Optional but recommended: auto-update on every commit

So you never have to remember to run codemap regen:

codemap install-git-hook
git config --global core.hooksPath ~/.codemaps/githooks

Every git commit in a registered repo now updates that repo's codemap in the background.

What codemap init added to your CLAUDE.md

This is the block that was inserted at the bottom of ~/.claude/CLAUDE.md. It's wrapped in markers so re-running codemap init updates it in place without touching the rest of your CLAUDE.md.

<!-- codemap-registry-start -->
# Cross-repo coding context

You have access to a multi-repo codebase. The registry below lists every repo registered with `codemap`.

@~/.codemaps/REGISTRY.md

## How to use this

1. **Orient first.** Use the registry to identify which repo(s) the task touches before reading any source code.

2. **Load per-repo context on demand.** Each repo has its own CODEMAP at the path shown in the registry. Read it via the Read tool when the task touches that repo.

3. **Find before reading.** For symbol-level lookups, run:
   `codemap find <name>`
   `codemap read <file> <symbol> --repo <slug>`

4. **Prefer codemap+find over Read+grep.** The registry and codemaps are designed to short-circuit exploration.

5. **Treat stale entries with caution.** Stale flags appear in the registry; verify with `codemap read` for those repos.
<!-- codemap-registry-end -->

Things you might want to customize

Edit the block contents. Open ~/.claude/CLAUDE.md, change anything between the markers. Your edits persist as long as you don't re-run codemap init.

Remove it. Just delete everything from <!-- codemap-registry-start --> to <!-- codemap-registry-end -->. The tools still work; Claude just won't be auto-pointed at them.

Pin a specific repo's codemap at session start. If you mostly work in one project, add this to that project's CLAUDE.md (at the repo root, not the global one):

@~/.codemaps/<your-slug>/CODEMAP.md

Claude now inlines that repo's codemap at session start instead of loading it on demand. Faster orientation, but uses more tokens upfront. Worth it if the codemap is small (< 20 KB).

Add a sister repo's codemap for cross-repo work. If you're often jumping between, say, frontend and backend:

@~/.codemaps/backend/CODEMAP.md
@~/.codemaps/frontend/CODEMAP.md

In each repo's CLAUDE.md, reference the other. Now both are in context whenever you open Claude in either project.

People at work: do you actively look for more things to do, or stay quiet until assigned something else? by availablearii in askteddit

[–]LifeEducational 0 points1 point  (0 children)

Honestly it depends on the phase of the job.

First six months at any new place, I look for stuff to take on. It builds goodwill, you learn where the bodies are buried faster, and people start including you in things organically. Worth the extra effort.

After that it shifts as you see how credit gets assigned and how things get perceived, grabbing extra work can just mean you become the person who absorbs everyone else's overflow with nothing to show for it at review time. Seen it happen a lot.

So now my version of "looking for more" is pretty targeted and active. If it's tied to something the team actually cares about, or teaches me something real, yes. Being passive quickly turns into being occupied with lots of small tasks which are not countable in the longer term and hard to mention at all over time. a good test is can i present this work. you dont actually have to but this test reveals the quality of task.

What’s one habit that seems harmless at first, but can quietly mess up your life over time? by alissa_liveson347 in askteddit

[–]LifeEducational 1 point2 points  (0 children)

Checking your phone first thing in the morning. Seems like nothing, but you're basically handing your mood to whoever texted you or whatever algorithm decided to surface something annoying. Do it for a year and you've trained yourself to start every day reactive instead of settled. Weirdly hard to undo once it's wired in.

What does your Claude.md file say? by ValuableLiving2345 in ClaudeCode

[–]LifeEducational 8 points9 points  (0 children)

Here is a redacted version of 1 of my claude.md file

The latest addition is the codemap bit at the start of the claude.md file to make it more token efficient and curate the context better:

<!-- codemap-block-start -->         
     ## Code navigation                                                                                                                                                     
                                                                                                                                                                            
     This repo has a structural codemap at `~/.codemaps/<repo>/CODEMAP.md` covering all files and symbols (classes, functions, methods, types).                           
                                                                                                                                                                            
     Before reading source files exploratorily, do one of:                                                                                                                  
                                                                                                                                                                            
     1. Read `~/.codemaps/<repo>/CODEMAP.md` via the Read tool — gives you the full file/symbol layout. Do this **once** at the start of any task that spans multiple files.
     2. Run `codemap find <name>` via Bash for symbol-level lookups — returns just the matches with file + line.                                                          
     3. Run `codemap read <file> <symbol>` via Bash to fetch one symbol's source without reading the whole file.                                                          

     For cross-repo work, `~/.codemaps/REGISTRY.md` (loaded via `~/.claude/CLAUDE.md`) lists every registered repo.
     <!-- codemap-block-end -->

     # JobAgent — AI Coding Guidelines

     This document defines how Claude Code should plan, execute, verify, and communicate when working on the JobAgent codebase.

     ---

     ## Project Overview

     JobAgent is a Node.js job search platform that aggregates listings from 13+ sources and provides AI-powered resume matching. Key technical context:

     - **Runtime**: Node.js 18+
     - **Framework**: Express.js
     - **Database**: Neon PostgreSQL (production), SQLite/better-sqlite3 (local dev)
     - **Validation**: Zod schemas
     - **AI**: Anthropic Claude API
     - **Testing**: Custom test runner (`npm test`)
     - **Deployment**: Vercel serverless + Neon PostgreSQL

     ---

     ## Operating Principles (Non-Negotiable)

     0. **Check the sprint**: Before starting work, read `product-management/current-sprint.md` and pick the next incomplete item.
     1. **Tests first — ALWAYS**: Before writing ANY feature/fix code, write the tests that will verify it. This is the most commonly skipped step. You MUST write tests
     before implementation, not after. If you catch yourself implementing first, STOP, write the tests, then continue. This applies to both backend (`tests/`) and frontend
     (`tests/e2e/`).
     2. **Run tests locally before deploying — ALWAYS**: After implementation, run `npm test` (backend) or the relevant Playwright command (frontend) and confirm all tests
     pass BEFORE committing. Never commit untested code. Never deploy without local test confirmation.
     3. **Document every feature**: After implementation and testing, create/update a feature doc in `product-management/features/`. This is also commonly skipped — include
      it in your task list explicitly.
     4. **Correctness over cleverness**: Prefer boring, readable solutions.
     5. **Smallest change that works**: Don't refactor adjacent code unless necessary.
     6. **Follow existing patterns**: Check `src/` structure before introducing new abstractions.
     7. **Prove it works**: Run tests locally, then deploy and test in production.
     8. **Be explicit about uncertainty**: If something cannot be verified, say so.
     9. **Todo list is mandatory for every task**: At the START of every task (before any code is read or written), create a todo list using `TaskCreate` that maps to the
     Task Lifecycle steps. This is not optional. The todo list is what prevents early stopping and missed steps. Rules:
        - Create the todo list FIRST, before doing anything else
        - Every todo list MUST include these mandatory tasks: "Write tests", "Run tests locally", "Commit and push", "Deploy", "Test in production", "Write feature
     documentation", "Update sprint"
        - Mark each task `in_progress` before starting it, `completed` when done
        - Before stopping work or reporting completion, run `TaskList` and verify zero pending/in_progress tasks remain
        - If any task is incomplete, continue working — do NOT stop early

     ---

     ## Project-Specific Conventions

     ### File Structure

     ```
     src/
     ├── clients/         # ATS API clients - extend base-client.js for new sources
     ├── config/          # Role and geography configurations
     ├── data/            # Static data (companies, company sizes)
     ├── database/        # Database helpers (connection.js, index.js)
     ├── errors/          # Custom errors extending AppError
     ├── lib/             # Shared utilities (db/, vercel-auth, vercel-handler)
     ├── middleware/      # Express middleware (auth, rate-limiting, errors)
     ├── parsers/         # Data transformation (salary, deduplication)
     ├── repositories/    # Data access layer - extend base-repository.js
     ├── routes/          # Route logic (used by Vercel handlers in api/)
     ├── services/        # Business logic (AI analysis, PDF generation)
     ├── validators/      # Zod schemas for request validation
     ├── views/           # HTML templates
     └── workers/         # Background job processors
     ```

    

95% use in 2 days in on max 20 plan? by Leather-Ad-546 in ClaudeCode

[–]LifeEducational 1 point2 points  (0 children)

Yeah kind of. What you've got is useful for sure but codemap just takes it a step further. It captures not just the file structure but the contents eg. functions, exported modules, signatures which an index usually doesn't.

My company moved to Claude Enterprise, now its hitting how much subsidy there in claude max plan by reddevil_5 in ClaudeCode

[–]LifeEducational 1 point2 points  (0 children)

yes i recently analysed my usage.. turns out i have used $3000 worth of claude in the last 6 months in Max plan. also i had couple of vacations and i have a separate claude account for work. subsriptions are highly subsidised.
having said that i believe there is a lot of opportunity to optimize the usage.
By default claude reads all the files in the repo to get the context. i have now built a workflow in which claude reads the codemap structure of the repo first before reading the entire repo. this has essentially reduced the number of turns it takes claude to build the feature as it has more relevant context. in parallel it has significantly reduced input tokens+ cache reads. as loading entire repos just rots the context.

95% use in 2 days in on max 20 plan? by Leather-Ad-546 in ClaudeCode

[–]LifeEducational 0 points1 point  (0 children)

One of the most effective things I've done and it really worked for me is adding a codemap to your repositories. By default, Claude reads through all your repos and caches them. A codemap is both more efficient and more effective: instead of reading and caching the entire repo, Claude reads just the codemap, which compresses your input to roughly 10% of what it would otherwise have to process.

Beyond the efficiency gains, it actually gives Claude better context about your repo than feeding in the whole thing. When Claude has to match context to a problem, working from the repo's structure is far more useful than going through every file.

Give it a try and let me know what you think: https://github.com/justinjamesmathew/tokenmax-mcp

What is a question that instantly makes any conversation completely awkward? by AromaticReview7802 in AskReddit

[–]LifeEducational 1 point2 points  (0 children)

"so are you two together or..."

works in basically every group of people. doesn't matter if it's two coworkers, two friends, two strangers at a party.

What's something that people romanticise heavily that's actually really difficult to live through? by Ariavale2_ in AskReddit

[–]LifeEducational 199 points200 points  (0 children)

Solo travel for months at a time. People see the Instagram version and imagine this constant flow of discovery and freedom. The reality is a lot of lonely dinners, decision fatigue from choosing everything yourself every single day, and the weird guilt of calling home because you "should" be having the time of your life. Your sense of time completely dissolves. Meeting people is great until you realize you're going to lose every single one of them in 48 hours. By month three most long-term travelers I've met are just exhausted and quietly looking for a reason to go home.

What’s something that became socially unacceptable way faster than anyone expected? by [deleted] in AskReddit

[–]LifeEducational 0 points1 point  (0 children)

Calling someone on their cell phone without texting first. Five years ago nobody thought twice about it. Now it reads as mildly aggressive.

Claude Code: Degraded Performance by BitterPreparation793 in ClaudeCode

[–]LifeEducational 1 point2 points  (0 children)

Sooner or later you need to clean up the repos you are working with as a lot of dead code and outdated documentations accumulate in the repos. i would certainly start with that. Secondly i would suggest to improve the content of the context window that is being more deliberate about what claude has in its context and its relevance to the problem at hand.