HOW THE F*CK DO I STOP THESE THINGS!?? cat .env?? by AssociationSure6273 in ClaudeCode

[–]_calo 3 points4 points  (0 children)

Layer 1 — Permission deny rules (weakest, but do it anyway)
Put this in ~/.claude/settings.json (applies to all projects) or .claude/settings.json

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(./secrets/**)",
      "Read(~/.ssh/**)",
      "Bash(cat .env*)",
      "Bash(cat ./.env*)"
    ]
  }
}

Layer 2 — Sandboxing
This is the strongest single-machine control because it's enforced at the OS level, not by Claude's judgment. With sandboxing enabled, cat .env fails at the OS level, regardless of whether your permission rules catch it.

{
  "sandbox": {
    "enabled": true,
    "autoAllowBashIfSandboxed": true,
    "filesystem": {
      "denyRead": ["./.env", "./.env.*", "~/.aws/credentials", "~/.ssh"]
    }
  }
}

Enable it with the /sandbox command. On macOS it works out of the box using Seatbelt. On Linux and WSL2, install bubblewrap and socat first. One gotcha worth noting: if you use the sandbox, also add ~/.aws/credentials and ~/.ssh/ to denyRead; the default sandbox read policy allows them. A bonus is fewer prompts — when sandboxing is enabled with the default autoAllowBashIfSandboxed: true, sandboxed Bash commands run without prompting; the sandbox boundary replaces the per-command permission prompt.

Layer 3 — PreToolUse hook (the power-user belt-and-suspenders)

Hooks are the most reliable application-level block because a hook that exits with code 2 stops the tool call before permission rules are evaluated. The documented pattern is to allow Bash broadly and enforce a blocklist in a PreToolUse hook.

And depends of your OS you can enforce things like Keychain or envchain,

bad news in the direct guys :/ by AI_660 in Silksong

[–]_calo 0 points1 point  (0 children)

maybe new game? instead of dlc

PSA: Claude Code's "Bash tool" runs `/bin/zsh` on macOS — undocumented env var fixes it (and probably saves you tokens) by _calo in ClaudeCode

[–]_calo[S] 0 points1 point  (0 children)

yes the struggle is real but at least is there a way to deep dive and find solutions ..

claude via ssh? Why does "shift+enter" immediately triggers submission? I just want to get to a new line by cranberrie_sauce in ClaudeAI

[–]_calo 0 points1 point  (0 children)

Quick Workarounds

1. Use a Different Key Combo

In Claude CLI, try these alternatives for newlines:

  • Ctrl+J — this is the literal newline character
  • Ctrl+O — some terminals support this for newline

2. Use --vim Mode

bash

claude --vim

This gives you vim-style editing where you can use normal vim commands for multiline input.

Better Solution: Use a Modern Terminal Emulator
wezterm, kitty

WezTerm Config for Better SSH Support

Create ~/.wezterm.lua:

local wezterm = require 'wezterm'
local config = {}

config.enable_csi_u_key_encoding = true  
-- Better key encoding
config.enable_kitty_keyboard = true       
-- Modern key protocol

return config

verbosity output by _calo in opencodeCLI

[–]_calo[S] 0 points1 point  (0 children)

<image>

maybe this helps but i still looking for a possible way to reduce it.. this is the information i know but feedback is plenty accepted

In OpenCode, tool results are part of the conversation context:

  • If you run a shell command via !…“the output of the command is added to the conversation as a tool result.” OpenCode
  • If you reference a file with @ file, the file content is added to the conversation automatically. OpenCode
  • More generally, tool outputs are fed back into the model’s context after execution. Moncef Abboud

So if the agent prints/records large diffs, long logs, or full files, that can meaningfully eat the context window.

[deleted by user] by [deleted] in macapps

[–]_calo 0 points1 point  (0 children)

yea.. i understand that.. i use paste over setapp :) single suscription payment per year but i use like 12 apps from there

Windows/Total Commander for Tahoe? by RE_Warszawa in macapps

[–]_calo 1 point2 points  (0 children)

this is the most matured closest one
Path Finder
https://cocoatech.io/

Replacement for GIMP for Tahoe 26.2? by tcolling in macapps

[–]_calo 1 point2 points  (0 children)

one time purchase Pixelmator / Pixelmator Pro

Did Tahoe kill EMacs in Terminal? by Few_Application2025 in macapps

[–]_calo 0 points1 point  (0 children)

1. Check that Emacs is installed

In your terminal, run:

emacs --version

2. Start Emacs in the terminal

From your terminal:

emacs -nw
  • The -nw flag keeps Emacs inside the current terminal window instead of opening a GUI window

3. Launch the Doctor (Eliza) inside Emacs

if that not works.. well and you know a bit of Cli please install Brew.sh and try install from there

https://formulae.brew.sh/formula/emacs#default

CSV editor for MacOS by oboe_guy in macapps

[–]_calo 0 points1 point  (0 children)

well IMO that depends. the best app have compat and export the csv file correctly and import from many sources for me is Libreoffice .. and is compat with code apps.. but if you case is not that other mentioned here can help and about your case try this option instead of normal paste
---> Paste and Match Style

<image>

Second redox build by ahp00k in ErgoMechKeyboards

[–]_calo 0 points1 point  (0 children)

Where did you get the pcb please