Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem Description
ProjectMetadatasetsrequires_pythonto'>=3.14'by default, and the check commands touv run pytest,uv run ruff checkanduv run mypy src(src/devops_cli/ai/instruction_generator.py:86and:93-95,src/devops_cli/config/defaults.py:639-645).generate_agents_mdfor a folder with onlyCargo.tomlwrites "It runs on Python>=3.14" and those 3 commands.parse_project_metadatareads onlypyproject.toml.AGENTS.md.j2has 11 rules andAGENTS.mdhas 14, and no test finds the drift.- The model path uses the ARCHITECT review persona as its system prompt (
src/devops_cli/commands/ai.py:909). - 5 of the 6 other repositories have no
AGENTS.md.
Reproduction Steps
- Make a folder that holds only a
Cargo.toml. - Run
uv run devops ai agentsin that folder.
Expected vs Actual Behavior
Expected: the AGENTS.md names the Rust toolchain or no toolchain, and no check that the folder cannot run.
Actual: the AGENTS.md says that the project runs on Python >=3.14 and lists uv run pytest, uv run ruff check and uv run mypy src.
Proposed Solution & Architectural Design
- Detect the manifest (
pyproject.toml,Cargo.toml,package.jsonorgo.mod). Render the toolchain line only for the manifest that exists, and none when there is no manifest. - Take the check line only from the pre-push hooks. Write none when there are no hooks. Remove
DEFAULT_AGENTS_MD_CHECK_COMMANDS. - Render rule 4 (
devops ci fail-to-pass, pytest) only for Python. - Add a plan-system slot: the OpenSpec text renders only when
openspec/config.yamlexists. - Give the model path its own short system prompt.
- Add a test that compares the rule titles of the template with those of
AGENTS.md, less a named list of the rules that only devops-cli has. Do not add a byte-equal test, becauseAGENTS.mdhas 6,498 of the 6,500 allowed characters.
Target Subsystem
AI & Agentic Review Pipeline (src/devops_cli/ai/instruction_generator.py).
Existing Tool Considered
The template is Jinja2, which stays. The kit item (#3753) moves the template into the Copier project kit later. The manifest detection reads 4 standard file names. No tool is necessary. Cost: about 50 lines and 4 tests, about 200,000 tokens and 2 hours to build.
Acceptance Criteria
- A test: a Cargo-only folder gives an
AGENTS.mdwith no "Python", "uv", "pytest", "ruff" or "mypy". - A test: a folder with no manifest and no hooks gives no toolchain line and no check line.
- A test: devops-cli renders the same check line as today (from its hooks).
- The rule-title test fails when a rule title is added to
AGENTS.mdand not to the template or the named list. -
git grep -n DEFAULT_AGENTS_MD_CHECK_COMMANDS srcgives 0.
Dependencies
None.
Source: #4627
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(ai)scope of the title gives the scope.The tool emits wrong toolchain and check lines for every non-Python project, but it does not crash or lose data.Users of Rust, Go, or JS projects receive an AGENTS.md that names a Python toolchain they do not use.The body estimates about 50 lines of code and 4 tests, roughly 2 hours of work.Both concern devops ai tooling working correctly on non-Python projects, but #505 asks for a validation run across sample repos while the candidate fixes the manifest detection logic in the AGENTS.md generator.devops-cli-service commentedon Nov 11, 2026
Released in v0.114.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.114.0
devops-cli-service commentedon Nov 11, 2026
Live since 2026-11-11 22:57 UTC