Skip to content

fix: forbid coding agents to read any .env files in the repo #148#149

Merged
navalnica merged 2 commits intodevelopmentfrom
forbid-dotenv-for-coding-agents
Feb 17, 2026
Merged

fix: forbid coding agents to read any .env files in the repo #148#149
navalnica merged 2 commits intodevelopmentfrom
forbid-dotenv-for-coding-agents

Conversation

@navalnica
Copy link
Contributor

@navalnica navalnica commented Feb 16, 2026

Applicable issues

Description of changes

  • forbid cursor to read any *.env files in the repo
  • forbid claude code to read any *.env files in the repo (previous setup forbade cc to read .env only in the root)
  • also, upd makefile: allow to install pre-commit hooks without acive venv (follow existing pattern of using poetry run)

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@navalnica navalnica requested a review from ypldan as a code owner February 16, 2026 23:12
@navalnica navalnica self-assigned this Feb 16, 2026
@ypldan ypldan force-pushed the forbid-dotenv-for-coding-agents branch from 331def7 to 38bc52a Compare February 17, 2026 10:10
@navalnica navalnica merged commit 14b9edb into development Feb 17, 2026
9 checks passed
@navalnica navalnica deleted the forbid-dotenv-for-coding-agents branch February 17, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

coding agents: incorrect exclude rules for .env

2 participants