my-ruby-coding-agents 0.1.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +73 -0
- data/README.md +157 -3
- data/doc/CHANGELOG.md +73 -0
- data/doc/MyRubyCodingAgents/CLI.md +3 -3
- data/doc/MyRubyCodingAgents/CLIHelp.md +11 -0
- data/doc/MyRubyCodingAgents/CLIOptions.md +26 -0
- data/doc/MyRubyCodingAgents/Installer.md +2 -1
- data/doc/MyRubyCodingAgents/Locations/Location.md +17 -0
- data/doc/MyRubyCodingAgents/Locations.md +20 -0
- data/doc/MyRubyCodingAgents/NotesCheck.md +36 -0
- data/doc/MyRubyCodingAgents/Planner.md +3 -2
- data/doc/MyRubyCodingAgents/PluginInstaller.md +35 -0
- data/doc/MyRubyCodingAgents.md +7 -1
- data/doc/README.md +157 -3
- data/lib/my_ruby_coding_agents/cli.rb +34 -47
- data/lib/my_ruby_coding_agents/cli_help.rb +44 -0
- data/lib/my_ruby_coding_agents/cli_options.rb +58 -0
- data/lib/my_ruby_coding_agents/installer.rb +11 -4
- data/lib/my_ruby_coding_agents/locations.rb +31 -0
- data/lib/my_ruby_coding_agents/notes_check.rb +97 -0
- data/lib/my_ruby_coding_agents/planner.rb +11 -11
- data/lib/my_ruby_coding_agents/plugin_installer.rb +90 -0
- data/lib/my_ruby_coding_agents/version.rb +1 -1
- data/lib/my_ruby_coding_agents.rb +5 -0
- data/llms.txt +7 -1
- data/templates/agents/advisor.md +33 -0
- data/templates/agents/chief_of_staff.md +21 -0
- data/templates/agents/code_archaeologist.md +4 -2
- data/templates/agents/coherence_reviewer.md +11 -0
- data/templates/agents/contract_mapper.md +2 -0
- data/templates/agents/evidence_reviewer.md +2 -0
- data/templates/agents/quality_investigator.md +2 -0
- data/templates/agents/rails_explorer.md +2 -0
- data/templates/agents/rails_implementer.md +3 -1
- data/templates/agents/security_mapper.md +4 -0
- data/templates/agents/security_reviewer.md +2 -0
- data/templates/agents/test_designer.md +2 -0
- data/templates/instructions.md +18 -1
- data/templates/models.yml +9 -0
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4500ce3da57fb76d0b7ebb5238e43e0f5171ca27b78abb022fa185740404970
|
|
4
|
+
data.tar.gz: 1671aa101dd7f3e09062a34b58522701f29d209eb32dac1ac467f2bc4649be14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4fde5bde8e6a28376153ba893fc6a44f110723311d9666b9532a36857d9b4832420a08b2d70acbf2e08ab22012d1d801263d8f90bd6f1617acc532db0b65c57
|
|
7
|
+
data.tar.gz: e7cc11255ff739564d70d1e09135ce665379b034ebd738f289d9d5574ebb37130bdf63822579f74070f26a45af1befc3219e7a16fcbc04c607616a79617f5947
|
data/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,84 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.4.0] - 2026-12-02
|
|
4
|
+
|
|
5
|
+
- Add the `change-workflow` plugin with three skills for one code change:
|
|
6
|
+
`codebase-research` (a cited document on how the code works today),
|
|
7
|
+
`open-decision` (an issue with options and no decision yet, kept in one
|
|
8
|
+
file until it is decided) and `change-spec` (the spec for a decided
|
|
9
|
+
change). They write to `NOTES_FOLDER`, never into the repository.
|
|
10
|
+
- `install --skills` installs it; `--plugin-source` replaces
|
|
11
|
+
`--advisor-source`, which stays as an alias.
|
|
12
|
+
- `rake skills` runs the skills' own test suites, and the default task runs it.
|
|
13
|
+
- `install --user` and `status --user` use the tool home folders (`~/.codex`,
|
|
14
|
+
`~/.claude`, or `CODEX_HOME` and `CLAUDE_CONFIG_DIR`) instead of a project,
|
|
15
|
+
for repositories that must not get agent files. Plugins then install with
|
|
16
|
+
Claude Code's user scope.
|
|
17
|
+
- Add the `notes` command: checks that `NOTES_FOLDER` is set, exists, sits
|
|
18
|
+
outside any git repository, is writable in Codex's sandbox and listed in
|
|
19
|
+
Claude Code's `additionalDirectories`, and that no `skillOverrides` setting
|
|
20
|
+
hides a skill. `notes --init` creates the standard subfolders.
|
|
21
|
+
- Add `chief_of_staff`, which keeps the week plan, work log, update drafts and
|
|
22
|
+
showcase in `NOTES_FOLDER/weeks/` and reads everything personal (owner,
|
|
23
|
+
mission, rhythm) from `NOTES_FOLDER/context/`. It drafts and never sends.
|
|
24
|
+
- Add `coherence_reviewer` and `docs/design-checklist.md` (design rules after
|
|
25
|
+
Ousterhout's *A Philosophy of Software Design*, in this project's words).
|
|
26
|
+
`rails_implementer` plans and finishes with the checklist when a project has
|
|
27
|
+
it, and hands off to `open-decision` instead of guessing.
|
|
28
|
+
- The read-only agents label every claim by its source and say when the
|
|
29
|
+
briefing was wrong. The delegation guide gains a five-step order for a
|
|
30
|
+
non-trivial change: explore, compare options, record an open decision if
|
|
31
|
+
needed, spec, independent review.
|
|
32
|
+
- Add the `pr-watch` plugin and `install --pr-watch`: a script that reports
|
|
33
|
+
new comments, reviews, replies, CI failures and recoveries, merge conflicts,
|
|
34
|
+
review decisions, pushes by others, and merged or closed PRs across all your
|
|
35
|
+
open pull requests since the last run, with `--notify` for a desktop
|
|
36
|
+
notification, and a skill that explains each event. Read-only on GitHub.
|
|
37
|
+
- `chief_of_staff` keeps a weekly main focus (the most valuable item, with one
|
|
38
|
+
small step per day) and the delegation guide keeps it in view in every
|
|
39
|
+
session. With `NOTES_FOLDER` set, agents read its `context/` rules first,
|
|
40
|
+
look for the design and Rails checklists there before the repository's
|
|
41
|
+
`docs/`, and `code_archaeologist` writes to `$NOTES_FOLDER/codebase/`.
|
|
42
|
+
- `change-workflow` 0.2.0 adds `handoff`, `handoff-resume` and
|
|
43
|
+
`handoff-list`: save an unfinished session to `$NOTES_FOLDER/handoffs/`
|
|
44
|
+
(or a folder the request names) and continue from it in a later session.
|
|
45
|
+
`notes --init` creates `handoffs/`. In Claude Code, `PreCompact` and
|
|
46
|
+
`SessionStart` hooks save a handoff before compaction and load it back.
|
|
47
|
+
- The README explains that Codex passes the parent's context to a spawned
|
|
48
|
+
agent, so "start every sub-agent with a fresh context window" is a request
|
|
49
|
+
there; Claude Code starts sub-agents fresh.
|
|
50
|
+
|
|
51
|
+
## [0.3.0] - 2026-10-31
|
|
52
|
+
|
|
53
|
+
- Resolve advisor Git exclusions in linked worktrees and preserve existing
|
|
54
|
+
exclusion entries without a trailing newline.
|
|
55
|
+
- Track shell tools as potential advisor edits, match advisor identities
|
|
56
|
+
exactly (including plugin namespaces), and recover from malformed state.
|
|
57
|
+
- Make supplied history evidence explicit in advisor briefings while keeping
|
|
58
|
+
the advisor's restricted tools.
|
|
59
|
+
- Add focused Rails risk checks to existing implementation, test, quality,
|
|
60
|
+
and security roles, with version and adapter checks.
|
|
61
|
+
- Bump the advisor plugin to 0.1.1 so Codex refreshes its cached copy.
|
|
62
|
+
- Add three static Rails review tasks and retain measured plain-prompt versus
|
|
63
|
+
role-template results, scoring criteria, and raw responses.
|
|
64
|
+
|
|
65
|
+
## [0.2.0] - 2026-10-31
|
|
66
|
+
|
|
3
67
|
- Add `code_archaeologist`, which researches part of a codebase and keeps
|
|
4
68
|
notes in `docs/archaeology/`, and `pr_readiness_checker`, which checks whether open
|
|
5
69
|
pull requests on a public repository are ready to merge, using `gh`, and
|
|
6
70
|
reports without posting.
|
|
7
71
|
- Add the `review` model tier (Codex gpt-6.1-sol medium, Claude opus medium)
|
|
8
72
|
for `pr_readiness_checker`.
|
|
73
|
+
- Add `advisor`, a read-only consultant for decisions before implementation,
|
|
74
|
+
and the `advise` model tier (Codex gpt-6-astra medium, Claude fable medium)
|
|
75
|
+
it uses. The delegation guide says when to consult it and when not to.
|
|
76
|
+
- Add `plugins/advisor`, a plugin for Claude Code and Codex with an `/advisor`
|
|
77
|
+
skill, hooks, and a briefing template, so the lead consults the advisor at
|
|
78
|
+
checkpoints and gets a nudge when it declares work done without one.
|
|
79
|
+
- Add `install --advisor`, which runs each tool's plugin commands to install the
|
|
80
|
+
advisor plugin from this repository, and `--advisor-source` to point at a
|
|
81
|
+
local checkout instead.
|
|
9
82
|
|
|
10
83
|
## [0.1.0] - 2026-10-30
|
|
11
84
|
|
data/README.md
CHANGED
|
@@ -43,6 +43,18 @@ delegation section in `AGENTS.md` and `CLAUDE.md`. The directory defaults to
|
|
|
43
43
|
`.`. `--codex` and `--claude` limit which tool's files are installed; with
|
|
44
44
|
neither flag, both targets are installed.
|
|
45
45
|
|
|
46
|
+
For a repository that must not get these files, such as an employer's,
|
|
47
|
+
install into your home folders instead. Agents go to `~/.codex/agents/` and
|
|
48
|
+
`~/.claude/agents/`, the delegation section to `~/.codex/AGENTS.md` and
|
|
49
|
+
`~/.claude/CLAUDE.md`, and plugins install with Claude Code's user scope.
|
|
50
|
+
`CODEX_HOME` and `CLAUDE_CONFIG_DIR` move those folders, as they do for the
|
|
51
|
+
tools. The agents then load in every project on that machine.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
my-ruby-coding-agents install --user
|
|
55
|
+
my-ruby-coding-agents status --user
|
|
56
|
+
```
|
|
57
|
+
|
|
46
58
|
### Refreshing after a gem upgrade
|
|
47
59
|
|
|
48
60
|
Each generated agent file has a marker line with a hash of its content: a
|
|
@@ -115,6 +127,15 @@ Claude Code reads a line `@AGENTS.md` in `CLAUDE.md` as an import of
|
|
|
115
127
|
|
|
116
128
|
A linked `CLAUDE.md` that points to `AGENTS.md` is also written only once.
|
|
117
129
|
|
|
130
|
+
### Sub-agents and context
|
|
131
|
+
|
|
132
|
+
Every agent file and the delegation guide say "Start every sub-agent with a
|
|
133
|
+
fresh context window". Claude Code does this by default: a sub-agent sees
|
|
134
|
+
only the prompt it is given, and only a `fork` inherits the parent's
|
|
135
|
+
conversation. Codex does not: in a test on 2026-12-01 a spawned agent
|
|
136
|
+
inherited the parent's context. So in Codex the line is a request, not a
|
|
137
|
+
guarantee; write each sub-agent's task so it stands on its own.
|
|
138
|
+
|
|
118
139
|
List the included agents with their tier, models, and efforts:
|
|
119
140
|
|
|
120
141
|
```sh
|
|
@@ -128,10 +149,30 @@ effort, and description:
|
|
|
128
149
|
rails_explorer | fast | Codex: gpt-6-luna (low) | Claude: sonnet (low) | Trace a Ruby workflow ...
|
|
129
150
|
```
|
|
130
151
|
|
|
131
|
-
The
|
|
152
|
+
The fifteen agents are `rails_explorer`, `contract_mapper`, `test_designer`,
|
|
132
153
|
`rails_implementer`, `api_cli_implementer`, `evidence_reviewer`,
|
|
133
154
|
`quality_investigator`, `ui_implementer`, `security_mapper`,
|
|
134
|
-
`security_reviewer`, `code_archaeologist`,
|
|
155
|
+
`security_reviewer`, `code_archaeologist`, `pr_readiness_checker`,
|
|
156
|
+
`chief_of_staff`, `coherence_reviewer`, and `advisor`.
|
|
157
|
+
|
|
158
|
+
`coherence_reviewer` reads a diff or plan for coherence with the rest of the
|
|
159
|
+
codebase: a second way of doing something that already exists, naming drift,
|
|
160
|
+
rules that live only in prose, and traps for the next change. For each finding
|
|
161
|
+
it names the cheapest guardrail that would have caught it (a name, a doc line,
|
|
162
|
+
a test, a lint rule, a CI check). It and `rails_implementer` use the
|
|
163
|
+
[design checklist](docs/design-checklist.md) when a project has a copy in
|
|
164
|
+
`docs/`.
|
|
165
|
+
|
|
166
|
+
The read-only agents label every claim by its source (a `path:line` they
|
|
167
|
+
opened, `CLAIMED by`, `UNVERIFIED`, or `ASSUMPTION`) and say when the briefing
|
|
168
|
+
was wrong about the code.
|
|
169
|
+
|
|
170
|
+
`chief_of_staff` keeps the week plan, the work log, update drafts for your
|
|
171
|
+
team and an end-of-week showcase in `NOTES_FOLDER/weeks/`, and answers "what
|
|
172
|
+
should I do now" from the plan and the open decisions. It reads who you are,
|
|
173
|
+
the team's mission and the weekly rhythm from `NOTES_FOLDER/context/`, so the
|
|
174
|
+
gem holds nothing personal. It drafts and never sends. As a subagent it cannot
|
|
175
|
+
see the conversation, so the lead briefs it with what was done and why.
|
|
135
176
|
|
|
136
177
|
`code_archaeologist` researches how and why part of the code works and writes
|
|
137
178
|
what it finds into `docs/archaeology/`, one note per topic plus an index. On
|
|
@@ -145,6 +186,15 @@ repository and reports which are ready to merge, which need changes from the
|
|
|
145
186
|
contributor, and which need a decision from you. It never merges, labels, or
|
|
146
187
|
posts comments. Run it from a checkout where `gh auth status` succeeds.
|
|
147
188
|
|
|
189
|
+
`advisor` is a read-only consultant for decisions before implementation:
|
|
190
|
+
architecture tradeoffs, ambiguous requirements, a bug that stays unexplained
|
|
191
|
+
after investigation, or changes that touch correctness, concurrency, or
|
|
192
|
+
security. It uses the strongest models (Codex gpt-6-astra, Claude fable) at
|
|
193
|
+
medium effort, so the delegation guide tells the lead not to call it for
|
|
194
|
+
routine implementation, simple refactoring, or straightforward fixes. An
|
|
195
|
+
advisor helps decide before the work; a reviewer judges finished work. Keep
|
|
196
|
+
the roles separate to avoid needless calls to the expensive model.
|
|
197
|
+
|
|
148
198
|
Use the generated delegation guide to choose a focused agent for independent
|
|
149
199
|
work. Handle small, coupled tasks yourself; parallelize independent bounded
|
|
150
200
|
tasks when the benefit outweighs coordination and token costs. Implementers
|
|
@@ -153,7 +203,7 @@ work. The names `rails_explorer` and `rails_implementer` also cover standalone
|
|
|
153
203
|
Ruby projects; the fleet keeps the same names across projects.
|
|
154
204
|
|
|
155
205
|
Models come from a tier table in `templates/models.yml`. Each tier (`fast`,
|
|
156
|
-
`investigate`, `implement`, `strong`, `review`) sets a model and reasoning effort for
|
|
206
|
+
`investigate`, `implement`, `strong`, `review`, `advise`) sets a model and reasoning effort for
|
|
157
207
|
Codex and for Claude, and each agent template names one tier with `tier:`.
|
|
158
208
|
Edit `templates/models.yml` to change routing; it is the one place model names
|
|
159
209
|
live. The installer builds the model sentence in the delegation guide from the
|
|
@@ -163,6 +213,110 @@ Model assignments are starting points, not benchmark-proven rankings. The lead
|
|
|
163
213
|
narrows ambiguous or unsuccessful tasks or uses a stronger available model;
|
|
164
214
|
there is no automatic model router.
|
|
165
215
|
|
|
216
|
+
### Rails risk checks and evaluation
|
|
217
|
+
|
|
218
|
+
The existing implementation, test, quality, and security roles include focused
|
|
219
|
+
Rails checks for query growth, stable pagination, tenant-scoped lookups,
|
|
220
|
+
server-owned parameters, retryable jobs, external side effects, and migration
|
|
221
|
+
rollout safety. They apply only to the changed behavior and require evidence of
|
|
222
|
+
the project's Rails version, database, and queue adapter. The fuller checklist
|
|
223
|
+
and official guide links are in [Rails risk checks](docs/rails-risk-checklists.md).
|
|
224
|
+
|
|
225
|
+
The [Rails review pilot](evaluation/README.md) compares plain prompts with the
|
|
226
|
+
role templates on three deliberately faulty Rails excerpts. It retains the
|
|
227
|
+
tasks, scoring rubric, raw responses, and measured results. It measures static
|
|
228
|
+
defect detection, not implementation success or general productivity; the same
|
|
229
|
+
Luna model is used in both conditions to isolate the template content. The
|
|
230
|
+
[first results](evaluation/results/2026-10-31/README.md) found all six seeded
|
|
231
|
+
defects in both conditions, with no observed detection improvement.
|
|
232
|
+
|
|
233
|
+
## Plugins
|
|
234
|
+
|
|
235
|
+
`plugins/advisor` is a plugin for Claude Code and Codex that turns the `advisor`
|
|
236
|
+
agent into a workflow. With `/advisor` on, the lead agent writes a briefing and
|
|
237
|
+
consults the advisor at four checkpoints: before a major decision, when stuck,
|
|
238
|
+
before declaring a change done, and on request. Hooks mark pending edits, log
|
|
239
|
+
each consult to `.advisor/log.md`, and nudge once when a turn ends with edits
|
|
240
|
+
nobody consulted on.
|
|
241
|
+
|
|
242
|
+
Install it together with the agents:
|
|
243
|
+
|
|
244
|
+
```sh
|
|
245
|
+
my-ruby-coding-agents install ./my-app --advisor
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
After the usual file writes, `--advisor` runs each selected tool's own plugin
|
|
249
|
+
commands with this repository as the marketplace:
|
|
250
|
+
|
|
251
|
+
```sh
|
|
252
|
+
codex plugin marketplace add lucianghinda/my-ruby-coding-agents
|
|
253
|
+
codex plugin add advisor@my-ruby-coding-agents
|
|
254
|
+
claude plugin marketplace add lucianghinda/my-ruby-coding-agents
|
|
255
|
+
claude plugin install advisor@my-ruby-coding-agents --scope project
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Both tools accept these commands again on later runs. Claude Code records
|
|
259
|
+
the plugin in the project's `.claude/settings.json`; Codex enables it in
|
|
260
|
+
`~/.codex/config.toml` and caches a copy. A tool missing from `PATH` is
|
|
261
|
+
skipped. A failed command stops that tool and makes `install` exit 1.
|
|
262
|
+
`--dry-run` prints the commands without running them. Use
|
|
263
|
+
`--advisor-source` to point at a checkout of this repository instead of
|
|
264
|
+
GitHub, for example while developing the plugin.
|
|
265
|
+
|
|
266
|
+
The plugin carries the skill and the hooks. The `advisor` agent itself comes
|
|
267
|
+
from the regular install, so `--advisor` needs the agents installed too. See
|
|
268
|
+
[plugins/advisor/README.md](plugins/advisor/README.md) for the details.
|
|
269
|
+
|
|
270
|
+
## Watching your pull requests
|
|
271
|
+
|
|
272
|
+
The `pr-watch` plugin reports what changed on your open pull requests, in every repository, since the last run: new comments, reviews and review-thread replies from other people, CI turning red or green, merge conflicts, review decisions, commits someone else pushed, and pull requests that were merged or closed. A Ruby script does the watching with `gh`; the `pr-watch` skill reads each event and says what it needs from you, such as the failing test in a CI log. It never writes to GitHub.
|
|
273
|
+
|
|
274
|
+
```sh
|
|
275
|
+
my-ruby-coding-agents install --user --pr-watch
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
In Claude Code, `/loop 10m /pr-watch` checks every ten minutes. To watch without a model, run the script from cron or launchd with `--notify` for a desktop notification; see the [pr-watch skill](plugins/pr-watch/skills/pr-watch/SKILL.md).
|
|
279
|
+
|
|
280
|
+
## Notes folder
|
|
281
|
+
|
|
282
|
+
The skills and `chief_of_staff` write documents and the work log to `NOTES_FOLDER`, a folder you pick outside every repository, so nothing they write turns up in a commit. One folder per project or job works well:
|
|
283
|
+
|
|
284
|
+
```text
|
|
285
|
+
$NOTES_FOLDER/
|
|
286
|
+
research/ codebase-research documents
|
|
287
|
+
open-decisions/ open-decision files, one per issue
|
|
288
|
+
handoffs/ handoff files for unfinished sessions, _archive/ once resumed
|
|
289
|
+
specs/ change-spec documents
|
|
290
|
+
codebase/ map, conventions and guardrails notes (code_archaeologist)
|
|
291
|
+
weeks/ plan, log, updates and showcase per week
|
|
292
|
+
context/ your role, the team's mission and rhythm, the rules every
|
|
293
|
+
agent follows, and checklists (design-checklist.md,
|
|
294
|
+
rails-risk-checklists.md) read before the repo's docs/
|
|
295
|
+
team/ decisions
|
|
296
|
+
templates/ optional starter files, e.g. templates/weeks/ for a new week
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Set it in your shell profile, then check it and create the subfolders:
|
|
300
|
+
|
|
301
|
+
```sh
|
|
302
|
+
export NOTES_FOLDER="$HOME/notes/my-app"
|
|
303
|
+
my-ruby-coding-agents notes --init
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
`notes` exits 1 and says what to fix when the folder is missing or inside a git repository, when Codex's sandbox would block writes to it (`writable_roots`), when Claude Code would ask before every write (`permissions.additionalDirectories`), or when a `skillOverrides` setting hides one of the skills. Whatever is specific to you (name, mission, weekly rhythm, house rules) lives in `context/`, not in this gem; the delegation guide tells every agent to read it first.
|
|
307
|
+
|
|
308
|
+
Each week `chief_of_staff` helps you pick one **main focus**: the item worth most to the company, its products and your colleagues, broken into one small step per day. It sits at the top of `weeks/<week>/plan.md`, and every agent keeps it in view: they tie their work to it, say when a request pulls away from it, and suggest the next small step when a task ends.
|
|
309
|
+
|
|
310
|
+
## Change workflow skills
|
|
311
|
+
|
|
312
|
+
Skills for one code change: `codebase-research` (how the code works today, with a `path:line` for every claim), `open-decision` (an issue you looked into but cannot decide yet: options, unknowns and the steps to decide, in one file updated until you decide) and `change-spec` (the spec for a decided change, the brief for `rails_implementer`), plus `handoff`, `handoff-resume` and `handoff-list` to save an unfinished session and continue it later, in Claude Code, Codex or by hand. Install them with:
|
|
313
|
+
|
|
314
|
+
```sh
|
|
315
|
+
my-ruby-coding-agents install ./my-app --skills
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
They write to the folder in `NOTES_FOLDER`, outside the repository. See the [change-workflow plugin README](plugins/change-workflow/README.md).
|
|
319
|
+
|
|
166
320
|
## Development
|
|
167
321
|
|
|
168
322
|
After checking out the repository, run `bin/setup`, then `bundle exec rake` to
|
data/doc/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,84 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.4.0] - 2026-12-02
|
|
4
|
+
|
|
5
|
+
- Add the `change-workflow` plugin with three skills for one code change:
|
|
6
|
+
`codebase-research` (a cited document on how the code works today),
|
|
7
|
+
`open-decision` (an issue with options and no decision yet, kept in one
|
|
8
|
+
file until it is decided) and `change-spec` (the spec for a decided
|
|
9
|
+
change). They write to `NOTES_FOLDER`, never into the repository.
|
|
10
|
+
- `install --skills` installs it; `--plugin-source` replaces
|
|
11
|
+
`--advisor-source`, which stays as an alias.
|
|
12
|
+
- `rake skills` runs the skills' own test suites, and the default task runs it.
|
|
13
|
+
- `install --user` and `status --user` use the tool home folders (`~/.codex`,
|
|
14
|
+
`~/.claude`, or `CODEX_HOME` and `CLAUDE_CONFIG_DIR`) instead of a project,
|
|
15
|
+
for repositories that must not get agent files. Plugins then install with
|
|
16
|
+
Claude Code's user scope.
|
|
17
|
+
- Add the `notes` command: checks that `NOTES_FOLDER` is set, exists, sits
|
|
18
|
+
outside any git repository, is writable in Codex's sandbox and listed in
|
|
19
|
+
Claude Code's `additionalDirectories`, and that no `skillOverrides` setting
|
|
20
|
+
hides a skill. `notes --init` creates the standard subfolders.
|
|
21
|
+
- Add `chief_of_staff`, which keeps the week plan, work log, update drafts and
|
|
22
|
+
showcase in `NOTES_FOLDER/weeks/` and reads everything personal (owner,
|
|
23
|
+
mission, rhythm) from `NOTES_FOLDER/context/`. It drafts and never sends.
|
|
24
|
+
- Add `coherence_reviewer` and `docs/design-checklist.md` (design rules after
|
|
25
|
+
Ousterhout's *A Philosophy of Software Design*, in this project's words).
|
|
26
|
+
`rails_implementer` plans and finishes with the checklist when a project has
|
|
27
|
+
it, and hands off to `open-decision` instead of guessing.
|
|
28
|
+
- The read-only agents label every claim by its source and say when the
|
|
29
|
+
briefing was wrong. The delegation guide gains a five-step order for a
|
|
30
|
+
non-trivial change: explore, compare options, record an open decision if
|
|
31
|
+
needed, spec, independent review.
|
|
32
|
+
- Add the `pr-watch` plugin and `install --pr-watch`: a script that reports
|
|
33
|
+
new comments, reviews, replies, CI failures and recoveries, merge conflicts,
|
|
34
|
+
review decisions, pushes by others, and merged or closed PRs across all your
|
|
35
|
+
open pull requests since the last run, with `--notify` for a desktop
|
|
36
|
+
notification, and a skill that explains each event. Read-only on GitHub.
|
|
37
|
+
- `chief_of_staff` keeps a weekly main focus (the most valuable item, with one
|
|
38
|
+
small step per day) and the delegation guide keeps it in view in every
|
|
39
|
+
session. With `NOTES_FOLDER` set, agents read its `context/` rules first,
|
|
40
|
+
look for the design and Rails checklists there before the repository's
|
|
41
|
+
`docs/`, and `code_archaeologist` writes to `$NOTES_FOLDER/codebase/`.
|
|
42
|
+
- `change-workflow` 0.2.0 adds `handoff`, `handoff-resume` and
|
|
43
|
+
`handoff-list`: save an unfinished session to `$NOTES_FOLDER/handoffs/`
|
|
44
|
+
(or a folder the request names) and continue from it in a later session.
|
|
45
|
+
`notes --init` creates `handoffs/`. In Claude Code, `PreCompact` and
|
|
46
|
+
`SessionStart` hooks save a handoff before compaction and load it back.
|
|
47
|
+
- The README explains that Codex passes the parent's context to a spawned
|
|
48
|
+
agent, so "start every sub-agent with a fresh context window" is a request
|
|
49
|
+
there; Claude Code starts sub-agents fresh.
|
|
50
|
+
|
|
51
|
+
## [0.3.0] - 2026-10-31
|
|
52
|
+
|
|
53
|
+
- Resolve advisor Git exclusions in linked worktrees and preserve existing
|
|
54
|
+
exclusion entries without a trailing newline.
|
|
55
|
+
- Track shell tools as potential advisor edits, match advisor identities
|
|
56
|
+
exactly (including plugin namespaces), and recover from malformed state.
|
|
57
|
+
- Make supplied history evidence explicit in advisor briefings while keeping
|
|
58
|
+
the advisor's restricted tools.
|
|
59
|
+
- Add focused Rails risk checks to existing implementation, test, quality,
|
|
60
|
+
and security roles, with version and adapter checks.
|
|
61
|
+
- Bump the advisor plugin to 0.1.1 so Codex refreshes its cached copy.
|
|
62
|
+
- Add three static Rails review tasks and retain measured plain-prompt versus
|
|
63
|
+
role-template results, scoring criteria, and raw responses.
|
|
64
|
+
|
|
65
|
+
## [0.2.0] - 2026-10-31
|
|
66
|
+
|
|
3
67
|
- Add `code_archaeologist`, which researches part of a codebase and keeps
|
|
4
68
|
notes in `docs/archaeology/`, and `pr_readiness_checker`, which checks whether open
|
|
5
69
|
pull requests on a public repository are ready to merge, using `gh`, and
|
|
6
70
|
reports without posting.
|
|
7
71
|
- Add the `review` model tier (Codex gpt-6.1-sol medium, Claude opus medium)
|
|
8
72
|
for `pr_readiness_checker`.
|
|
73
|
+
- Add `advisor`, a read-only consultant for decisions before implementation,
|
|
74
|
+
and the `advise` model tier (Codex gpt-6-astra medium, Claude fable medium)
|
|
75
|
+
it uses. The delegation guide says when to consult it and when not to.
|
|
76
|
+
- Add `plugins/advisor`, a plugin for Claude Code and Codex with an `/advisor`
|
|
77
|
+
skill, hooks, and a briefing template, so the lead consults the advisor at
|
|
78
|
+
checkpoints and gets a nudge when it declares work done without one.
|
|
79
|
+
- Add `install --advisor`, which runs each tool's plugin commands to install the
|
|
80
|
+
advisor plugin from this repository, and `--advisor-source` to point at a
|
|
81
|
+
local checkout instead.
|
|
9
82
|
|
|
10
83
|
## [0.1.0] - 2026-10-30
|
|
11
84
|
|
|
@@ -9,11 +9,11 @@ Handles the command line interface for installing, checking, and listing
|
|
|
9
9
|
agents.
|
|
10
10
|
|
|
11
11
|
## Public Class Methods
|
|
12
|
-
### `run(argv, out: $stdout, err: $stderr)` <a id="method-c-run"></a> <a id="run-class_method"></a>
|
|
13
|
-
|
|
12
|
+
### `run(argv, out: $stdout, err: $stderr, plugin_runner: PluginInstaller::DEFAULT_RUNNER)` <a id="method-c-run"></a> <a id="run-class_method"></a>
|
|
13
|
+
plugin_runner runs the plugin commands for install --advisor.
|
|
14
14
|
|
|
15
15
|
## Public Instance Methods
|
|
16
|
-
### `initialize(argv, out:, err:)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
|
|
16
|
+
### `initialize(argv, out:, err:, plugin_runner:)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
|
|
17
17
|
- **@return** [CLI] a new instance of CLI
|
|
18
18
|
|
|
19
19
|
### `run()` <a id="method-i-run"></a> <a id="run-instance_method"></a>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Module MyRubyCodingAgents::CLIHelp <a id="module-MyRubyCodingAgents-CLIHelp"></a>
|
|
2
|
+
|
|
3
|
+
| | |
|
|
4
|
+
| --- | --- |
|
|
5
|
+
| **Defined in** | lib/my_ruby_coding_agents/cli_help.rb |
|
|
6
|
+
|
|
7
|
+
Usage text for the command line interface.
|
|
8
|
+
|
|
9
|
+
## Constants
|
|
10
|
+
### `TEXT` <a id="constant-TEXT"></a> <a id="TEXT-constant"></a>
|
|
11
|
+
Not documented.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Module MyRubyCodingAgents::CLIOptions <a id="module-MyRubyCodingAgents-CLIOptions"></a>
|
|
2
|
+
|
|
3
|
+
| | |
|
|
4
|
+
| --- | --- |
|
|
5
|
+
| **Defined in** | lib/my_ruby_coding_agents/cli_options.rb |
|
|
6
|
+
|
|
7
|
+
Parses the options of the install and status commands. Removes them from argv,
|
|
8
|
+
leaving at most the target directory.
|
|
9
|
+
|
|
10
|
+
## Public Class Methods
|
|
11
|
+
### `add_install_options(opts, options)` <a id="method-c-add_install_options"></a> <a id="add_install_options-class_method"></a>
|
|
12
|
+
Not documented.
|
|
13
|
+
|
|
14
|
+
### `parse(command, argv, out:)` <a id="method-c-parse"></a> <a id="parse-class_method"></a>
|
|
15
|
+
Raises OptionParser::ParseError on bad options. Prints the command's help to
|
|
16
|
+
out and sets :help when asked for it.
|
|
17
|
+
- **@raise** [OptionParser::InvalidArgument]
|
|
18
|
+
|
|
19
|
+
### `parser(command, options, out)` <a id="method-c-parser"></a> <a id="parser-class_method"></a>
|
|
20
|
+
Not documented.
|
|
21
|
+
|
|
22
|
+
### `show_help(opts, options, out)` <a id="method-c-show_help"></a> <a id="show_help-class_method"></a>
|
|
23
|
+
Not documented.
|
|
24
|
+
|
|
25
|
+
### `user_with_dir?(options, argv)` <a id="method-c-user_with_dir-3F"></a> <a id="user_with_dir?-class_method"></a>
|
|
26
|
+
- **@return** [Boolean]
|
|
@@ -27,7 +27,8 @@ Not documented.
|
|
|
27
27
|
Not documented.
|
|
28
28
|
|
|
29
29
|
## Public Instance Methods
|
|
30
|
-
### `initialize(dir:, agents:, instructions:, targets:)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
|
|
30
|
+
### `initialize(dir:, agents:, instructions:, targets:, user: false)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
|
|
31
|
+
user: true installs into each tool's home folder instead of dir.
|
|
31
32
|
- **@return** [Installer] a new instance of Installer
|
|
32
33
|
|
|
33
34
|
### `install(out:, force: false, dry_run: false)` <a id="method-i-install"></a> <a id="install-instance_method"></a>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Class MyRubyCodingAgents::Locations::Location <a id="class-MyRubyCodingAgents-Locations-Location"></a>
|
|
2
|
+
|
|
3
|
+
| | |
|
|
4
|
+
| --- | --- |
|
|
5
|
+
| **Inherits** | Data |
|
|
6
|
+
| **Defined in** | lib/my_ruby_coding_agents/locations.rb |
|
|
7
|
+
|
|
8
|
+
dir holds the agent files; guide is the file that gets the delegation block.
|
|
9
|
+
|
|
10
|
+
## Attributes
|
|
11
|
+
### `dir` [R] <a id="attribute-i-dir"></a> <a id="dir-instance_method"></a>
|
|
12
|
+
Returns the value of attribute dir
|
|
13
|
+
- **@return** [Object] the current value of dir
|
|
14
|
+
|
|
15
|
+
### `guide` [R] <a id="attribute-i-guide"></a> <a id="guide-instance_method"></a>
|
|
16
|
+
Returns the value of attribute guide
|
|
17
|
+
- **@return** [Object] the current value of guide
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Module MyRubyCodingAgents::Locations <a id="module-MyRubyCodingAgents-Locations"></a>
|
|
2
|
+
|
|
3
|
+
| | |
|
|
4
|
+
| --- | --- |
|
|
5
|
+
| **Defined in** | lib/my_ruby_coding_agents/locations.rb |
|
|
6
|
+
|
|
7
|
+
Where each tool's agent files and guide file go. A project install keeps them
|
|
8
|
+
in the project. A user install puts them in each tool's home folder, so
|
|
9
|
+
nothing is written into the repository; use it for repositories you do not
|
|
10
|
+
own, such as an employer's.
|
|
11
|
+
|
|
12
|
+
## Public Class Methods
|
|
13
|
+
### `project(root)` <a id="method-c-project"></a> <a id="project-class_method"></a>
|
|
14
|
+
Not documented.
|
|
15
|
+
|
|
16
|
+
### `tool_home(value, default)` <a id="method-c-tool_home"></a> <a id="tool_home-class_method"></a>
|
|
17
|
+
Not documented.
|
|
18
|
+
|
|
19
|
+
### `user(env: ENV, home: Dir.home)` <a id="method-c-user"></a> <a id="user-class_method"></a>
|
|
20
|
+
CODEX_HOME and CLAUDE_CONFIG_DIR move the homes, as they do for the tools.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Class MyRubyCodingAgents::NotesCheck <a id="class-MyRubyCodingAgents-NotesCheck"></a>
|
|
2
|
+
|
|
3
|
+
| | |
|
|
4
|
+
| --- | --- |
|
|
5
|
+
| **Inherits** | Object |
|
|
6
|
+
| **Defined in** | lib/my_ruby_coding_agents/notes_check.rb |
|
|
7
|
+
|
|
8
|
+
Checks that the notes folder works for the selected tools. The skills and
|
|
9
|
+
chief_of_staff write research, specs, open decisions and the work log to
|
|
10
|
+
NOTES_FOLDER, a folder outside every repository. Each check returns the
|
|
11
|
+
problems it found as plain sentences with the fix.
|
|
12
|
+
|
|
13
|
+
## Constants
|
|
14
|
+
### `SKILLS` <a id="constant-SKILLS"></a> <a id="SKILLS-constant"></a>
|
|
15
|
+
Not documented.
|
|
16
|
+
|
|
17
|
+
### `SUBFOLDERS` <a id="constant-SUBFOLDERS"></a> <a id="SUBFOLDERS-constant"></a>
|
|
18
|
+
Not documented.
|
|
19
|
+
|
|
20
|
+
## Public Instance Methods
|
|
21
|
+
### `claude_problems()` <a id="method-i-claude_problems"></a> <a id="claude_problems-instance_method"></a>
|
|
22
|
+
Not documented.
|
|
23
|
+
|
|
24
|
+
### `codex_problems()` <a id="method-i-codex_problems"></a> <a id="codex_problems-instance_method"></a>
|
|
25
|
+
Not documented.
|
|
26
|
+
|
|
27
|
+
### `init()` <a id="method-i-init"></a> <a id="init-instance_method"></a>
|
|
28
|
+
Creates the notes folder and its standard subfolders. Returns the ones
|
|
29
|
+
created.
|
|
30
|
+
|
|
31
|
+
### `initialize(targets:, env: ENV, home: Dir.home)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
|
|
32
|
+
env and home are injectable for tests.
|
|
33
|
+
- **@return** [NotesCheck] a new instance of NotesCheck
|
|
34
|
+
|
|
35
|
+
### `problems()` <a id="method-i-problems"></a> <a id="problems-instance_method"></a>
|
|
36
|
+
Not documented.
|
|
@@ -9,7 +9,7 @@ Works out which files an install would touch and the state of each one.
|
|
|
9
9
|
Install and status share this plan.
|
|
10
10
|
|
|
11
11
|
## Constants
|
|
12
|
-
### `
|
|
12
|
+
### `EXTENSIONS` <a id="constant-EXTENSIONS"></a> <a id="EXTENSIONS-constant"></a>
|
|
13
13
|
Not documented.
|
|
14
14
|
|
|
15
15
|
## Public Instance Methods
|
|
@@ -17,5 +17,6 @@ Not documented.
|
|
|
17
17
|
Entries in install order. A linked CLAUDE.md and AGENTS.md refer to the same
|
|
18
18
|
file, so only the first entry for a real path is kept.
|
|
19
19
|
|
|
20
|
-
### `initialize(
|
|
20
|
+
### `initialize(locations:, agents:, instructions:, targets:)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
|
|
21
|
+
locations maps each target to its Locations::Location.
|
|
21
22
|
- **@return** [Planner] a new instance of Planner
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Class MyRubyCodingAgents::PluginInstaller <a id="class-MyRubyCodingAgents-PluginInstaller"></a>
|
|
2
|
+
|
|
3
|
+
| | |
|
|
4
|
+
| --- | --- |
|
|
5
|
+
| **Inherits** | Object |
|
|
6
|
+
| **Defined in** | lib/my_ruby_coding_agents/plugin_installer.rb |
|
|
7
|
+
|
|
8
|
+
Installs plugins from this repository's marketplace (advisor, change-workflow)
|
|
9
|
+
into Codex and Claude Code by running each tool's own marketplace and plugin
|
|
10
|
+
commands. Both tools accept repeated runs, so an install can be rerun safely.
|
|
11
|
+
|
|
12
|
+
## Constants
|
|
13
|
+
### `COMMANDS` <a id="constant-COMMANDS"></a> <a id="COMMANDS-constant"></a>
|
|
14
|
+
For each tool: the command that adds the marketplace (given its source) and
|
|
15
|
+
the command that installs one plugin (given its name and scope). Codex plugins
|
|
16
|
+
are always per user, so Codex ignores the scope.
|
|
17
|
+
|
|
18
|
+
### `DEFAULT_RUNNER` <a id="constant-DEFAULT_RUNNER"></a> <a id="DEFAULT_RUNNER-constant"></a>
|
|
19
|
+
Runs a command in dir. Returns [output, success] or nil when the executable is
|
|
20
|
+
not on PATH.
|
|
21
|
+
|
|
22
|
+
### `DEFAULT_SOURCE` <a id="constant-DEFAULT_SOURCE"></a> <a id="DEFAULT_SOURCE-constant"></a>
|
|
23
|
+
Not documented.
|
|
24
|
+
|
|
25
|
+
### `MARKETPLACE` <a id="constant-MARKETPLACE"></a> <a id="MARKETPLACE-constant"></a>
|
|
26
|
+
Not documented.
|
|
27
|
+
|
|
28
|
+
## Public Instance Methods
|
|
29
|
+
### `initialize(dir:, targets:, plugins: %w[advisor],, source: DEFAULT_SOURCE, runner: DEFAULT_RUNNER)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
|
|
30
|
+
- **@return** [PluginInstaller] a new instance of PluginInstaller
|
|
31
|
+
|
|
32
|
+
### `install(out:, dry_run: false, scope: "project")` <a id="method-i-install"></a> <a id="install-instance_method"></a>
|
|
33
|
+
Runs the commands for every target. Returns true when none failed. A tool
|
|
34
|
+
missing from PATH is skipped, not failed. scope is "project" (Claude Code
|
|
35
|
+
installs into dir) or "user".
|
data/doc/MyRubyCodingAgents.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
| | |
|
|
4
4
|
| --- | --- |
|
|
5
|
-
| **Defined in** | lib/my_ruby_coding_agents/cli.rb, lib/my_ruby_coding_agents/agent.rb, lib/my_ruby_coding_agents/models.rb, lib/my_ruby_coding_agents/planner.rb, lib/my_ruby_coding_agents/version.rb, lib/my_ruby_coding_agents/generated.rb, lib/my_ruby_coding_agents/installer.rb, lib/my_ruby_coding_agents/renderers.rb, lib/my_ruby_coding_agents/templates.rb, lib/my_ruby_coding_agents/instruction_file.rb |
|
|
5
|
+
| **Defined in** | lib/my_ruby_coding_agents/cli.rb, lib/my_ruby_coding_agents/agent.rb, lib/my_ruby_coding_agents/models.rb, lib/my_ruby_coding_agents/planner.rb, lib/my_ruby_coding_agents/version.rb, lib/my_ruby_coding_agents/cli_help.rb, lib/my_ruby_coding_agents/generated.rb, lib/my_ruby_coding_agents/installer.rb, lib/my_ruby_coding_agents/locations.rb, lib/my_ruby_coding_agents/renderers.rb, lib/my_ruby_coding_agents/templates.rb, lib/my_ruby_coding_agents/cli_options.rb, lib/my_ruby_coding_agents/notes_check.rb, lib/my_ruby_coding_agents/instruction_file.rb, lib/my_ruby_coding_agents/plugin_installer.rb |
|
|
6
6
|
|
|
7
7
|
## Constants
|
|
8
8
|
### `VERSION` <a id="constant-VERSION"></a> <a id="VERSION-constant"></a>
|
|
@@ -13,13 +13,19 @@ Gem version. Bump before each release and add a CHANGELOG entry.
|
|
|
13
13
|
- [CHANGELOG.md](CHANGELOG.md)
|
|
14
14
|
- [MyRubyCodingAgents/Agent.md](MyRubyCodingAgents/Agent.md)
|
|
15
15
|
- [MyRubyCodingAgents/CLI.md](MyRubyCodingAgents/CLI.md)
|
|
16
|
+
- [MyRubyCodingAgents/CLIHelp.md](MyRubyCodingAgents/CLIHelp.md)
|
|
17
|
+
- [MyRubyCodingAgents/CLIOptions.md](MyRubyCodingAgents/CLIOptions.md)
|
|
16
18
|
- [MyRubyCodingAgents/Generated.md](MyRubyCodingAgents/Generated.md)
|
|
17
19
|
- [MyRubyCodingAgents/Installer.md](MyRubyCodingAgents/Installer.md)
|
|
18
20
|
- [MyRubyCodingAgents/InstructionFile.md](MyRubyCodingAgents/InstructionFile.md)
|
|
21
|
+
- [MyRubyCodingAgents/Locations/Location.md](MyRubyCodingAgents/Locations/Location.md)
|
|
22
|
+
- [MyRubyCodingAgents/Locations.md](MyRubyCodingAgents/Locations.md)
|
|
19
23
|
- [MyRubyCodingAgents/Models/Tier.md](MyRubyCodingAgents/Models/Tier.md)
|
|
20
24
|
- [MyRubyCodingAgents/Models.md](MyRubyCodingAgents/Models.md)
|
|
25
|
+
- [MyRubyCodingAgents/NotesCheck.md](MyRubyCodingAgents/NotesCheck.md)
|
|
21
26
|
- [MyRubyCodingAgents/Planner/Entry.md](MyRubyCodingAgents/Planner/Entry.md)
|
|
22
27
|
- [MyRubyCodingAgents/Planner.md](MyRubyCodingAgents/Planner.md)
|
|
28
|
+
- [MyRubyCodingAgents/PluginInstaller.md](MyRubyCodingAgents/PluginInstaller.md)
|
|
23
29
|
- [MyRubyCodingAgents/Renderers.md](MyRubyCodingAgents/Renderers.md)
|
|
24
30
|
- [MyRubyCodingAgents/Templates.md](MyRubyCodingAgents/Templates.md)
|
|
25
31
|
- [README.md](README.md)
|