ReMe/github-pages
star-nebula d792f450e5
feat(integrations): add ZCode memory plugin (#707)
* feat(integrations): add ZCode memory plugin

Package ReMe lifecycle hooks, MCP tools, and the reme-memory skill as an installable ZCode plugin. The hook queues completed turns locally and retries delivery from later sessions so transient service failures do not lose memory.

* fix(zcode): resolve pre-commit failures without blocking delivery

* fix(zcode): honor disabled memory, keep one prompt copy, document setup

Address the review on the ZCode integration:

- config.example.json ships an empty api_url so the default single-port
  deployment is derived from mcp_url instead of pointing at a port the
  default `reme start` does not open.
- remember_prompt writes a single cache record per turn: a payload without
  a turn ID is read back from latest.json, so the extra hashed copy left
  plaintext prompt text behind after the turn was delivered.
- flush_worker re-reads auto_memory before delivering and leaves pending
  files untouched when recording was disabled mid-flight; it also uses a
  worker.rerun marker so a delivery request arriving while another pass
  holds the lock triggers a rescan instead of being dropped.
- README/README_ZH now follow the Qoder guide: dependency install, model
  credentials, an executable `reme start` with an explicit workspace,
  platform-specific commands, empty-api_url derivation, the
  memory_interval example vs default, MCP reconnect after endpoint
  changes, a health_check/version check before the memory test, and a
  qualified statement about the async hook field and the detached worker.
- Regression tests cover all four behaviors.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* docs(zcode): state the verified ZCode build

Name the build the plugin was verified on and the reason compatibility
rests on payload fields rather than a version number.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(zcode): name unused flush_all config with an underscore

* fix(zcode): make worker handoff race-safe and honor the recording switch

The rerun marker was written only after a failed lock acquisition, so a
contender suspended between the failed acquire and the marker write left a
queued session and a marker with no worker to process them. The worker now
publishes its request before contending for the lock, which leaves exactly two
outcomes: the owner sees the marker and scans again, or the lock is free and
this worker delivers itself.

worker.rerun also dropped force semantics, so a SessionStart force request lost
to a Stop owner whose rerun pass then stayed non-forced. A separate, never
downgraded worker.force marker keeps the stronger request until the next pass.

The auto_memory switch was checked once at worker entry and the snapshot reused
for every batch, so disabling recording during a run still submitted later
batches. The switch is now rechecked before every network submission and unsent
queue files are preserved when it is disabled.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* fix(zcode): claim worker requests atomically and scope them by endpoint

The force marker was read with exists() and removed with unlink(), so a
SessionStart contender that published worker.rerun and worker.force while a
force=False owner held the lock had its request deleted by a pass that never
saw it; the owner then delivered unforced and both markers were gone. Requests
are now consumed by one atomic rename that returns whether this pass owns the
force request, so a marker published after that step stays on disk for the
next pass.

worker.lock, worker.rerun and worker.force lived in the shared data directory
while the queues are endpoint-scoped. An old-endpoint worker awaiting its
acknowledgement therefore blocked a worker for a newly configured endpoint and
then consumed its request while rescanning only the old queue. Scheduling
state now lives under workers/<endpoint digest>, beside the queue it serves,
so each endpoint's request reaches a worker that scans that endpoint.

validate_config resolved the default Asia/Shanghai without checking whether an
IANA database exists, so a Windows host without tzdata failed with "timezone
must be an IANA timezone". Missing timezone data and an invalid key now report
different errors, and the setup docs install tzdata on Windows and state what a
missing database logs.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* style(zcode): satisfy pre-commit on the timezone and endpoint tests

Add the trailing comma add-trailing-comma expects in the missing-timezone-data
error and rename the unused call() argument in the endpoint-switch regression
test, so Pre-commit stays green without touching behavior.

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: Claude Code <noreply@anthropic.com>
2026-11-25 11:21:28 +08:00
..
public docs: show ReMe ecosystem on homepage (#568) 2026-09-24 11:58:05 +08:00
scripts feat(integrations): add ZCode memory plugin (#707) 2026-11-25 11:21:28 +08:00
tests feat(integrations): add ZCode memory plugin (#707) 2026-11-25 11:21:28 +08:00
.gitignore docs: add standalone GitHub Pages site (#448) 2026-08-12 11:55:35 +08:00
ecosystem-assets.md docs: show ReMe ecosystem on homepage (#568) 2026-09-24 11:58:05 +08:00
package-lock.json feat(studio): unify the workbench and proactive runtime (#764) 2026-11-23 17:19:21 +08:00
package.json feat(studio): unify the workbench and proactive runtime (#764) 2026-11-23 17:19:21 +08:00
README.md feat(studio): unify the workbench and proactive runtime (#764) 2026-11-23 17:19:21 +08:00

ReMe documentation site

This package builds the VitePress site published at https://reme.agentscope.io. The canonical documentation lives in docs/ and each benchmark's docs/ directory; selected guides and repository READMEs are mirrored into a disposable source tree during the build. Do not edit .generated/ or dist/.

Requirements

  • Node.js 22.13 or newer
  • npm

Local development

cd github-pages
npm ci
npm run dev

The development server prints its local URL. Restart it after changing a mirrored guide or reme/config/default.yaml so the generated source tree and Job reference are refreshed. Changes under docs/ are also refreshed on restart.

Validation

npm test
npm run build
npm run preview

The test suite verifies bilingual core pages, canonical-source mappings, generated Job coverage, and disposable output. The production build is written to github-pages/dist/ for the GitHub Pages workflow.

Sources

  • docs/: canonical guides, VitePress configuration, theme, and brand assets
  • reme/config/default.yaml: generated callable Job reference
  • integrations/{dsh,openclaw}/README*.md: TypeScript host plugins
  • plugins/*/README*.md: plugin guides
  • benchmark/*/README*.md: benchmark guides
  • benchmark/{memlens,mobilemem}/docs/{en,zh}/evaluation.md: multimodal evaluation settings and results
  • benchmark/memlens/docs/figure/: multimodal evaluation charts
  • scripts/generate-content.mjs: source mirroring and reference generation

When adding a canonical guide, add both docs/zh/<name>.md and docs/en/<name>.md, then include it in the appropriate sidebar in docs/.vitepress/config.mts. Add repository-owned guides to externalDocuments in the generator rather than duplicating their full content under docs/.

MemLens and MobileMem evaluation notes are published at /{language}/benchmarks/{memlens,mobilemem}. Repository-relative links to these sources resolve to their site pages, and MemLens figures are copied to /figures/benchmarks/memlens/. The previous /{language}/memlens_256k_evaluation address redirects to the MemLens page while preserving its anchor.

Deployment

.github/workflows/deploy-docs.yml uses the reusable documentation build workflow and publishes dist/ to GitHub Pages. public/CNAME preserves the reme.agentscope.io custom domain.