Skip to content

docs: sync AGENTS.md from barazo-workspace - #34

Open
gxjansen wants to merge 1 commit into
mainfrom
chore/sync-agents-md-20260601-1108
Open

gxjansen wants to merge 1 commit into
mainfrom
chore/sync-agents-md-20260601-1108

Conversation

@gxjansen

@gxjansen gxjansen commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Auto-generated from barazo-workspace/agents-md. Do not edit AGENTS.md directly in this repo.

@gxjansen
gxjansen enabled auto-merge (squash) June 1, 2026 11:08
@coderabbitai

coderabbitai Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Added pre-implementation verification checklist to contributor guidelines.
    • Expanded Git workflow documentation with guidance on branch management and worktree usage.

Walkthrough

AGENTS.md adds agent workflow guidance: a new "Before Starting Any Issue" checklist instructing verification of existing work via PR/branch/codebase/closed PR searches, and an expanded "Git Workflow" section emphasizing git worktrees for feature branches with explicit cleanup commands.

Changes

Agent Workflow Guidance

Layer / File(s) Summary
Pre-issue verification and git worktree workflow
AGENTS.md
New "Before Starting Any Issue" checklist instructs agents to search for existing PRs, branches, and closed PRs before implementing. "Git Workflow" section is expanded to emphasize git worktrees for feature work and includes cleanup command sequences.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: syncing AGENTS.md from an external source (barazo-workspace).
Description check ✅ Passed The description is directly related to the changeset, explaining that AGENTS.md is auto-generated from barazo-workspace and should not be edited directly.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/sync-agents-md-20260601-1108

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 54-55: Update AGENTS.md items 3 and 4 to replace vague guidance
with concrete, copy-pasteable commands and examples: for item 3 add explicit
search commands and patterns to locate partial implementations (e.g.,
repository-wide text search instructions, common filenames and keywords to look
for, and how to include/exclude test or vendor dirs) and for item 4 add exact
steps to query closed PRs (describe using GitHub/Git CLI or web UI filters,
which labels/titles to look for and how to search by timeframe or author).
Mention these examples inline under each item and include a brief note about
adapting filters to the repo’s conventions.
- Line 73: Add a short safety note immediately after the "git worktree remove
/tmp/barazo-website-<branch-name>" line explaining prerequisites: ensure you are
not currently inside the worktree directory, commit or stash any uncommitted
changes (or discard them intentionally), and that the branch/worktree is not
checked out elsewhere; mention using "git worktree remove --force" only when you
understand it will drop local changes and suggest "git worktree prune" or
cleaning up locks if removal still fails.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e656646a-634f-4b72-b047-1e320da1b924

📥 Commits

Reviewing files that changed from the base of the PR and between d55da89 and 939fac4.

📒 Files selected for processing (1)
  • AGENTS.md
📜 Review details
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: CR
Repo: singi-labs/barazo-website

Timestamp: 2026-06-01T11:08:48.156Z
Learning: Use conventional commits with format `type(scope): description`
Learnt from: CR
Repo: singi-labs/barazo-website

Timestamp: 2026-06-01T11:08:48.156Z
Learning: Ensure CI pipeline passes lint, typecheck, tests, and security scans on every PR
Learnt from: CR
Repo: singi-labs/barazo-website

Timestamp: 2026-06-01T11:08:48.156Z
Learning: Check for existing work (open PRs, branches, implementations) before starting implementation
Learnt from: CR
Repo: singi-labs/barazo-website

Timestamp: 2026-06-01T11:08:48.156Z
Learning: All changes must go through Pull Requests; never commit directly to `main`
Learnt from: CR
Repo: singi-labs/barazo-website

Timestamp: 2026-06-01T11:08:48.156Z
Learning: Use git worktrees for feature work with naming convention `type/short-description` (e.g., `feat/add-reactions`, `fix/xss-sanitization`)
Learnt from: CR
Repo: singi-labs/barazo-website

Timestamp: 2026-06-01T11:08:48.156Z
Learning: Understand AT Protocol context: users own their data, AppView indexes from firehose, lexicons define schema, identity is portable via DIDs
🔇 Additional comments (1)
AGENTS.md (1)

48-58: LGTM!

Also applies to: 59-77

Comment thread AGENTS.md
Comment on lines +54 to +55
3. Scan the codebase for partial implementations of the feature
4. Check closed PRs for previously attempted work

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

Consider adding specific commands for completeness.

Items 3 and 4 provide general guidance but lack concrete commands that agents can execute. Consider adding specific examples:

📋 Suggested additions
-3. Scan the codebase for partial implementations of the feature
-4. Check closed PRs for previously attempted work
+3. Scan the codebase for partial implementations: `rg -i "relevant-keyword" --type ts`
+4. Check closed PRs for previously attempted work: `gh pr list --repo singi-labs/barazo-website --state closed --search "keyword"`
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 54 - 55, Update AGENTS.md items 3 and 4 to replace
vague guidance with concrete, copy-pasteable commands and examples: for item 3
add explicit search commands and patterns to locate partial implementations
(e.g., repository-wide text search instructions, common filenames and keywords
to look for, and how to include/exclude test or vendor dirs) and for item 4 add
exact steps to query closed PRs (describe using GitHub/Git CLI or web UI
filters, which labels/titles to look for and how to search by timeframe or
author). Mention these examples inline under each item and include a brief note
about adapting filters to the repo’s conventions.

Comment thread AGENTS.md
cd /tmp/barazo-website-<branch-name>

# When done, remove the worktree
git worktree remove /tmp/barazo-website-<branch-name>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add safety guidance for worktree removal.

The git worktree remove command can fail if there are uncommitted changes or if you're currently inside the worktree directory. Consider adding a note about prerequisites for safe cleanup.

📝 Suggested addition after line 72
 # Work in the worktree
 cd /tmp/barazo-website-<branch-name>
 
+# Before removal: ensure you're outside the worktree and changes are committed/merged
+cd /singi-labs/repos/barazo-website/
+
 # When done, remove the worktree
-git worktree remove /tmp/barazo-website-<branch-name>
+git worktree remove /tmp/barazo-website-<branch-name>  # Add --force if needed
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` at line 73, Add a short safety note immediately after the "git
worktree remove /tmp/barazo-website-<branch-name>" line explaining
prerequisites: ensure you are not currently inside the worktree directory,
commit or stash any uncommitted changes (or discard them intentionally), and
that the branch/worktree is not checked out elsewhere; mention using "git
worktree remove --force" only when you understand it will drop local changes and
suggest "git worktree prune" or cleaning up locks if removal still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant