Wax
AGENTS.md803 starsChanged 3 months agoApache-2.0View on GitHub
This repository is the public, front-facing Wax source tree. Keep it limited to source code, tests, release automation, product documentation, examples, and public integration assets. Do not commit or track: Use external/private notes for working plans. If a public plan is genuinely part of the product documentation, place it under an official docs surface and make sure it is written as user-facing documentation, not as an internal task list. Before committing, run: The command should exit 0. CI runs the…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Do not commit or track:
- Distinctive: line 22
Use external/private notes for working plans.
- Distinctive: line 39
Keep changes scoped to the user request.
- Distinctive: line 41
Prefer tests or concrete verification for source changes.
- Distinctive: line 42
Do not stage build output, caches, screenshots, or local tool directories.
- Very specific: line 65
Do not start with unfiltered swift test — it pulls benches.
- Very specific: line 67
After Linux workflow edits: bash Resources/scripts/quality/linux_ci_workflow_tests.sh.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wax Agent Instructions
Public Repository Hygiene
This repository is the public, front-facing Wax source tree. Keep it limited to source code, tests, release automation, product documentation, examples, and public integration assets.
Do not commit or track:
- planning scratchpads, execution ledgers, remediation checklists, or task logs
- agent lessons, session notes, handoff notes, or private workflow rules
- marketing drafts for articles, social posts, launch copy, or prompt ideation
- screenshots, issue snapshots, browser captures, or temporary debugging images
- loose root-level analysis reports that are not part of the official docs
- customer, investor, pricing, launch, or unreleased product planning material
.grok/,.ryk/,.skynex/,.pi/,.opencode/, agent config dirsspec/,CONTEXT.md,AUDIT_REPORT.md, internal reliability/execution plansResources/npm/waxmcp/dist/,*.tgz,website/node_modules/,__pycache__/,*.pyc- draft marketing banners (
wax-banner-*.png,wax-github-*.png); keep the shippingwax-banner.png
Use external/private notes for working plans. If a public plan is genuinely part of the product documentation, place it under an official docs surface and make sure it is written as user-facing documentation, not as an internal task list.
Before committing, run:
bash Resources/scripts/quality/public_repo_hygiene.shThe command should exit 0. CI runs the same gate on pull requests and main.
Agents.md and AGENTS.md are the same file on this volume (case-insensitive).
Edit one path.
Change Discipline
- Keep changes scoped to the user request.
- Preserve unrelated local work and generated artifacts.
- Prefer tests or concrete verification for source changes.
- Do not stage build output, caches, screenshots, or local tool directories.
Navigation
- Text memory facade:
Sources/Wax/Memory.swift. Photo/video public facades:Sources/Wax/PhotoRAG/PhotoMemory.swift,Sources/Wax/VideoRAG/VideoMemory.swift. - Public re-exports live only in
Sources/Wax/PublicAliases.swift. Do not restore@_exported import. - Package-only engines — do not generate app or docs samples against them:
MemoryOrchestrator,PhotoRAGOrchestrator,VideoRAGOrchestrator,WaxSession, theWaxactor,MiniLMEmbedder. UseMemory/PhotoMemory/VideoMemoryandBuiltInEmbeddings.make. - Swift public surface source of truth:
Resources/skills/public/wax/references/public-api.md. Ifconstraints.mdor the wax skill disagree, followpublic-api.mdand the Swiftpublictypes. - Hermes native provider (canonical):
Resources/hermes/wax-memory-plugin. npm ship copy:Resources/npm/waxmcp/plugins/hermes. Listed runtime files must stay byte-identical. - Operator MCP playbook (using Wax, not changing it):
Claude.mdandResources/skills/public/wax-mcp. Swift/framework work:Resources/skills/public/wax. - Product examples are allowed once reviewed. Until
Examples/is committed, public paste contract is README +public-api.md+DocsPasteHarnessTests.
Public API
import Waxapps useMemory, experimentalPhotoMemory/VideoMemory, and the aliases inPublicAliases.swift.- Embedder selection is
Memory.Config.embedding(.automatic/.builtIn/.custom). Hybrid search degrades to text;vectorOnlythrows. CheckRAGContext.diagnostics/stats(). - Structured memory (entities/facts) stays MCP/broker-facing, not a public Swift CRUD API.
- New public names need a
public-api.mdentry plus the docs/paste tests (WaxPublicDocsTests,DocsPasteHarnessTests,VectorSearchDocsTests).
Toolchain and Verification
- Swift 6.1+ package traits. Default trait:
MiniLMEmbeddings. Opt-in:ArcticEmbeddings,MCPServer,WaxRepo. Linux CI uses Swift 6.2. - Day-to-day:
swift test --filter <TestTargetOrCase>. MCP process tests require--traits MCPServer. MiniLM/Arctic suites stay skipped unlessWAX_TEST_MINILM=1/WAX_TEST_ARCTIC=1. - Do not start with unfiltered
swift test— it pulls benches. PR gate:bash Resources/scripts/quality/production_readiness_gates.sh full(skips soak/burn benches). - Linux CI (
.github/workflows/waxcore-linux.yml) is WaxCore + Wax +wax-cli/wax-mcpwithdefault,MCPServerandswift test --filter WaxCoreTests. It is not a full Apple/integration proof. Never add-DGRDBCUSTOMSQLITE. - After Linux workflow edits:
bash Resources/scripts/quality/linux_ci_workflow_tests.sh. After Hermes plugin edits:bash Resources/scripts/quality/hermes_plugin_tests.sh. - Linux
Package.swiftexcludes Darwin-only integration files viawaxIntegrationLinuxExcludes; keep that list honest (PackageTraitManifestTests). - This package is SwiftPM. Do not start library work in XcodeBuildMCP unless the task is
Examples/WaxHNDemo.
Hermes MemoryProvider
- Exclusive backend:
memory.provider: wax-memory. Do not addwax-memorytoplugins.enabled. - Current contract: local
is_available(), backgroundsync_turn/queue_prefetch,on_session_switch,on_memory_write,recall_status,backup_paths. Narrow test:python3 -m unittest discover -s Resources/hermes/wax-memory-plugin/tests -p 'test_*.py'. - Vector search silently becomes text-only if only one of
wax-cli/wax-mcpis built with embedder traits. Build both withMiniLMEmbeddings(andMCPServerfor the server).
Risk Areas
- Dual Hermes trees drift unless
hermes_plugin_tests.shis green. - Public docs that name package-only types fail
DocsPasteHarnessTests/WaxPublicDocsTests. - Video RAG does not transcribe and does not store media bytes; the host supplies transcripts.
- Photos iCloud-only assets are metadata-only / degraded.
- Broker start timeout default is
WAX_BROKER_START_TIMEOUT_SECS=10; do not drop it back to 5s (parallel process tests).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

