Skip to content

Point writing guidance at the scientific-tex-editor agent - #3

Open
psathyrella wants to merge 2 commits into
mainfrom
point-writing-guidance-at-agent
Open

psathyrella wants to merge 2 commits into
mainfrom
point-writing-guidance-at-agent

Conversation

@psathyrella

Copy link
Copy Markdown

Companion to matsen/bipartite#217 and matsengrp/bcon-tex#4. Context is matsengrp/bcon-tex#3.

The prose self-check in this CLAUDE.md and the scientific-tex-editor agent in matsen/bipartite carried overlapping style rules that drifted apart, and they disagreed: this file said an em-dash pair is fine when it interrupts with a list or gloss, the agent says never use em-dashes. The agent is the one that gets iterated on, so the checklist moves there and this file points at it.

Two mechanisms, covering different gaps:

  • .claude/rules/writing.md scoped to **/*.tex. Path-scoped rules reload after /compact, which a launch-time instruction does not.
  • A short unconditional pointer in CLAUDE.md. Path-scoped rules trigger on Read, so an agent using cat or sed never trips them; this covers that.

Also picks up the %INITIALS section that bcon-tex had and this template lacked, and un-ignores .claude/rules/ so the rule reaches generated repos.

Repos generated from this template copy files at creation time, so the ~60 existing -tex repos get nothing from this and need the change applied individually. bcon-tex is done; the rest are a separate sweep if wanted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TTpuB1uhVcnM5bSPjrkZJy

psathyrella and others added 2 commits September 4, 2026 17:33
The prose self-check here and the scientific-tex-editor agent in matsen/bipartite
carried overlapping style rules that drifted apart, and they disagreed about
em-dashes. The agent is the one that gets iterated on, so the checklist moves
there (matsen/bipartite#217) and this file points at it.

Adds .claude/rules/writing.md scoped to **/*.tex, which reloads after /compact
when an agent reads a TeX file. CLAUDE.md keeps a short unconditional pointer,
since a path-scoped rule only triggers on Read and misses Bash-based reads.

Also picks up the %INITIALS section that bcon-tex had and this template lacked,
and un-ignores .claude/rules/ so the rule reaches repos generated from here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TTpuB1uhVcnM5bSPjrkZJy
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.

2 participants