Awesome Reviewers

Reviewer · Configurations

Justify configuration changes

Treat configuration values that drive runtime behavior — numeric thresholds, feature flags, and workspace/file paths — as deliberate, documented decisions rather than incidental edits.

Instruction

Treat configuration values that drive runtime behavior — numeric thresholds, feature flags, and workspace/file paths — as deliberate, documented decisions rather than incidental edits.

  • When changing a behavior-affecting constant (e.g., a length cap like _BASH_MAX_LENGTH), state why the new value was chosen, not just that an issue asked for an increase. Keep any tests that assert the boundary behavior pinned to a concrete expected value rather than deriving their input from the same constant under test, otherwise the test stops catching regressions when the constant changes.
  • Centralize paths and directories behind a single named constant (e.g., WORKSPACE_DIR = "agent_workspace") and have all file read/write logic reference it, instead of hardcoding or scattering raw paths through the code.
  • Never silently override a caller- or user-configured setting inside shared/internal code paths (e.g., forcing target.persistent_memory = False on every served request). If an override is necessary, surface it as an explicit, documented option — such as a constructor flag — so downstream users can discover and opt in/out of the behavior instead of being surprised by it.

Example of making an override explicit instead of silent:

class MCPDeployer:
    def __init__(self, ..., disable_persistent_memory: bool = True):
        self.disable_persistent_memory = disable_persistent_memory

    def _invoke(self, name, task, img=None):
        target = copy.deepcopy(self.tools[name].target)
        if self.disable_persistent_memory:
            # Served requests must not read/write MEMORY.md; otherwise one
            # client's turns would leak into another's prompt.
            target.persistent_memory = False
        ...