Skip to main content
Glama
Knuckles-Team

Repository Manager

Env

rm_lane_env

Diagnoses and manages isolated git lane environments for concurrent agents, preventing collisions in worktrees, stashes, and caches. Runs non-mutating checks when tests or builds behave unexpectedly.

Instructions

Env (rm_lane). The lane lifecycle for concurrent agents and humans (CONCEPT:RM-LANE-DOCTOR).

Every check behind this tool exists because a specific collision destroyed real work while the rule that would have prevented it was written down, in prose, in front of the actor who broke it: editing a canonical checkout a background git reset then discarded; a git stash into the ONE refs/stash shared by ~54 worktrees; a shared CARGO_TARGET_DIR that corrupts rather than merely serializes; an unset PRE_COMMIT_HOME whose shared store swallows unstaged work; a foreign or stale worktree-local .venv worth ~167 phantom failures; and measuring a branch TIP that will never be the tree that lands. The exact all-extras environment managed by scripts/uv_workspace.py is accepted because it is lane-partitioned and synchronized before execution.

doctor is the one to reach for when something behaves impossibly — a test failing that cannot fail, a build that will not go green, a merge that keeps being refused. It answers in under a second and mutates nothing.

Input Schema

NameRequiredDescriptionDefault
envNoFor 'doctor': the CALLER's own exported environment (at least PRE_COMMIT_HOME/CARGO_TARGET_DIR/PYTEST_ADDOPTS). Required for a truthful remote check (D-CDX-61) — this server process's own environment is not the lane process's, so omitting this evaluates the checks against server-internal state that has nothing to do with what the caller will actually run with.
baseNoBase branch to fork from / land onto (default main).
pathNoThe lane's working tree for doctor/env/finish (default: cwd).
repoNoRepo basename or absolute path. Required for 'start'.
forceNoFor 'finish': enqueue despite a blocking preflight check. Recorded in the result.
branchNoBranch for 'start'/'finish' ('finish' defaults to that tree's HEAD).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.1

TDQS

C2.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false. The description adds genuine behavioral context beyond that (doctor 'answers in under a second and mutates nothing', the collision rationale for the checks), but this context is scoped to the doctor operation rather than the tool's mutating start/finish paths, so it only partially covers the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The body is a long prose narrative about historical collisions that consumes most of the text without stating what the tool does or how to invoke it. Only the final short paragraph is actionable, and it addresses doctor rather than the tool itself; the structure is poorly front-loaded for tool selection.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. However, for a six-parameter tool spanning start/env/doctor/finish operations, the description never enumerates or differentiates those operations, so an agent cannot determine what invoking rm_lane_env actually does or which parameter combination triggers which path.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each of the six parameters (env, base, path, repo, force, branch) is already documented in the schema with operation-specific meaning. The description adds no parameter syntax or format detail beyond what the schema provides, which is the expected baseline when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens by restating the name ('Env (rm_lane)') and gives only a domain ('the lane lifecycle for concurrent agents and humans') rather than a specific verb+resource for what rm_lane_env itself does. It then spends its substance describing a different operation, `doctor`, which is already a sibling tool (rm_lane_doctor), leaving the tool's own action undefined and indistinguishable from siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only explicit when-to-use guidance ('doctor is the one to reach for when something behaves impossibly — a test failing that cannot fail...') points at the doctor path rather than routing between rm_lane_env and its actual siblings (rm_lane_start, rm_lane_finish, rm_lane_heal, rm_lane_doctor). No condition selects rm_lane_env itself, and no exclusions are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools