Skip to content

Compact LLM files: consolidate, remove unused#157

Merged
Ven0m0 merged 3 commits intomainfrom
claude/improve-github-workflows-2JCWz
Jan 12, 2026
Merged

Compact LLM files: consolidate, remove unused#157
Ven0m0 merged 3 commits intomainfrom
claude/improve-github-workflows-2JCWz

Conversation

@Ven0m0
Copy link
Copy Markdown
Owner

@Ven0m0 Ven0m0 commented Jan 12, 2026

Result: 39→27 files (-31%). Bash agent 61%↓, Python agent 79%↓.

Changes:

  • Agents: Reference instructions; rm 4.1-Beast (generic), rust (unused)
  • Instructions: Enhance Python; rm Windows (ahk/cmd/ps1), unused langs (go/java/rust/node)
  • Prompts: Rm bash/python wrappers (duplicate instructions)
  • copilot-instructions.md: Reference bash.instructions.md vs duplicate

∴ DRY principle, minimal Δ, repo-specific focus per CLAUDE.md

Result: 39→27 files (-31%). Bash agent 61%↓, Python agent 79%↓.

Changes:
- Agents: Reference instructions; rm 4.1-Beast (generic), rust (unused)
- Instructions: Enhance Python; rm Windows (ahk/cmd/ps1), unused langs (go/java/rust/node)
- Prompts: Rm bash/python wrappers (duplicate instructions)
- copilot-instructions.md: Reference bash.instructions.md vs duplicate

∴ DRY principle, minimal Δ, repo-specific focus per CLAUDE.md
Copilot AI review requested due to automatic review settings January 12, 2026 20:08
@continue
Copy link
Copy Markdown

continue bot commented Jan 12, 2026

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@github-actions
Copy link
Copy Markdown

🤖 Hi @Ven0m0, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @Ven0m0, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refactors the repository's LLM-related configurations by applying the DRY principle and focusing on repo-specific needs. The primary goal was to reduce file count and agent complexity by removing redundant or unused files and centralizing detailed instructions. This leads to a more compact and maintainable set of configurations, improving clarity and reducing overhead for agents and instruction sets.

Highlights

  • File Consolidation and Reduction: The total number of LLM-related files has been reduced from 39 to 27, a 31% decrease, by consolidating and removing unused configurations. This includes removing generic and unused language-specific agents and instructions.
  • Agent Configuration Streamlining: Agent configurations for Bash and Python have been streamlined. They now reference external instruction files for detailed standards, significantly reducing their individual file sizes (Bash agent 61% reduction, Python agent 79% reduction).
  • Removal of Unused Language Instructions: Instruction files for AutoHotkey, CMD, Go, Java, Node.js, PowerShell, and Rust have been removed, indicating a focus on a more specific set of supported languages or a refactoring of how these instructions are managed.
  • Python Instruction Enhancement: The Python instruction file (python.instructions.md) has been significantly enhanced to include detailed guidelines on toolchain, core rules, specific patterns for type safety and performance, and explicitly forbidden practices.
  • Prompt File Removal: Duplicate Bash and Python wrapper prompt files have been removed, adhering to the DRY principle by centralizing instructions.
  • Copilot Instructions Update: The main copilot-instructions.md file now references the dedicated bash.instructions.md for Bash standards, avoiding duplication of detailed guidelines.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link
Copy Markdown

🤖 I'm sorry @Ven0m0, but I was unable to process your request. Please see the logs for more details.

Copy link
Copy Markdown
Contributor

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

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 does an excellent job of consolidating and simplifying the LLM agent and instruction files. Removing unused files and applying the DRY principle has significantly cleaned up the repository structure. The new agent definitions are much more concise, and the enhanced Python instructions are a solid improvement. I've found a couple of minor areas for improvement in the new instructions to make them even better.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request successfully consolidates the LLM configuration files from 39 to 27 files (-31%), achieving its stated goal of reducing duplication and focusing on repo-specific content. The changes follow the DRY (Don't Repeat Yourself) principle by having agent files reference instruction files rather than duplicating standards.

Changes:

  • Removed prompt files (bash.prompt.md, python.prompt.md) that duplicated instruction content
  • Removed Windows-specific instructions (PowerShell, CMD, AutoHotkey) for platforms not used in this repository
  • Removed instruction files for unused languages (Rust, Go, Java, Node.js)
  • Streamlined agent files (bash, python) to reference instruction files instead of embedding full standards
  • Removed generic 4.1-Beast agent and unused rust agent
  • Enhanced python.instructions.md with modern patterns (Protocol, type hints, security)
  • Updated copilot-instructions.md to reference bash.instructions.md instead of duplicating content

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/prompts/bash.prompt.md Removed - duplicated bash.instructions.md content
.github/prompts/python.prompt.md Removed - duplicated python.instructions.md content
.github/instructions/rust.instructions.md Removed - no Rust code in repository
.github/instructions/powershell.instructions.md Removed - no PowerShell scripts in repository
.github/instructions/cmd.instructions.md Removed - no CMD/Batch files in repository
.github/instructions/autohotkey.instructions.md Removed - no AutoHotkey scripts in repository
.github/instructions/nodejs-javascript-vitest.instructions.md Removed - no Node.js project in repository
.github/instructions/java.instructions.md Removed - no Java code in repository
.github/instructions/go.instructions.md Removed - no Go code in repository
.github/instructions/intructions.intructions.md Removed - meta-instructions no longer needed
.github/instructions/python.instructions.md Enhanced with modern patterns, type safety examples, and security guidelines
.github/agents/bash.agent.md Streamlined to reference bash.instructions.md (61% reduction)
.github/agents/python.agent.md Streamlined to reference python.instructions.md (79% reduction)
.github/agents/rust.agent.md Removed - no Rust code in repository
.github/agents/4.1-Beast.agent.md Removed - generic agent not repo-specific
.github/copilot-instructions.md Updated to reference bash.instructions.md instead of duplicating bash standards

Comment on lines 2 to +3
applyTo: "**/*.py"
description: "Python coding conventions and guidelines"
description: "Production Python: strict typing, security, performance"
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

The frontmatter has inconsistent ordering compared to other instruction files. In bash.instructions.md, the order is applyTo then description, but here it's reversed on line 2-3. For maintainability and consistency, frontmatter fields should follow the same order across all instruction files.

Copilot uses AI. Check for mistakes.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 12, 2026 20:47
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@Ven0m0 Ven0m0 merged commit 716343f into main Jan 12, 2026
3 of 8 checks passed
@Ven0m0 Ven0m0 deleted the claude/improve-github-workflows-2JCWz branch January 12, 2026 20:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Comment on lines +46 to +49
def stream_file(path: str) -> Iterator[str]:
with open(path) as f:
for line in f:
yield line.strip()
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

The function signature uses Iterator[str] but the import statement is missing. The code example should include from collections.abc import Iterator to be complete and runnable.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants