adrai Review Notes
Personal annotation layer for adrai artifact review with debate promotion
GitHub |
MIT License |
by sprantic
The Problem
Reviewers have fleeting thoughts during review that don't warrant formal debates:
- Knowledge questions ("what does X mean?")
- Uncertainties ("not sure about this yet, need to read more")
- Bookmarks ("come back to this")
- Pre-debate concerns ("might be a problem, but not sure")
Current state: People keep text files open in notepad. No structured capture.
The Solution
This VS Code extension provides:
- Sidebar panel showing all notes grouped by status/type
- Quick note creation at current cursor position
- Multi-location linking (one note → multiple files)
- Personal storage in
~/.adrai/review-notes.yaml (gitignored)
- Promotion workflow to create DEB-NNNN from notes
Usage
Keyboard Shortcuts
| Shortcut |
Command |
Description |
Ctrl+Shift+N |
Add Note |
Add a review note at current cursor |
Ctrl+Shift+L |
Add Location |
Link current location to existing note |
Ctrl+Shift+R |
Toggle Panel |
Show/focus the review notes panel |
Note Types
| Type |
Icon |
Use When |
| Idea |
💡 |
Capture a new idea or insight |
| Question |
🔍 |
Need answer/clarification |
| Uncertainty |
❓ |
Not sure yet, need more context |
| Concern |
⚠️ |
Potential issue to investigate |
| Bookmark |
📌 |
Come back to this later |
| Pre-debate |
🔥 |
Might warrant formal DEB-NNNN |
Note Lifecycle
open → investigating → promote → resolved
↘ ↗
resolved
| Status |
Description |
| Open |
Newly created, needs attention |
| Investigating |
Being researched/explored |
| Promote |
Marked for debate promotion |
| Resolved |
Closed, no longer active |
Multi-Location Notes
A single note can reference multiple file locations:
- Create note with
Ctrl+Shift+N
- Navigate to another relevant location
- Press
Ctrl+Shift+L and select the note
- The note now shows both locations
This is useful for:
- Tracking related code across files
- Linking interface definitions to implementations
- Connecting documentation to code
When a note warrants formal discussion:
- Right-click the note → "Promote to Debate"
- Extension reads
.deb-tracker.md for next ID
- Creates DEB-NNNN file from template
- Pre-fills the central question from note content
- Links all note locations as context
- Marks the note as resolved with
promoted_to: DEB-NNNN
🏗️ This function is currently incomplete and just a teaser for the collaborative support of adrai 🏗️
Apply the 3-Gate criteria to decide if a note should become a formal debate:
| Gate |
Question |
If YES |
| 1 |
Disagreement - Can't resolve in MR comments? |
Promote |
| 2 |
Irreversible - Decision hard to undo later? |
Promote |
| 3 |
Uncertainty - Anyone flags "not sure"? |
Promote |
If NO to all gates: Standard MR review continues.
If ANY gate triggers: Use "Promote to Debate" to create DEB-NNNN.
See docs/RITUALS.md for the full development workflow.
Configuration
In VS Code settings (settings.json):
{
"adrai.storageLocation": "~/.adrai/review-notes.yaml",
"adrai.debateTemplateDir": "docs/debates/templates",
"adrai.debatesDir": "docs/debates",
"adrai.groupBy": "status"
}
| Setting |
Default |
Description |
storageLocation |
~/.adrai/review-notes.yaml |
Path to notes YAML file |
debateTemplateDir |
docs/debates/templates |
Debate templates directory |
debatesDir |
docs/debates |
Debates directory |
groupBy |
status |
Group notes by: status, type, or file |
Notes are stored in YAML for human-readability:
version: "1.0"
notes:
- id: "uuid-1"
content: "What does risk level actually mean here?"
type: question
status: open
created: "2026-01-29T14:30:00Z"
updated: "2026-01-29T14:30:00Z"
locations:
- file: "docs/debates/README.md"
line: 48
preview: "| Risk | Approvers Required |"
- file: "docs/debates/templates/plan-template.md"
line: 187
section: "Risk Level Guidelines"
tags: [terminology]
promoted_to: null
Commands
All commands are available via Command Palette (Ctrl+Shift+P):
| Command |
Description |
adrai: Add Review Note |
Create note at cursor |
adrai: Add Location to Note |
Link location to existing note |
adrai: Toggle Review Notes Panel |
Show/focus the sidebar |
adrai: Promote to Debate |
Create DEB-NNNN from note |
adrai: Resolve Note |
Mark note as resolved |
adrai: Edit Note |
Edit note content, type, or status |
adrai: Delete Note |
Remove a note |
adrai: Refresh Notes |
Reload notes from storage |
Right-click on a note in the panel for:
- Add Location (link current cursor to this note)
- Promote to Debate
- Resolve Note
- Edit Note
- Delete Note
Right-click in the editor for:
Status Bar
The status bar shows the count of open notes. Click to focus the panel.
Integration with adrai
This extension is part of the adrai (AIDE Notes Review Lifecycle Management System):
- Notes capture fleeting thoughts during artifact review
- Multi-location linking connects related code/docs
- Promotion workflow creates formal debates when warranted
- Personal storage keeps notes out of version control
See the adrai project documentation for the full system design.
License
MIT (c) 2026
sprantic GmbH