Skip to content

Commit f5affcf

Browse files
committed
fix(0.46.1): sweep redeploys project-level /auto command
stamp_project (the per-repo --sweep layer) now calls deploy::ensure_engine, so a swept project's .omp/commands/auto.md + 8sync-engine.ts are refreshed to su-code/ instead of keeping a stale agents/ copy from an older binary. Project commands take precedence over the global one in omp, so without this the migrated repos kept reading agents/STATE.md. Verified: all projects under ~/Projects have su-code/-only /auto (0 stale).
1 parent fcafd7e commit f5affcf

7 files changed

Lines changed: 24 additions & 7 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ KHÔNG đọc body mỗi phiên (giữ prefix gọn, tiết kiệm KV-cache). Kh
3434
- `impeccable``/home/alexdev/Projects/tools/su-code/su-code/skills/impeccable/SKILL.md`
3535
- `design-taste-frontend``/home/alexdev/Projects/tools/su-code/su-code/skills/taste-skill/SKILL.md`
3636
- `image-routing``/home/alexdev/Projects/tools/su-code/su-code/skills/image-routing/SKILL.md`
37-
- `locate-anything``/home/alexdev/.omp/skills/locate-anything/SKILL.md`
37+
- `locate-anything``/home/alexdev/Projects/tools/su-code/su-code/skills/locate-anything/SKILL.md`
3838

3939
### 🔎 On-demand — tên = trigger; mở `SKILL.md` của skill khi task khớp (mô tả ở frontmatter, KHÔNG nhồi ở đây)
4040

@@ -93,7 +93,7 @@ KHÔNG đọc body mỗi phiên (giữ prefix gọn, tiết kiệm KV-cache). Kh
9393
- `token-bench``su-code/skills/token-bench/SKILL.md`
9494
- `using-agent-skills``su-code/skills/using-agent-skills/SKILL.md`
9595
- `watch``su-code/skills/watch/SKILL.md`
96-
- `zai-vision``~/.omp/skills/zai-vision/SKILL.md`
96+
- `zai-vision``su-code/skills/zai-vision/SKILL.md`
9797

9898
### Quy tắc bất biến
9999

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ versioning theo [SemVer](https://semver.org). **8sync rule:** mỗi PR cập nh
55

66
## [Unreleased]
77

8+
## [0.46.1] — 2026-07-06
9+
10+
### Fixed — sweep now redeploys the project-level `/auto` command
11+
- `8sync harness global --sweep` migrated a project's memory folder
12+
(`agents/``su-code/`) but left the project's `.omp/commands/auto.md`
13+
(and `8sync-engine.ts`) untouched — so `/auto` in a swept repo kept reading
14+
`agents/STATE.md` from a stale copy deployed by an older binary (project
15+
commands take precedence over the global one in omp).
16+
- `stamp_project` (the per-repo sweep layer) now calls `deploy::ensure_engine`,
17+
refreshing both the `/auto` command and the engine extension in every swept
18+
project. Byte-identical writes stay quiet. Verified: all projects under
19+
`~/Projects` now have `su-code/`-only `/auto` commands (0 stale).
20+
821
## [0.46.0] — 2026-07-06
922

1023
### Changed — the agent-memory folder is now `su-code/` (was `agents/`), a distinctive project marker

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ KHÔNG đọc body mỗi phiên (giữ prefix gọn, tiết kiệm KV-cache). Kh
3333
- `impeccable``/home/alexdev/Projects/tools/su-code/su-code/skills/impeccable/SKILL.md`
3434
- `design-taste-frontend``/home/alexdev/Projects/tools/su-code/su-code/skills/taste-skill/SKILL.md`
3535
- `image-routing``/home/alexdev/Projects/tools/su-code/su-code/skills/image-routing/SKILL.md`
36-
- `locate-anything``/home/alexdev/.omp/skills/locate-anything/SKILL.md`
36+
- `locate-anything``/home/alexdev/Projects/tools/su-code/su-code/skills/locate-anything/SKILL.md`
3737

3838
### 🔎 On-demand — tên = trigger; mở `SKILL.md` của skill khi task khớp (mô tả ở frontmatter, KHÔNG nhồi ở đây)
3939

@@ -92,7 +92,7 @@ KHÔNG đọc body mỗi phiên (giữ prefix gọn, tiết kiệm KV-cache). Kh
9292
- `token-bench``su-code/skills/token-bench/SKILL.md`
9393
- `using-agent-skills``su-code/skills/using-agent-skills/SKILL.md`
9494
- `watch``su-code/skills/watch/SKILL.md`
95-
- `zai-vision``~/.omp/skills/zai-vision/SKILL.md`
95+
- `zai-vision``su-code/skills/zai-vision/SKILL.md`
9696

9797
### Quy tắc bất biến
9898

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "2"
33
members = ["crates/cli"]
44

55
[workspace.package]
6-
version = "0.46.0"
6+
version = "0.46.1"
77
edition = "2021"
88
license = "MIT"
99
authors = ["8sync-dev <8sync.dev.1111@gmail.com>"]

crates/cli/src/verbs/harness/global.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,9 @@ fn stamp_project(env: &env_detect::Env, root: &Path, force: bool) -> Result<usiz
194194
inject_agents_md(&env.home, root)?;
195195
seed_harness_memory(root)?;
196196
seed_gitleaks_hook(root);
197+
// Redeploy the /auto command + engine to the project so a swept repo's
198+
// `.omp/commands/auto.md` (precedence over global) points at su-code/, not
199+
// a stale agents/ copy from an older binary.
200+
deploy::ensure_engine(&env.home, Some(root))?;
197201
Ok(mirrored)
198202
}

su-code/KNOWLEDGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- 8sync:harness:begin -->
22
## 🧠 8sync harness
33

4-
- **Always-on (đọc theo thứ tự; CORE đọc body ngay, SPECIALIST đọc khi task khớp):** codegraph → karpathy-guidelines → ponytail → assp-skill → impeccable → taste-skill → 8sync-cli → image-routing.
4+
- **Always-on (đọc theo thứ tự; CORE đọc body ngay, SPECIALIST đọc khi task khớp):** codegraph → karpathy-guidelines → ponytail → assp-skill → impeccable → taste-skill → 8sync-cli → image-routing → locate-anything.
55
- **Cách tận dụng:** codegraph = explore code (query/callers/callees, không grep) · karpathy + ponytail = YAGNI, làm ít nhất, xoá > thêm · impeccable = design CHUẨN, BẮT BUỘC khi UI/design (đọc body lúc đó) + taste chống slop.
66
- **Output lớn (>~50 dòng) → BẮT BUỘC `headroom_compress`** trước khi vào context.
77
- **Sau mỗi thay đổi:** cập nhật `CHANGELOG.md` (Unreleased) + ghi học được vào file này (prefix `validated:` nếu test/build xác nhận, `hypothesis:` nếu chưa).

0 commit comments

Comments
 (0)