Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/modulecmd.tcl
/ChangeLog*
/README
/CLAUDE.md
/GEMINI.md
/Makefile.inc
/version.inc
Expand Down
8 changes: 4 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# AGENTS.md

This file provides guidance to AI coding assistants when working with code
in this repository. Codex and Mistral Vibe read it directly. Claude Code and
Gemini CLI only look for their own `CLAUDE.md`/`GEMINI.md` filename, so both
are generated as stubs that just import this file (see the `CLAUDE.md:` and
`GEMINI.md:` rules in `Makefile`).
in this repository. Codex, Claude Code and Mistral Vibe read it directly.
Gemini CLI only looks for its own `GEMINI.md` filename, so it is generated
as a stub that just imports this file (see the `GEMINI.md:` rule in
`Makefile`).

## What this is

Expand Down
14 changes: 4 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -646,14 +646,9 @@ README:
sed -e '181,187d' -e '1,10d' -e 's|\[\(.*\?\)\]\[[0-9]\]|\1|' $@.md > $@

# AGENTS.md (https://agents.md) is the single source of instructions for AI
# coding assistants working in this repository. Codex and Mistral Vibe read
# it directly, but Claude Code and Gemini CLI only look for their own
# CLAUDE.md/GEMINI.md filename, so generate a stub for each that just
# imports AGENTS.md
CLAUDE.md: AGENTS.md
$(ECHO_GEN)
echo '@AGENTS.md' > $@

# coding assistants working in this repository. Codex, Claude Code and
# Mistral Vibe read it directly, but Gemini CLI only looks for its own
# GEMINI.md filename, so generate a stub that just imports AGENTS.md
GEMINI.md: AGENTS.md
$(ECHO_GEN)
echo '@AGENTS.md' > $@
Expand Down Expand Up @@ -961,7 +956,6 @@ ifeq ($(wildcard .git),.git)
rm -f ChangeLog*
endif
rm -f README
rm -f CLAUDE.md
rm -f GEMINI.md
rm -f modulecmd.tcl
rm -f $(MODULECMDTEST) $(MODULECMDTEST)_i
Expand Down Expand Up @@ -1220,7 +1214,7 @@ $(V).SILENT: initdir pkgdoc doc version.inc share/rpm/environment-modules.spec \
tcl/cache.tcl_i tcl/coll.tcl_i tcl/envmngt.tcl_i tcl/init.tcl_i tcl/interp.tcl_i \
tcl/main.tcl_i tcl/mfcmd.tcl_i tcl/modfind.tcl_i tcl/modeval.tcl_i \
tcl/modscan.tcl_i tcl/modspec.tcl_i tcl/report.tcl_i tcl/subcmd.tcl_i \
tcl/util.tcl_i ChangeLog ChangeLog.gz README CLAUDE.md GEMINI.md \
tcl/util.tcl_i ChangeLog ChangeLog.gz README GEMINI.md \
script/add.modules script/gitlog2changelog.py script/modulecmd \
lib/libtclenvmodules$(SHLIB_SUFFIX) lib/libtestutil-closedir$(SHLIB_SUFFIX) \
lib/libtestutil-getpwuid$(SHLIB_SUFFIX) lib/libtestutil-getgroups$(SHLIB_SUFFIX) \
Expand Down
Loading