Skip to content

Commit c466e4d

Browse files
committed
feat(export): rename Send to Agent to Export for Agent
Write reviews to ~/.revu/{repo-name}-{epoch}.md instead of .revu in the repo root, and copy the absolute path to clipboard. Remove SKILL.md and update README with simplified agent workflow.
1 parent 1361e7a commit c466e4d

19 files changed

Lines changed: 461 additions & 103 deletions

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ node_modules/
44
# Build output
55
dist/
66

7-
# Review output
8-
.revu
9-
107
# Rust/Tauri
118
src-tauri/target/
129
src-tauri/gen/schemas/

AGENTS.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ make dev
1616

1717
## Common Commands
1818

19-
| Task | Command |
20-
|------|---------|
21-
| Install deps | `make install` |
22-
| Dev server | `make dev` |
23-
| Build | `make build` |
19+
| Task | Command |
20+
| -------------- | --------------------------------- |
21+
| Install deps | `make install` |
22+
| Dev server | `make dev` |
23+
| Build | `make build` |
2424
| Build (target) | `make build/aarch64-apple-darwin` |
25-
| Format | `make fmt` |
26-
| Lint | `make lint` |
27-
| CI checks | `make can-release` |
25+
| Format | `make fmt` |
26+
| Lint | `make lint` |
27+
| CI checks | `make can-release` |
2828

2929
## Code Conventions
3030

3131
**Directory structure:**
32+
3233
- `src/` - React frontend (TypeScript)
3334
- `src/components/ui/` - Reusable UI primitives
3435
- `src/features/` - Feature modules (comments, diff, files, theme)
@@ -49,17 +50,20 @@ make dev
4950
No unit test framework. CI validates linting only.
5051

5152
**CI workflow:** Runs on push/PR to `main`
53+
5254
- Frontend: `bun run lint` (ESLint)
5355
- Backend: `cargo fmt --check && cargo clippy -- -D warnings`
5456

5557
**Run all checks locally:**
58+
5659
```bash
5760
make can-release
5861
```
5962

6063
## PR & Workflow Rules
6164

6265
**Commit format:** Conventional commits
66+
6367
- `feat:` new features
6468
- `fix:` bug fixes
6569
- `docs:` documentation
@@ -73,9 +77,9 @@ make can-release
7377
## Security & Gotchas
7478

7579
**Never commit:**
80+
7681
- `.env`, `.env.local`
7782
- `node_modules/`, `dist/`, `src-tauri/target/`
78-
- `.revu/` (review output)
7983

8084
**No env vars required** - all config is in code or Tauri config
8185

README.md

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ Inspired by [Conductor](https://www.conductor.build/)'s working directory review
2121
## Features
2222

2323
- **Unified and split diff views** - syntax highlighting with word-level change detection
24-
- **Inline comments** - click any line to add categorised feedback
24+
- **Inline comments** - add categorised feedback to lines or selections
2525
- **Stage/unstage files** - manage staging and create commits directly
26-
- **Send to Agent** - exports structured review to `.revu` for agent consumption
27-
- **CLI integration** - open with a repo path: `open -a revu --args /path/to/repo`
28-
- **Light/dark theme** - with system preference detection
29-
- **Keyboard shortcuts** - Cmd+R refresh, Cmd+Shift+C copy review, Cmd+Enter commit
26+
- **Export for Agent** - exports review and copies the file path to clipboard for agent use
27+
- **CLI integration** - open with `revu /path/to/repo`
3028

3129
## Comment Categories
3230

@@ -77,31 +75,16 @@ revu /path/to/repo
7775

7876
### With Coding Agents
7977

80-
revu includes an installable skill for agent integration.
78+
1. Run `! revu .` in your agent to open revu with the current repo
79+
2. Review changes and add comments by clicking on lines
80+
3. Click "Export for Agent" when done — the file path is copied to your clipboard
81+
4. Reference the exported review in your agent with `@{paste path}`
8182

82-
**Install the skill:**
83-
84-
```bash
85-
# For Claude Code
86-
mkdir -p ~/.claude/skills/revu
87-
cp SKILL.md ~/.claude/skills/revu/
88-
89-
# For other agents, copy SKILL.md to your agent's skills directory
90-
```
91-
92-
**Workflow:**
93-
94-
1. Run `/revu` in your agent
95-
2. revu opens with your repo
96-
3. Review changes and add comments by clicking on lines
97-
4. Click "Send to Agent" when done
98-
5. Run `/revu` again to retrieve the review
99-
100-
The review is saved to `.revu` in your project root.
83+
The review is saved to `~/.revu/{repo-name}-{timestamp}.md`.
10184

10285
## Review Format
10386

104-
When you click "Send to Agent", revu writes a structured XML file that agents can parse:
87+
When you click "Export for Agent", revu writes a structured XML file that agents can parse:
10588

10689
```xml
10790
<revu-review>

SKILL.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

bun.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/screenshot-dark-split.png

-2.43 KB
Loading

docs/screenshot-dark.png

-2.27 KB
Loading

docs/screenshot-light-split.png

334 Bytes
Loading

docs/screenshot-light.png

-2.67 KB
Loading

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"dependencies": {
1515
"@tanstack/react-virtual": "^3",
1616
"@tauri-apps/api": "^2.10.1",
17+
"@tauri-apps/plugin-clipboard-manager": "^2.3.2",
1718
"@tauri-apps/plugin-dialog": "^2.6.0",
1819
"clsx": "^2",
1920
"prism-react-renderer": "^2",

0 commit comments

Comments
 (0)