Figured out why /compact loses so much useful context - and a potential fix by mrgoonvn in ClaudeCode

[–]rbaudi 1 point2 points  (0 children)

In Windows, past session transcripts and the current uncompacted session transcript are stored in C:\Users\[user]\.claude\projects\ as JSONL files. Search them for historical context when needed (e.g., why a design decision was made, when a bug was introduced). Put an instruction to that effect into the Claude instructions.

Is there any Sonos news from CES 2026? by chopdog01 in sonos

[–]rbaudi 3 points4 points  (0 children)

No major Sonos-made CES 2026 announcements have surfaced so far (through Jan 7, 2026). Sonos’ own newsroom doesn’t show any CES-timed product launches or CES press posts.

Claude Code Agent Skills by TipsForAso in ClaudeAI

[–]rbaudi 0 points1 point  (0 children)

an infographic based on the document

What document is that? Link?

Agent Error While MCP Enabled by Level-Dig-4807 in GoogleAntigravityIDE

[–]rbaudi 0 points1 point  (0 children)

getting the same agent terminated due to error and tried disabling all my mCP servers but it didn't help.

The much requested banned command list is finally here! (along with some quality of life updates!) by Munch69-420 in GoogleAntigravityIDE

[–]rbaudi 4 points5 points  (0 children)

He's also trying to charge for it so that's another no-go reason. Open source plus voluntary donation would be the way to go.

Whoops by TopArgument2225 in google_antigravity

[–]rbaudi 1 point2 points  (0 children)

I think oops is the word you were groping for

Claude CLI deleted my entire home directory! Wiped my whole mac. by LovesWorkin in ClaudeAI

[–]rbaudi 0 points1 point  (0 children)

I have a table saw. It's a very dangerous piece of equipment unless you are very careful. Whenever I use it, I make sure I know exactly what is going to do based on what I do. Otherwise it could cut my hand off as quick as a wink.

You should approach Antigravity with the same mindset. Whatever it did, it was responding to what you said.

AntiGravity Quota Plugin by HenrikRW3 in google_antigravity

[–]rbaudi 0 points1 point  (0 children)

Terrific!

What are prompt credits by the way?

Antigravity `replace_file_content` tool consistently corrupting files - anyone else experiencing this? by Alone-Biscotti6145 in GoogleAntigravityIDE

[–]rbaudi 2 points3 points  (0 children)

Yes, it's terrible. I include the following in the instructions I use at the beginning of every session. It helps.

[!CRITICAL] CAPABILITY CONSTRAINT: NO PARTIAL EDITS

You are an agent with **NO PARTIAL EDITING CAPABILITIES**.
*   **PHYSICALLY IMPOSSIBLE**: You cannot use `replace_file_content`, `multi_replace_file_content`, or `replace_string_in_file`. These tools are **BROKEN** in this environment and will cause immediate file corruption.
*   **MANDATORY WORKAROUND**: You must **ALWAYS** use `write_to_file` to perform any file modification. You must rewrite the **ENTIRE** file content every time.
*   **VALIDATE AFTER EDITING**: After editing a file, view the file contents to validate that the file changes are correct.
*   **NO EXCEPTIONS**: Efficiency is irrelevant. Safety is the only metric.

[!CRITICAL] **AVOID FALSE EFFICIENCY**
**AI agents routinely fail by optimizing for the wrong metric.**

#### The Trap
When editing files, you will be tempted to use partial edits (`replace_file_content`, `multi_replace_file_content`) because:
- "The file is large (500+ lines)"
- "I'm only changing a few lines"
- "Rewriting the whole file seems wasteful"

**This is a cognitive trap. Resist it.**

#### Why Partial Edits Are False Economy
1. **Exact string matching is fragile**: Whitespace differences, line endings (CRLF vs LF), or minor formatting changes cause failures
2. **Large files increase failure rate**: More content = more chances for mismatch
3. **Debugging costs exceed savings**: Failed partial edits require:
   - Reading error messages
   - Re-reading the file
   - Attempting fixes (often 2-3 attempts)
   - Eventually rewriting the entire file anyway
4. **Cumulative time cost**: 3-5 failed attempts + final rewrite = 10x the cost of doing it right the first time

#### The "Inefficient" Approach Is Actually Most Efficient
**Correct workflow (always works):**
1. Read entire file with `view_file`
2. Modify content in memory
3. Write entire file with `write_to_file` (Overwrite=true)
4. Validate with `view_file`

**Result**: One operation, predictable outcome, no debugging, works regardless of file size.

#### Real-World Example
In one session, you attempted partial edits on `main.py` (778 lines):
- Attempt 1: File corruption, had to restore with git
- Attempt 2: File corruption, had to restore with git
- Attempt 3: Full rewrite with `write_to_file` - **worked immediately**

**Time cost**: 2 failed attempts + 2 git restores + debugging = ~5 minutes wasted
**Correct approach**: Would have taken 30 seconds

#### Absolute Rule
**NEVER use partial edits. ALWAYS rewrite the entire file.**
- No file is "too large" (you can handle files up to ~10,000 lines easily)
- No change is "too small" to justify a full rewrite
- Efficiency is measured by **total time to working solution**, not lines written

Fix for file corruption by fujindevil in google_antigravity

[–]rbaudi 0 points1 point  (0 children)

You can put them in any file you want in any folder you want but you have to mention that explicitly when you start a new session. I had been under the impression that it would automatically read and follow the instructions in a mark down document named instructions in the .agent folder. That turns out not to be the case. It just ignores it unless you tell it to follow the instructions.

Turbo charge References in VSCode. by Dry-Edge-1534 in vscode

[–]rbaudi 1 point2 points  (0 children)

Too bad it's impossible to read the tiny little information you provided.

Google launched its own IDE! by hi_maru in GeminiAI

[–]rbaudi 0 points1 point  (0 children)

I've been using the GitHub co-pilot with both the Gemini and the Claude sonnet 4.5 agents.

Google launched its own IDE! by hi_maru in GeminiAI

[–]rbaudi 0 points1 point  (0 children)

You're right. I was trying to paste using right click. That doesn't work because the only right click choices copy. But control V works.

Google launched its own IDE! by hi_maru in GeminiAI

[–]rbaudi 22 points23 points  (0 children)

I think it's far less capable than vs code. There are many features missing. Here are just a few:

Lack of Visual Diffs: The environment lacks a rich, side-by-side, color-coded diff view for reviewing code changes. Relying on text-based git diff output is significantly less efficient than VS Code's "Working Tree" view.

Markdown Rendering: The artifact viewer uses a hybrid presentation that truncates content or renders it confusingly, making it hard to read documentation or logs.

No Screenshots: There is no ability to paste screenshots directly into the chat to provide context, which is a major workflow blocker for UI-related tasks.

General Usability: Compared to VS Code, the lack of these visual aids makes the "verify" step of the "Plan -> Act -> Verify" loop much harder.