Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(memory): document GitHub seeding and cover the working-tier promotion in tests
nirholasea5c015514d3
diff --git a/api/agents/[id]/memory-seed-github.js b/api/agents/[id]/memory-seed-github.jsindex 8a8fcc618..3a3e92126 100644--- a/api/agents/[id]/memory-seed-github.js+++ b/api/agents/[id]/memory-seed-github.js@@ -189,8 +189,8 @@ async function handlePost(req, res, agentId) {sql`DELETE FROM agent_memories WHERE agent_id = ${agentId} AND context->>'source' = 'github_seed'`,...rows.map((row) => sql`- INSERT INTO agent_memories (agent_id, type, content, tags, context, salience)- VALUES (${row.agent_id}, ${row.type}, ${row.content}, ${row.tags}, ${JSON.stringify(row.context)}::jsonb, ${row.salience})+ INSERT INTO agent_memories (agent_id, type, content, tags, context, salience, tier)+ VALUES (${row.agent_id}, ${row.type}, ${row.content}, ${row.tags}, ${JSON.stringify(row.context)}::jsonb, ${row.salience}, ${row.tier})`,),]);diff --git a/api/agents/_id/memory-seed.js b/api/agents/_id/memory-seed.jsindex a5b7069b1..dac95628a 100644--- a/api/agents/_id/memory-seed.js+++ b/api/agents/_id/memory-seed.js@@ -157,8 +157,8 @@ export default async function handleMemorySeed(req, res, agentId) {sql`DELETE FROM agent_memories WHERE agent_id = ${agentId} AND context->>'source' = 'github_seed'`,...rows.map((row) => sql`- INSERT INTO agent_memories (agent_id, type, content, tags, context, salience)- VALUES (${row.agent_id}, ${row.type}, ${row.content}, ${row.tags}, ${JSON.stringify(row.context)}::jsonb, ${row.salience})+ INSERT INTO agent_memories (agent_id, type, content, tags, context, salience, tier)+ VALUES (${row.agent_id}, ${row.type}, ${row.content}, ${row.tags}, ${JSON.stringify(row.context)}::jsonb, ${row.salience}, ${row.tier})`,),]);diff --git a/docs/github-memory-seeding.md b/docs/github-memory-seeding.mdindex a2f5fe33b..959294bc1 100644--- a/docs/github-memory-seeding.md+++ b/docs/github-memory-seeding.md@@ -84,10 +84,17 @@ selection, so the promise and the code cannot drift apart.Each fact becomes one row in `agent_memories`:- `type: 'reference'`, tagged `github` and `github_seed`.-- Salience `0.7`, inside the band the chat runtime pages into recall.+- Salience from `0.7` down, one step per rank, so the order the distiller+ emitted survives into retrieval. Chat keeps only the ten highest-salience+ memories per reply, and a flat score would cut that list arbitrarily.+- `tier`: the top five facts are `working`, the rest `recall`. The working tier+ is what the agent always carries, so those five ground an open question like+ "what do you know about my work?" without needing the message to match them.+ The `recall` remainder still surfaces through semantic and lexical search+ when a message is about that repository.- `context` carries `source: 'github_seed'`, your handle, the seed timestamp,- and the selection manifest, so every memory can be audited back to the exact- set of checkboxes that produced it.+ the fact's `rank`, and the selection manifest, so every memory can be audited+ back to the exact set of checkboxes that produced it.Re-seeding the same agent replaces the previous GitHub batch atomically: theold rows and the new rows swap inside one transaction, so a failure mid-rundiff --git a/docs/start-here.md b/docs/start-here.mdindex f059c9bc5..5692590cf 100644--- a/docs/start-here.md+++ b/docs/start-here.md@@ -182,6 +182,7 @@ Deeper references that don't fit a track above but answer real questions:- [The 3D viewer](./viewer.md): the rendering layer reference (model loading, cameras, animation, lighting)- [Farcaster memory seeding](./farcaster-memory-seeding.md): give an agent your Farcaster voice, proved with a wallet the account already verified, and revoke it in one click- [X memory seeding](./x-memory-seeding.md): seed an agent from your public X posts behind an explicit, versioned consent you can revoke (revocation deletes what the seed wrote)+- [GitHub memory seeding](./github-memory-seeding.md): tick the profile, repositories, and READMEs your agent may read, and nothing outside that list is ever fetched or stored (disconnecting deletes every fact it wrote)- [The catalog quality gate](./seed-quality.md): how a platform-seeded model earns its slot in the public catalog, the two stages it must pass, and why a rejected asset is kept rather than deleted- [Likeness evaluation](./likeness-eval.md): the Phase 1 verification metric, measured rather than asserted. Every reconstruction is rendered at three yaws and compared to the photos it was built from with an open-source face-recognition embedding, so "4 out of 5" means one fixed, calibrated thing- [Examples gallery](./examples.md): copy-paste-ready code for common use casesdiff --git a/tests/github-memory-seed.test.js b/tests/github-memory-seed.test.jsindex 7bbe18380..753a7b269 100644--- a/tests/github-memory-seed.test.js+++ b/tests/github-memory-seed.test.js@@ -10,6 +10,7 @@ import {selectionManifest,selectionSchema,toMemoryRows,+ WORKING_TIER_FACTS,GITHUB_SEED_TAGS,MAX_CATALOG_REPOS,MAX_FACTS,@@ -360,6 +361,35 @@ describe('toMemoryRows', () => {expect(rows[0].context.source).toBe('github_seed');});+ // A seeded fact the agent never carries cannot be spoken about unprompted:+ // the working context is `pinned OR tier = 'working'` and the column+ // defaults to 'recall', so the top facts have to say so explicitly.+ it('promotes the top-ranked facts to the always-in-context working tier', () => {+ const facts = Array.from({ length: WORKING_TIER_FACTS + 3 }, (_, i) => `fact ${i + 1}`);+ const rows = toMemoryRows('agent-1', facts, {+ login: 'devuser',+ resolved,+ seededAt: '2026-08-11T10:00:00.000Z',+ });++ expect(rows.slice(0, WORKING_TIER_FACTS).every((r) => r.tier === 'working')).toBe(true);+ expect(rows.slice(WORKING_TIER_FACTS).every((r) => r.tier === 'recall')).toBe(true);+ });++ it('ranks facts so chat keeps the distiller order instead of truncating it arbitrarily', () => {+ const rows = toMemoryRows('agent-1', ['first', 'second', 'third'], {+ login: 'devuser',+ resolved,+ seededAt: '2026-08-11T10:00:00.000Z',+ });++ expect(rows.map((r) => r.context.rank)).toEqual([1, 2, 3]);+ expect(rows.map((r) => r.salience)).toEqual([0.7, 0.69, 0.68]);+ for (let i = 1; i < rows.length; i += 1) {+ expect(rows[i].salience).toBeLessThan(rows[i - 1].salience);+ }+ });+it('records the exact selection on every row as the consent audit trail', () => {const rows = toMemoryRows('agent-1', ['a', 'b'], {login: 'devuser',