Skip to content

Studio: remove AGENTS.md and CLAUDE.md from install artifacts - #7096

Merged
danielhanchen merged 8 commits into
mainfrom
fix/remove-installed-agents-md
Jul 13, 2026
Merged

danielhanchen merged 8 commits into
mainfrom
fix/remove-installed-agents-md

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • rename the repository-owned i18n AGENTS.md guide to README.md
  • prune AGENTS.md and CLAUDE.md files published by frontend and OXC npm dependencies after setup
  • prune both instruction files from fresh and existing Studio-managed llama.cpp trees, including tag-match fast paths
  • preserve user-owned llama.cpp directories supplied through --with-llama-cpp-dir

Both ggml-org/llama.cpp and unslothai/llama.cpp currently ship root-level AGENTS.md and CLAUDE.md, so the prebuilt source hydration path covers both.

Testing

  • uv tool run --from pytest pytest tests/studio/install/test_install_llama_prebuilt_logic.py -q (52 passed)
  • bash tests/sh/test_with_llama_cpp_dir_link_behavior.sh
  • sh tests/sh/test_with_llama_cpp_dir_flag.sh (24 checks passed)
  • behavioral Unix and PowerShell cleanup checks for both filenames
  • ruff check on the modified Python files
  • Bash syntax and PowerShell parser checks

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces mechanisms across Python, Bash, and PowerShell setup scripts to prune contributor-only AGENTS.md files from the installed runtime directories (such as frontend, OXC validator, and llama.cpp) while safely avoiding user-linked directories. The feedback suggests wrapping the file deletion (unlink) in a try-except block in studio/install_llama_prebuilt.py to prevent potential OSError exceptions from crashing the installation process during this non-critical cleanup step.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread studio/install_llama_prebuilt.py Resolved
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen danielhanchen changed the title Studio: remove AGENTS.md from install artifacts Studio: remove AGENTS.md and CLAUDE.md from install artifacts Jul 13, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 80b19f893b

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: c589944939

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@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: 95bd3580a8

ℹ️ 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 studio/setup.ps1 Resolved
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@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: fb807dab50

ℹ️ 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 studio/setup.sh Resolved
Comment thread studio/setup.sh Resolved
Comment thread studio/install_llama_prebuilt.py Resolved
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 3cd99ef895

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a mechanism to clean up contributor-only agent instruction files (AGENTS.md and CLAUDE.md) across Python, Bash, and PowerShell setup scripts, ensuring they are not followed or preserved through symlinks or junctions. Feedback was provided to simplify the _is_link_or_junction helper function in install_llama_prebuilt.py by leveraging Windows reparse point attributes directly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread studio/install_llama_prebuilt.py Resolved
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces automated cleanup of contributor-only agent instruction files (AGENTS.md and CLAUDE.md) across the installation and setup processes. It adds robust, link-safe removal logic in Python (install_llama_prebuilt.py), PowerShell (setup.ps1), and Bash (setup.sh) to ensure these files are pruned from the frontend, validator, and llama.cpp directories without traversing external symlinks or junctions. Comprehensive unit tests have also been added to verify this behavior under various environments and edge cases. There are no review comments to address, and the implementation looks solid.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: dc33fe3f2f

ℹ️ 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".

@danielhanchen
danielhanchen merged commit 9e77c1e into main Jul 13, 2026
47 of 48 checks passed
@danielhanchen
danielhanchen deleted the fix/remove-installed-agents-md branch July 13, 2026 07:15
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