You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reorganize plot implementations under python/ subdirectory (#5648)
## Summary
This PR reorganizes the plot implementation directory structure to
explicitly namespace implementations by language. All Python plot
implementations are now stored under
`plots/{spec_id}/implementations/python/` instead of directly under
`plots/{spec_id}/implementations/`, and corresponding metadata files are
moved to `plots/{spec_id}/metadata/python/`.
## Key Changes
- **Update command documentation** (`agentic/commands/update.md`):
Updated all path references to reflect the new `implementations/python/`
and `metadata/python/` structure throughout the update workflow,
including:
- Default library scanning paths
- Preview image generation and comparison paths
- Ruff formatting and linting commands
- Metadata YAML file locations
- GCS upload and staging paths
- Per-library branch and worktree setup
- Agent instruction paths
- **Simplify planning command documentation**
(`agentic/commands/bug.md`, `feature.md`, `refactor.md`, `chore.md`):
Removed redundant "Codebase Structure" sections from each planning
command and consolidated guidance to reference
`agentic/docs/project-guide.md` as the single source of truth for
project layout. Clarified that these commands produce plans only and
should not execute implementation.
- **Update agent infrastructure** (`agentic/commands/agentic.md`,
`audit.md`, `audit/agentic-auditor.md`, `audit/catalog-auditor.md`):
Updated Serena tool references from `jet_brains_*` aliases to the
canonical `mcp__serena__*` prefix to match `.claude/settings.json`
registration.
- **Improve command clarity** (`agentic/commands/start.md`,
`implement.md`, `test.md`, `commit.md`, `pull_request.md`, `review.md`,
`document.md`): Enhanced instructions with more specific guidance on
execution order, error handling, scope boundaries, and output format
requirements. Removed duplicate "Codebase Structure" sections in favor
of referencing the project guide.
- **Rename documentation router** (`agentic/commands/docs.md`, formerly
`context.md`): Renamed to avoid collision with Claude Code's built-in
`/context` command. Updated all references across the codebase.
- **Clarify JSON output requirements** (`agentic/commands/classify.md`,
`review.md`): Emphasized that JSON responses must be on a single line
with no preamble or markdown formatting, as they are parsed directly by
downstream code.
## Implementation Details
The directory structure change is comprehensive and affects:
- Agent workflow paths for reading and writing implementation files
- GCS staging and upload paths for plot images and HTML
- Metadata file locations for storing review feedback and quality scores
- Preview image generation and comparison workflows
- Per-library branch creation and file staging
All path updates maintain consistency across the update workflow
documentation to ensure agents and the lead coordinator work with the
correct directory structure.
https://claude.ai/code/session_01GWQrCaJZGt4nVRz7ct2LHs
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: agentic/commands/agentic.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ When routing to a single leverage point, include the point number in the task de
86
86
### Phase 2: Parallel Analysis
87
87
88
88
Each specialist receives a focused prompt (see below). They:
89
-
- Use **Serena tools** (`jet_brains_get_symbols_overview`, `jet_brains_find_symbol`, `search_for_pattern`, `list_dir`, `find_file`, `jet_brains_find_referencing_symbols`) and **Glob/Grep/Read** for code analysis
89
+
- Use **Serena tools** (`mcp__serena__get_symbols_overview`, `mcp__serena__find_symbol`, `search_for_pattern`, `list_dir`, `find_file`, `mcp__serena__find_referencing_symbols`) and **Glob/Grep/Read** for code analysis
90
90
- Do **NOT** use Bash for file discovery or code searching — only for `uv run ruff`, `uv run pytest`, or similar shell-native commands
91
91
- Send findings to `agentic-lead` via `SendMessage` when done
92
92
- Mark their task completed via `TaskUpdate`
@@ -192,7 +192,7 @@ You are the **core-auditor** on the agentic-audit team. Analyze leverage points
Copy file name to clipboardExpand all lines: agentic/commands/audit.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ You are the **audit-lead**. Your job is to coordinate a team of specialist audit
87
87
### Phase 2: Parallel Analysis
88
88
89
89
Each specialist receives a focused prompt loaded from `agentic/commands/audit/<name>-auditor.md` (see the Specialist Prompts index below). They:
90
-
- Use **Serena tools** (`mcp__serena__get_symbols_overview`, `mcp__serena__find_symbol`, `search_for_pattern`, `list_dir`, `find_file`, `mcp__serena__find_referencing_symbols`) and **Glob/Grep/Read** for code analysis. **Tool-naming note:**`mcp__serena__*` is the canonical MCP-registered prefix that matches `.claude/settings.json` (`mcp__serena__*` is in `permissions.allow`); some other repo docs (`CLAUDE.md`, `.serena/project.yml`, `agentic/commands/prime.md`) still reference legacy aliases like `jet_brains_*`or unprefixed names — treat those as the same tools and prefer the `mcp__serena__*` form here.
90
+
- Use **Serena tools** (`mcp__serena__get_symbols_overview`, `mcp__serena__find_symbol`, `search_for_pattern`, `list_dir`, `find_file`, `mcp__serena__find_referencing_symbols`) and **Glob/Grep/Read** for code analysis. **Tool-naming note:**`mcp__serena__*` is the canonical MCP-registered prefix that matches `.claude/settings.json` (`mcp__serena__*` is in `permissions.allow`). A few external configs (`CLAUDE.md`, `.serena/project.yml`) may still reference legacy `jet_brains_*`aliases — treat those as the same tools and use the `mcp__serena__*` form here.
91
91
- Use `think_about_collected_information` after non-trivial research sequences
92
92
- Do **NOT** use Bash for file discovery or code searching — only for the per-auditor whitelisted shell commands
93
93
- Stay within the tool budget (~30 calls); set `COVERAGE: partial` if forced to stop early
Copy file name to clipboardExpand all lines: agentic/commands/audit/agentic-auditor.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ You are the **agentic-auditor** on the audit team. Your scope is the **agent erg
8
8
-`prompts/`: same drift checks the llm-pipeline-auditor does at the SDK layer, but at the *prompt-management* layer — versioning, ownership, where prompts are loaded from, whether inline prompts in code should have moved to files
- TAC-style sanity (only flag what's actually weak): conditional docs (`/context`-style), model routing per task, self-validation loops, ADWs, context-window discipline (commands that load way more than they need)
11
+
- TAC-style sanity (only flag what's actually weak): conditional docs (`/docs`-style routing), model routing per task, self-validation loops, ADWs, context-window discipline (commands that load way more than they need)
Copy file name to clipboardExpand all lines: agentic/commands/audit/catalog-auditor.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,19 +17,19 @@ You don't need to query the database or run helper scripts. The repository under
17
17
## How to look
18
18
19
19
- Start with `list_dir` / Glob on `plots/` to get a feel for the size and shape (how many specs, how many implementations each).
20
-
- Pick a handful of specs to actually open — mix old and new, big and small, well-covered and sparse. Read their `specification.md`, glance at `specification.yaml`, peek at one or two `metadata/{library}.yaml` files.
20
+
- Pick a handful of specs to actually open — mix old and new, big and small, well-covered and sparse. Read their `specification.md`, glance at `specification.yaml`, peek at one or two `metadata/python/{library}.yaml` files.
21
21
- Follow your nose. If something looks off (missing file, suspiciously empty metadata, weird tag, mismatched fields), pull on that thread.
22
22
- Stop when you have enough material for a few real findings. You are not building a coverage report.
23
23
24
24
## Things worth a glance (pick whichever feel productive)
25
25
26
-
-**Implementation coverage** — specs with very few `implementations/*.py` files relative to the 9 supported libraries.
27
-
-**Quality score health** — `metadata/{library}.yaml` files with `quality_score: null` (review never ran) or low scores that have been sitting around.
28
-
-**Missing metadata files** — implementation `.py` exists but no matching `metadata/{library}.yaml` (suggests a manual merge bypassed `impl-merge.yml`).
26
+
-**Implementation coverage** — specs with very few `implementations/python/*.py` files relative to the 9 supported libraries.
27
+
-**Quality score health** — `metadata/python/{library}.yaml` files with `quality_score: null` (review never ran) or low scores that have been sitting around.
28
+
-**Missing metadata files** — implementation `.py` exists but no matching `metadata/python/{library}.yaml` (suggests a manual merge bypassed `impl-merge.yml`).
29
29
-**Spec-side rot** — specs missing `updated`, missing `tags`, missing one of the required `specification.md` sections (Description / Applications / Data / Notes), or older than the current `prompts/templates/spec.md`.
30
30
-**Tag hygiene** — tags that look like typos (used by exactly one spec), or the same concept tagged differently across specs.
31
-
-**GCS preview integrity** — for a small sample of `metadata/{library}.yaml` files, `HEAD` the `preview_url` and flag 404 / wrong content-type / 403.
32
-
-**Library-version drift** — `library_version` in `metadata/{library}.yaml` vs. the floor in `pyproject.toml``lib-{library}` extras; flag obvious staleness.
31
+
-**GCS preview integrity** — for a small sample of `metadata/python/{library}.yaml` files, `HEAD` the `preview_url` and flag 404 / wrong content-type / 403.
32
+
-**Library-version drift** — `library_version` in `metadata/python/{library}.yaml` vs. the floor in `pyproject.toml``lib-{library}` extras; flag obvious staleness.
33
33
-**Duplicate-looking specs** — descriptions that read almost identically; group them as candidates, false positives are fine.
34
34
35
35
These are **suggestions**. Skip any that don't yield signal and lean into whichever turn up real findings.
Copy file name to clipboardExpand all lines: agentic/commands/docs.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# Conditional Documentation Guide
2
2
3
-
This prompt helps you determine what documentation you should read based on the specific changes you need to make in the codebase. Review the conditions below and read the relevant documentation before proceeding with your task.
3
+
> Slash command: `/docs`. Renamed from `context.md` so the project command does not collide with Claude Code's
4
+
> built-in `/context` command.
5
+
6
+
This prompt helps you determine what documentation you should read based on the specific changes you need to make
7
+
in the codebase. Review the conditions below and read the relevant documentation before proceeding with your task.
0 commit comments