Skip to content

docs(devex): symlink CLAUDE.md to AGENTS.md, steer agents to keep docs current#31

Merged
webjunkie merged 1 commit into
mainfrom
posthog-code/chore-claude-md-symlink
Jul 8, 2026
Merged

docs(devex): symlink CLAUDE.md to AGENTS.md, steer agents to keep docs current#31
webjunkie merged 1 commit into
mainfrom
posthog-code/chore-claude-md-symlink

Conversation

@webjunkie

Copy link
Copy Markdown
Contributor

CLAUDE.md is now a symlink to AGENTS.md so Claude Code reads the same guidance as other agents — one file to maintain.

While at it, checked AGENTS.md against the current code: the design brief (tokens, layout dimensions, typography, SSE events, data layer) and the public-repo guidelines all still match, so they're untouched. Two gaps filled:

FYI the README itself has some drift (config table missing a few newer env vars, SQLite section predates partitioning) — that's a separate pass, currently held back to avoid colliding with in-flight work touching the same table.


Created with PostHog Code

CLAUDE.md as a symlink means Claude Code picks up the same guidance as
other agents without maintaining two files.

AGENTS.md additions: a section making doc updates part of the change
itself (env vars -> README config table, persistence changes -> README
architecture section, design changes -> the design brief) and a short
note that tests exist now and should be extended when touching
persistence or purge code. Design brief and repo guidelines were
verified against the current frontend and left unchanged.

Generated-By: PostHog Code
Task-Id: 41462379-8751-40f7-b68c-dfe5dc89d1b8
@webjunkie

Copy link
Copy Markdown
Contributor Author

@codex review

@webjunkie webjunkie merged commit 6faa150 into main Jul 8, 2026
11 checks passed
@webjunkie webjunkie deleted the posthog-code/chore-claude-md-symlink branch July 8, 2026 15:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c0527902f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CLAUDE.md
@@ -0,0 +1 @@
AGENTS.md No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a regular file for Claude guidance

In checkouts where Git sets core.symlinks=false (for example, filesystems without symlink support), Git documents that symlinks are checked out as “small plain files that contain the link text,” so this CLAUDE.md would contain only AGENTS.md instead of the actual instructions. Because this file exists specifically so Claude Code reads the repo guidance, those contributors would silently miss the docs/test/design rules; consider making CLAUDE.md a real Markdown file or another format the tool expands explicitly.

Useful? React with 👍 / 👎.

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.

1 participant