Repository navigation
docs: sync AGENTS.md from barazo-workspace #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gxjansen
wants to merge
1
commit into
main
Choose a base branch
from
chore/sync-agents-md-20260601-1108
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,10 +45,36 @@ Open-source forum software built on the [AT Protocol](https://atproto.com/). Por | |
| 7. **No raw SQL** -- Drizzle ORM with parameterized queries only. | ||
| 8. **Structured logging** -- Pino logger, never `console.log`. | ||
|
|
||
| ### Before Starting Any Issue | ||
|
|
||
| **Always check for existing work before implementing anything:** | ||
|
|
||
| 1. Search for open PRs that may already address the issue: `gh pr list --repo singi-labs/barazo-website --state open` | ||
| 2. Search for related branches: `gh api repos/singi-labs/barazo-website/branches --paginate` | ||
| 3. Scan the codebase for partial implementations of the feature | ||
| 4. Check closed PRs for previously attempted work | ||
|
|
||
| The GitHub board may lag behind actual implementation state. Partial or complete implementations may exist without being reflected in issue status. Never duplicate work -- always verify first. | ||
|
|
||
| ### Git Workflow | ||
|
|
||
| All changes go through Pull Requests -- never commit directly to `main`. Branch naming: `type/short-description` (e.g., `feat/add-reactions`, `fix/xss-sanitization`). | ||
|
|
||
| **Use git worktrees for all feature work.** Each branch must get its own working directory. This prevents multiple agents from stepping on each other's files and allows parallel work without stashing. | ||
|
|
||
| ```bash | ||
| # Create a worktree for your branch | ||
| git worktree add /tmp/barazo-website-<branch-name> -b <branch-name> origin/main | ||
|
|
||
| # Work in the worktree | ||
| cd /tmp/barazo-website-<branch-name> | ||
|
|
||
| # When done, remove the worktree | ||
| git worktree remove /tmp/barazo-website-<branch-name> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add safety guidance for worktree removal. The 📝 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 |
||
| ``` | ||
|
|
||
| Never work directly in the main checkout (`/singi-labs/repos/barazo-website/`). Always create a worktree per issue. Clean up the worktree after the PR is merged. | ||
|
|
||
| ### AT Protocol Context | ||
|
|
||
| - Users own their data (stored on their Personal Data Server) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
🤖 Prompt for AI Agents