Skip to content

Docker refactoring - #2

Merged
pairing4good merged 4 commits into
mainfrom
docker-refactoring
Feb 13, 2026
Merged

pairing4good merged 4 commits into
mainfrom
docker-refactoring

Conversation

@pairing4good

Copy link
Copy Markdown
Owner

This pull request adds a comprehensive example and configuration for the RLM refactoring agent, improves Docker REPL support for bind-mounted repositories, and introduces persistent Docker event logging for debugging. The most significant changes are grouped below.

Refactoring Example & Configuration

  • Added a full programmatic example (examples/refactor_example.py) showing how to use the RLM refactoring agent, including custom instructions, logging, and multi-model configuration.
  • Introduced a detailed YAML configuration template (examples/refactor/sample-working/rlm-config.yaml) for the refactoring agent, supporting root/sub-models, token budgets, and execution settings.
  • Added a sample refactoring instruction file (examples/refactor/sample-working/rlm-instructions.md) and a template for user instructions (examples/rlm-instructions-template.md). [1] [2]

Docker REPL Enhancements

  • Improved Docker REPL to support bind-mounting a working directory for multi-repo refactoring, including automatic installation/configuration of git and safe directory settings. [1] [2]
  • Added persistent Docker event logging to a file for debugging container setup, execution, and cleanup failures. [1] [2] [3] [4]

Dependency & Script Updates

  • Added pyyaml as a dependency for YAML configuration parsing and registered the rlm-refactor CLI entry point.

Sample Workspace Setup

  • Added sample git submodules for demonstration (examples/refactor/sample-working/sample-repo-one, sample-repo-two, sample-repo-three). [1] [2] [3]

Refactoring Prompt Export

  • Exported REFACTOR_SYSTEM_PROMPT in the refactor module for easier integration.

- Implemented a new CLI entry point for the RLM refactoring agent, allowing users to run refactoring tasks directly from the command line.
- Added example usage documentation for the CLI, including various configuration options.
- Created a template for refactoring instructions to guide users in specifying their refactoring tasks.
- Introduced a system prompt for the refactoring agent, detailing its capabilities and expected workflow.
- Enhanced the Docker environment setup to support working directories and Git operations.
- Developed comprehensive tests for the refactoring module, including CLI argument parsing and validation.
- Refactored existing mock language model tests to improve code clarity and maintainability.
…ring example

- Added pyyaml to dependencies in uv.lock
- Deleted multiple unused text files from the working directory
- Removed outdated rlm-instructions.md and replaced it with a new version
- Created a new README.md for the RLM refactoring example with detailed instructions
- Added rlm-config.yaml for configuration in the refactoring example
@pairing4good
pairing4good merged commit 9527018 into main Feb 13, 2026
3 checks passed
@pairing4good
pairing4good deleted the docker-refactoring branch February 13, 2026 00:01
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