claude-workspace
CLAUDE.md2 starsChanged 21 days agoApache-2.0View on GitHub
Meta workspace for Claude Code and Codex-assisted development across multiple repositories. Each subdirectory under projects/ is an independent git repository. Sub-repos are gitignored in the meta workspace repo and are cloned locally for development and/or context. - projects/rocm-systems/ - Canonical public checkout, tracking ROCm/rocm-systems develop - Active project: emulation/rocjitsu/ - Resolve NPI development, qualification, and PR routing from LOCAL_CONTEXT.md; the public checkout and base do not apply to NPI work. - rocjitsu is a C++20 AMD GPU emulation toolkit with…
- Commits and pushes
In this repository12 other files it gives its agents.
- cleanup-worktreesSkill
- find-security-vulnerabilitiesSkill
- gh-address-commentsSkill
- gh-fix-ciSkill
- peanut-reviewSkill
- pr-createSkill
- pr-reviewSkill
- rocjitsu-build-testSkill
- rocjitsu-projectSkill
- self-reviewSkill
- stage-and-commitSkill
- sync-reposSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
44 rules. About 0 are common, 20 are distinctive, and 24 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
24
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Read emulation/rocjitsu/CONTRIBUTING.md and the relevant project docs before editing.
- Very specific: line 17
Before adding, changing, or reviewing rocjitsu code, read and follow emulation/rocjitsu/docs/style.md in the active checkout or task …
- Distinctive: line 19
Treat it as authoritative over generic workspace C++ style guidance.
- Very specific: line 20
Use skills/rocjitsu-build-test/ for local builds, including compressed debug information for fresh build directories.
- Distinctive: line 26
Use the ROCR runtime source to verify HSA runtime, libhsakmt, topology, queue, event, and KFD-facing behavior.
- Distinctive: line 30
Use as source context for rocjitsu debugger integration, GPU breakpoints, stepping, wave/register inspection, and debugger launch or resume …
- Very specific: line 32
Start with README-ROCM.md and gdb/.
- Very specific: line 34
Create debugger implementation worktrees under projects/worktrees/rocgdb/
- Distinctive: line 37
Use as reference but expect Claude/Codex is launched from a dev-container already
- Distinctive: line 39
Use for Triton development and upstream compiler context
- Very specific: line 40
Create implementation worktrees under projects/worktrees/triton/
- Distinctive: line 43
Create per-task worktrees here instead of editing the main checkout for feature work
- Very specific: line 46
Create EMU development worktrees only under projects-emu/worktrees/<organization>/<repository>/<task>/
- Distinctive: line 48
Never copy, commit, quote, attach, upload, or otherwise transfer EMU source, diffs, logs, repository names, or derived implementation …
- Very specific: line 52
Before any public publish operation, verify that the proposed content and commit history contain no material derived from projects-emu/
- Distinctive: line 75
Follow its routing to relevant pages as needed.
- Distinctive: line 76
If the file is absent, continue with the tracked project instructions.
- Distinctive: line 78
Keep private source names, paths, contents, and derived details in gitignored local files.
- Very specific: line 104
Keep the review workflows distinct.
- Very specific: line 109
All three workflows must read skills/review-criteria.md and any applicable project-specific instructions before assessing changes.
- Very specific: line 114
When creating a new development branch in this workspace or any sub-repo, prefer users/sambhav/<short-descriptive-feature>, for example …
- Very specific: line 120
Run git commands from the relevant repository directory.
- Very specific: line 124
Run peanut-review from the same branch-backed task worktree under projects/worktrees/<repo>/ that is used to develop the change.
- Distinctive: line 143
When the PR branch exists only as a remote-tracking branch, explicitly create and track a local branch:
- Very specific: line 153
Run peanut-review start from inside that worktree so $PWD identifies the intended checkout.
- Distinctive: line 160
If git push or any other remote-write command is denied by permissions, stop and ask the user how to proceed.
- Very specific: line 182
Use concise, descriptive branch features, for example users/sambhav/rocjitsu-waitcnt-semantics.
- Distinctive: line 186
Run build, test, lint, commit, and PR commands from the worktree directory.
- Distinctive: line 197
Default to one to three short prose paragraphs, including for non-trivial changes.
- Distinctive: line 211
After a plan is written, create Beads epics/tasks from it.
- Very specific: line 247
Start: Run br ready to find actionable work
- Very specific: line 248
Inspect: Run br show <id> and read any referenced plan file
- Very specific: line 249
Claim: Use br update <id> --claim for atomic assignment
- Very specific: line 250
Isolate: Create a git worktree under projects/worktrees/<repo>/...
- Distinctive: line 252
Handoff: Add a Bead comment or notes with branch/worktree path, verification, and next steps
- Very specific: line 253
Complete: Use br close <id> --reason="Completed" only after the work is pushed and a PR exists, unless the user explicitly says local …
- Very specific: line 256
Sync: Always run br sync --flush-only at session end
- Very specific: line 268
Check br ready at session start to find available work
- Distinctive: line 270
Use one worktree per independent implementation task
- Very specific: line 271
Create new issues with br create when you discover tasks
- Distinctive: line 272
Use descriptive titles and set appropriate priority/type
- Very specific: line 273
Keep Beads focused on executable state.
- Distinctive: line 274
Do not close implementation Beads while code is only present as uncommitted or unpushed local work.
- Distinctive: line 276
Always sync before ending session
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Workspace
Meta workspace for Claude Code and Codex-assisted development across multiple repositories.
Workspace Structure
Each subdirectory under projects/ is an independent git repository. Sub-repos are gitignored in the meta workspace repo and are cloned locally for development and/or context.
projects/rocm-systems/- Canonical public checkout, trackingROCm/rocm-systemsdevelop- Active project:
emulation/rocjitsu/ - Resolve NPI development, qualification, and PR routing from
LOCAL_CONTEXT.md; the public checkout and base do not apply to NPI work. - rocjitsu is a C++20 AMD GPU emulation toolkit with full-system simulation, dynamic binary translation (DBT), and dynamic binary instrumentation (DBI)
- Read
emulation/rocjitsu/CONTRIBUTING.mdand the relevant project docs before editing; useskills/rocjitsu-project/for architecture and practice - Before adding, changing, or reviewing rocjitsu code, read and follow
emulation/rocjitsu/docs/style.mdin the active checkout or task worktree. Treat it as authoritative over generic workspace C++ style guidance. - Use
skills/rocjitsu-build-test/for local builds, including compressed debug information for fresh build directories. Reviewers should reuse the prepared build for the same revision and configuration. - The useful sparse-checkout context is
emulation/rocjitsu/,projects/rocr-runtime/,shared/machine-readable-isa/isa/, and.github/. - Runtime source context:
projects/rocr-runtime/(ROCR and libhsakmt) Use the ROCR runtime source to verify HSA runtime, libhsakmt, topology, queue, event, and KFD-facing behavior; it is source context for rocjitsu, not an instruction to modify ROCR as part of ordinary rocjitsu work.
- Active project:
projects/rocgdb/- ROCm debugger source, trackingROCm/ROCgdbamd-staging- Use as source context for rocjitsu debugger integration, GPU breakpoints, stepping, wave/register inspection, and debugger launch or resume issues
- Start with
README-ROCM.mdandgdb/; the rocjitsu skill's technical map lists the AMD debugger integration files and ROCm tests - Create debugger implementation worktrees under
projects/worktrees/rocgdb/
projects/docker/- Docker for ML compiler development environment- This is the unified development docker for all builds and tests
- Use as reference but expect Claude/Codex is launched from a dev-container already
projects/triton/- Upstreamtriton-lang/tritoncompiler checkout- Use for Triton development and upstream compiler context
- Create implementation worktrees under
projects/worktrees/triton/
projects/worktrees/- Local git worktrees for parallel agent work- This directory is intentionally gitignored by
projects/* - Create per-task worktrees here instead of editing the main checkout for feature work
- This directory is intentionally gitignored by
projects-emu/- Internal EMU repositories; local-only and gitignored- Organize canonical checkouts as
projects-emu/<organization>/<repository>/ - Create EMU development worktrees only under
projects-emu/worktrees/<organization>/<repository>/<task>/ - Never copy, commit, quote, attach, upload, or otherwise transfer EMU source, diffs, logs, repository names, or derived implementation details into public repositories, public issues or pull requests, public gists, or other public artifacts
- Before any public publish operation, verify that the proposed content and
commit history contain no material derived from
projects-emu/
- Organize canonical checkouts as
plans/- Saved implementation plans from plan mode (gitignored contents, tracked directory)reviews/- Saved PR and self-review outputs (gitignored contents, tracked directory)skills/- Project-specific skills and shared referencestools/- Workspace-owned tools, including the local peanut-review port.agents/- Agent configuration; includesskills -> ../skillssymlink for Codex skill discovery.claude/- Claude Code configuration; includes settings andskills -> ../skillssymlink.codex/- Codex local configuration and rules.cursor/- Cursor local configuration.cache/- Local caches for workspace tooling and docker/dependency artifacts (gitignored).beads/- Local issue tracker state for this workspaceCLAUDE.md- Top-level context for Claude CodeAGENTS.md- Top-level instructions shared with agents (symlink to CLAUDE.md)README.md- Human-facing workspace overview and setup guide
Optional Local Context
At task start, read LOCAL_CONTEXT.md once if present, resolving
the path from this workspace root even when working in a sub-repo or worktree.
It describes available local knowledge sources and repository/branch routing.
Its task-specific routing takes precedence over generic public-checkout
examples below, including development bases, worktree roots, and PR targets.
Follow its routing to relevant pages as needed; do not preload the collection.
If the file is absent, continue with the tracked project instructions.
Keep private source names, paths, contents, and derived details in gitignored
local files. Do not copy them into tracked instructions, skills, examples,
public artifacts, or external searches. Public work requires independently
established public evidence; removing names does not make private material
public. The existing projects-emu/ confidentiality rules apply to all local
references.
Skills
skills/rocjitsu-project/- rocjitsu architecture, subsystem ownership, and engineering practicesskills/rocjitsu-build-test/- Risk-based rocjitsu build, test, formatting, sanitizer, and corpus verificationskills/gh-address-comments/- Use when addressing GitHub PR or issue comments on the current branchskills/gh-fix-ci/- Use when debugging and fixing failing GitHub Actions checks for a PRskills/find-security-vulnerabilities/- Use for requested security audits and exploitability assessmentsskills/peanut-review/- Use for explicit multi-agent review sessions, personas, curation, the review web UI, or GitHub review publishingskills/pr-create/- Use when asked to create a PR (enforces succinct descriptions)skills/pr-review/- Use when asked to review a PR from GitHubskills/self-review/- Use when asked to self-review local branch changes (before creating a PR)skills/stage-and-commit/- Use when asked to commit local changes (enforcesSigned-off-bytrailers)skills/sync-repos/- Fetch canonical clones' default branches and fast-forward local defaults while preserving pinned worktrees; supports fetch-only modeskills/cleanup-worktrees/- Remove idle worktrees and retire peanut-review sessions for landed, stale, or abandoned work, with preview and recovery recordsskills/review-criteria.md- Shared review checklist and standards (used by pr-review and self-review)skills/llvm-coding-standards.md- LLVM C++ reference used only when the target project adopts it
Note: Skills are symlinked from agent-specific config directories (
.claude/skills->../skills,.agents/skills->../skills) so local agents can discover them while keeping the source files at the repo root for easier editing.
Keep the review workflows distinct. pr-review and self-review are focused
single-agent reviews that save Markdown reports under reviews/.
peanut-review is the explicit multi-agent workflow with persistent sessions,
personas, curation, a web UI, and optional GitHub publishing. Do not escalate an
ordinary review into peanut-review unless the user requests those capabilities.
All three workflows must read skills/review-criteria.md and any applicable
project-specific instructions before assessing changes.
Sub-Repo Git Usage
When creating a new development branch in this workspace or any sub-repo,
prefer users/sambhav/<short-descriptive-feature>, for example
users/sambhav/rocjitsu-waitcnt-semantics. Follow this convention unless the
user requests another name or the target repository requires a different
pattern. Preserve existing branch names when resuming work or checking out a PR.
Run git commands from the relevant repository directory. For sub-repos under projects/, set the command working directory to projects/<repo> or its task worktree and use plain git commands.
The canonical checkouts under projects/<repo>/ are for reading, planning, debugging, and gathering context. Before making implementation edits, create or switch to a task-specific worktree under projects/worktrees/<repo>/... and do the edits, build, test, lint, commit, and PR work there. Only edit a canonical checkout directly when the user explicitly asks for that exact checkout to be modified.
Run peanut-review from the same branch-backed task worktree under
projects/worktrees/<repo>/ that is used to develop the change. Do not create
a separate detached or review-only worktree under .cache/peanut-review/.
Name sessions <repo>-pr-<number>-<change>. The shared config at
.cache/peanut-review/.peanut-review.json resolves the current worktree from
$PWD and stores only session data under .cache/peanut-review/sessions/.
Reuse an existing development worktree when one owns the PR branch. If none
exists, create a normal branch-backed task worktree under
projects/worktrees/<repo>/, then use that checkout for both review and any
subsequent fixes. Run these commands from the claude-workspace root. When the
local PR branch already exists and is not checked out elsewhere, use:
git -C projects/<repo> worktree add \
../worktrees/<repo>/<task>-<change> \
<local-pr-branch>When the PR branch exists only as a remote-tracking branch, explicitly create and track a local branch:
git -C projects/<repo> worktree add \
--track -b <local-pr-branch> \
../worktrees/<repo>/<task>-<change> \
<remote>/<remote-pr-branch>Run peanut-review start from inside that worktree so $PWD identifies the
intended checkout. Before launching reviewers, verify that its committed
HEAD is the snapshot to review. Preserve any local changes; never discard or
overwrite them to synchronize a review session. Because peanut-review pins a
commit range, commit intended review changes first or use the local-review
workflow when reviewing work that is not yet represented by the GitHub PR.
If git push or any other remote-write command is denied by permissions,
stop and ask the user how to proceed. Do not bypass the denial with alternate
remote mutation paths such as gh api, GitHub REST/GraphQL calls, gh pr edit,
direct ref updates, contents API writes, or any other tool that changes remote
repository, branch, PR, release, workflow, or gist state. Treat permission
denial for one remote-write mechanism as denial for all equivalent remote-write
mechanisms unless the user explicitly approves a specific alternative.
Parallel Agent Worktrees
Use git worktrees for autonomous feature work so independent agents do not share one mutable checkout. The canonical checkouts under projects/<repo>/ are for reading, planning, review, and context only unless the user explicitly directs otherwise. For Bead-driven implementation, create a task worktree under projects/worktrees/<repo>/<bead-id>-<short-slug>/ before modifying files.
Recommended pattern for public repositories, after resolving the target base:
cd projects/<repo>
git fetch <base-remote> <base-branch>
git worktree add \
../worktrees/<repo>/<bead-id>-<short-slug> \
-b users/sambhav/<feature> <base-remote>/<base-branch>Use concise, descriptive branch features, for example
users/sambhav/rocjitsu-waitcnt-semantics. Confirm the target repository's
actual base branch instead of assuming main; public rocjitsu uses develop,
while NPI rocjitsu follows LOCAL_CONTEXT.md for its base and PR target.
Run build, test, lint, commit, and PR commands from the worktree directory.
At handoff, leave the Bead with the worktree path, branch name, commit/PR state,
verification performed, and any
remaining follow-up. Remove completed worktrees only after the branch/PR no
longer needs local follow-up.
PR Preferences
- Resolve the base repository and branch from task-specific routing in
LOCAL_CONTEXT.mdbefore creating a PR. NPI rocjitsu PRs must use its designated internal target, even if the repository default differs. - Default to one to three short prose paragraphs, including for non-trivial changes. Explain the problem, the resulting behavior, and relevant validation concisely. Do not use headings, subheadings, or bold section labels in PR descriptions, even when the repository template contains them. Answer relevant template prompts in prose; include investigation details only when needed to assess the change.
- Include validation and any manual testing needed beyond CI in the prose; do not add a "Test Plan" section.
- Omit agent attribution footers from pull request descriptions and commit messages.
Plans
Save implementation plans created during plan mode to plans/ at claude-workspace root. These provide the durable design record for non-trivial work and are mandatory for larger feature efforts before workers fan out.
After a plan is written, create Beads epics/tasks from it. Each task should reference the plan file and relevant section, include dependencies, acceptance criteria, expected repo/worktree, likely file areas, and verification commands. Workers should read the referenced plan context before claiming a task.
Reviews
Save PR reviews and self-review outputs to reviews/ at claude-workspace root. These provide a record of findings, review context, and follow-up decisions for reviewed changes.
Beads Workflow Integration
This project uses beads_rust (br) for issue tracking. A single central .beads/ in claude-workspace tracks work across all sub-repos — there are no per-repo .beads/ directories. Prefix bead titles with [repo-name] (e.g. [rocm-systems], [docker]) to indicate which sub-repo the work relates to.
CRITICAL: NEVER MENTION BEADS IN CODE. Beads persist locally for work tracking
and session handoff, but are not shared project records. Use proper TODOs or
GitHub issues for references that must travel with source code. Track most
workspace work in Beads.
.beads/ is intentionally local-only and gitignored because all agents run on this one machine. Do not change .gitignore to track Beads state unless the workflow explicitly moves to multiple machines.
Essential Commands
# View ready issues (unblocked, not deferred)
br ready
# List and search
br list --status=open # All open issues
br show <id> # Full issue details with dependencies
br search "keyword" # Full-text search
# Create and update
br create --title="[repo] Title..." --description="..." --type=task --priority=2
br update <id> --claim
br close <id> --reason="Completed"
br close <id1> <id2> # Close multiple issues at onceWorkflow Pattern
- Start: Run
br readyto find actionable work - Inspect: Run
br show <id>and read any referenced plan file - Claim: Use
br update <id> --claimfor atomic assignment - Isolate: Create a git worktree under
projects/worktrees/<repo>/...for implementation tasks - Work: Implement the task, adding new Beads for discovered follow-up
- Handoff: Add a Bead comment or notes with branch/worktree path, verification, and next steps
- Complete: Use
br close <id> --reason="Completed"only after the work is pushed and a PR exists, unless the user explicitly says local worktree state is enough to close it - Sync: Always run
br sync --flush-onlyat session end
Key Concepts
- Dependencies: Issues can block other issues.
br readyshows only unblocked work. - Priority: P0=critical, P1=high, P2=medium, P3=low, P4=backlog (use numbers 0-4, not words)
- Types: task, bug, feature, epic, chore, docs, question
- Blocking:
br dep add <issue> <depends-on>to add dependencies - Claiming:
br update <id> --claimprevents two parallel agents from taking the same ready task. Persistent agent names are optional; disposable session identity is fine.
Best Practices
- Check
br readyat session start to find available work - Claim with
br update <id> --claimbefore editing - Use one worktree per independent implementation task
- Create new issues with
br createwhen you discover tasks - Use descriptive titles and set appropriate priority/type
- Keep Beads focused on executable state; keep durable design in
plans/ - Do not close implementation Beads while code is only present as uncommitted or unpushed local work; leave them open/in progress with handoff notes
- Always sync before ending session
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

