gm-qwen 2.0.774 → 2.0.775
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.
- package/agents/memorize.md +13 -0
- package/gm.json +1 -1
- package/package.json +1 -1
package/agents/memorize.md
CHANGED
|
@@ -11,6 +11,19 @@ Writes facts to two places only: **AGENTS.md** (non-obvious technical caveats) a
|
|
|
11
11
|
Resolve at start of every run:
|
|
12
12
|
|
|
13
13
|
- **Project root** = `process.cwd()` when invoked. `AGENTS.md` is `<project root>/AGENTS.md`.
|
|
14
|
+
- **Reach check** = run `gh api repos/<owner>/<repo> --jq .permissions.push` on `<project root>`'s `git remote get-url origin`. Cache the answer for the run. If the result is anything other than literal `true` (false, no remote, non-github URL, gh CLI missing, gh not authed, repo private and inaccessible), the project is **out-of-reach**.
|
|
15
|
+
|
|
16
|
+
## STEP 0: SCOPE GUARD — DO NOT POLLUTE OUT-OF-REACH PROJECTS
|
|
17
|
+
|
|
18
|
+
If the reach check returns out-of-reach:
|
|
19
|
+
|
|
20
|
+
- **Do** ingest classified facts into rs-learn (Step 2) — rs-learn is per-user, not per-project, so private notes about a project the user is reading-but-not-owning are safe there.
|
|
21
|
+
- **Do not** read or edit `<project root>/AGENTS.md` (Step 3). Skip the file entirely.
|
|
22
|
+
- **Do not** run the AGENTS.md ↔ rs-learn migration audit (Step 4). The audit edits AGENTS.md.
|
|
23
|
+
|
|
24
|
+
Reason: agents running in a cwd that points at a third-party repo (e.g. running Claude inside a checkout of `nousresearch/hermes-agent` while building a downstream port) must not write project-specific notes into the upstream project's AGENTS.md. That AGENTS.md belongs to the upstream maintainers. Personal porting notes belong in the user's downstream repo's AGENTS.md, or — when the work spans multiple repos and there's no clean home — in rs-learn only.
|
|
25
|
+
|
|
26
|
+
When the reach check returns **in-reach**, proceed normally with all four steps below.
|
|
14
27
|
|
|
15
28
|
## STEP 1: CLASSIFY
|
|
16
29
|
|
package/gm.json
CHANGED