Skip to content

Commit 2af925b

Browse files
authored
Document conductor command wrapper (#739)
1 parent 09c3d71 commit 2af925b

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,55 @@ React on Rails demo app — a Rails application with React, Redux, Tailwind CSS,
66

77
- `prompts/`: shared prompt templates for Codex, GPT, and other non-Claude tools
88

9+
## Build and Test Commands
10+
11+
```bash
12+
# Run development server
13+
bin/dev
14+
15+
# Run tests
16+
bundle exec rspec
17+
18+
# Run linting
19+
bundle exec rubocop
20+
21+
# Auto-fix linting issues
22+
bundle exec rubocop -a
23+
```
24+
925
## Working Rules
1026

1127
- When the user asks to address PR review comments, follow `prompts/address-review.md`.
28+
- Run Ruby, Bundler, Node, pnpm, and git hook-sensitive commands through `bin/conductor-exec` so non-interactive shells use the project tool versions.
29+
30+
## Conductor Compatibility
31+
32+
Conductor runs commands in a non-interactive shell that does not source `.zshrc`.
33+
That means version manager shell hooks, such as mise PATH reordering from `.tool-versions`,
34+
may not run. Commands can accidentally use system Ruby or Node instead of the project versions.
35+
36+
Symptoms include:
37+
38+
- `ruby --version` returns system Ruby instead of the project Ruby.
39+
- Pre-commit hooks fail with the wrong tool versions.
40+
- `bundle` commands fail due to incompatible Ruby versions.
41+
- Node or pnpm commands use the wrong Node version.
42+
43+
Use the wrapper for commands that depend on project tool versions:
44+
45+
```bash
46+
# Instead of:
47+
ruby --version
48+
bundle exec rubocop
49+
pnpm install
50+
git commit -m "message"
51+
52+
# Use:
53+
bin/conductor-exec ruby --version
54+
bin/conductor-exec bundle exec rubocop
55+
bin/conductor-exec pnpm install
56+
bin/conductor-exec git commit -m "message"
57+
```
58+
59+
The wrapper uses `mise exec` when mise is available and falls back to direct execution
60+
for non-mise users.

0 commit comments

Comments
 (0)