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
chore: add .claude/settings.json, verify script, and working-philosophy section
Claude31e7e5372375
diff --git a/.claude/settings.json b/.claude/settings.jsonnew file mode 100644index 000000000..06f552579--- /dev/null+++ b/.claude/settings.json@@ -0,0 +1,238 @@+{+ "$schema": "https://json.schemastore.org/claude-code-settings.json",++ "permissions": {+ "defaultMode": "acceptEdits",++ "allow": [+ "Read",+ "Glob",+ "Grep",+ "WebFetch",+ "WebSearch",++ "Bash(npm *)",+ "Bash(npx *)",+ "Bash(pnpm *)",+ "Bash(yarn *)",+ "Bash(node *)",++ "Bash(prettier *)",+ "Bash(vite *)",+ "Bash(vitest *)",++ "Bash(forge build*)",+ "Bash(forge test*)",+ "Bash(forge fmt*)",+ "Bash(forge install*)",+ "Bash(forge update*)",+ "Bash(forge snapshot*)",+ "Bash(forge coverage*)",+ "Bash(forge inspect*)",+ "Bash(forge remappings*)",+ "Bash(forge clean*)",+ "Bash(cast *)",++ "Bash(vercel *)",++ "Bash(git status*)",+ "Bash(git log*)",+ "Bash(git diff*)",+ "Bash(git show*)",+ "Bash(git add*)",+ "Bash(git commit*)",+ "Bash(git push)",+ "Bash(git push origin *)",+ "Bash(git push -u origin *)",+ "Bash(git push --set-upstream origin *)",+ "Bash(git pull*)",+ "Bash(git fetch*)",+ "Bash(git checkout*)",+ "Bash(git switch*)",+ "Bash(git branch*)",+ "Bash(git merge*)",+ "Bash(git rebase*)",+ "Bash(git stash*)",+ "Bash(git restore*)",+ "Bash(git reset)",+ "Bash(git reset HEAD*)",+ "Bash(git reset --soft*)",+ "Bash(git reset --mixed*)",+ "Bash(git remote*)",+ "Bash(git tag*)",+ "Bash(git ls-files*)",+ "Bash(git ls-tree*)",+ "Bash(git rev-parse*)",+ "Bash(git rev-list*)",+ "Bash(git describe*)",+ "Bash(git blame*)",+ "Bash(git worktree*)",+ "Bash(git config --get*)",+ "Bash(git config --list*)",++ "Bash(ls*)",+ "Bash(pwd)",+ "Bash(cd *)",+ "Bash(cat *)",+ "Bash(head *)",+ "Bash(tail *)",+ "Bash(wc *)",+ "Bash(sort *)",+ "Bash(uniq *)",+ "Bash(diff *)",+ "Bash(file *)",+ "Bash(stat *)",+ "Bash(du *)",+ "Bash(tree *)",+ "Bash(find *)",+ "Bash(grep *)",+ "Bash(rg *)",+ "Bash(awk *)",+ "Bash(sed *)",+ "Bash(jq *)",+ "Bash(which *)",+ "Bash(whereis *)",+ "Bash(command -v *)",+ "Bash(env)",+ "Bash(printenv*)",+ "Bash(echo *)",+ "Bash(true)",+ "Bash(false)",+ "Bash(date*)",+ "Bash(basename *)",+ "Bash(dirname *)",+ "Bash(realpath *)",+ "Bash(readlink *)",++ "Bash(mkdir *)",+ "Bash(cp *)",+ "Bash(mv *)",+ "Bash(touch *)",+ "Bash(ln -s *)",+ "Bash(chmod *)",++ "Bash(curl -s *)",+ "Bash(curl -I *)",+ "Bash(curl --head *)",+ "Bash(curl -o *)",+ "Bash(curl -sSL *)",+ "Bash(curl -sL *)",+ "Bash(wget *)",++ "Bash(tar *)",+ "Bash(unzip *)",+ "Bash(zip *)",+ "Bash(gzip *)",+ "Bash(gunzip *)",++ "Bash(python *)",+ "Bash(python3 *)",+ "Bash(pip *)",+ "Bash(pip3 *)",++ "Bash(ps *)",+ "Bash(kill %*)",+ "Bash(pgrep *)",+ "Bash(lsof *)",+ "Bash(netstat *)",+ "Bash(host *)",+ "Bash(dig *)",+ "Bash(nslookup *)"+ ],++ "deny": [+ "Bash(rm -rf*)",+ "Bash(rm -fr*)",+ "Bash(rm -r *)",+ "Bash(rm -R *)",+ "Bash(rm --recursive*)",+ "Bash(sudo*)",+ "Bash(doas*)",+ "Bash(su *)",+ "Bash(su)",++ "Bash(git push --force*)",+ "Bash(git push -f*)",+ "Bash(git push --force-with-lease*)",+ "Bash(git push --mirror*)",+ "Bash(git push --delete*)",+ "Bash(git push origin --delete*)",+ "Bash(git push origin :*)",+ "Bash(git push origin +*)",++ "Bash(git reset --hard*)",+ "Bash(git clean -f*)",+ "Bash(git clean -df*)",+ "Bash(git clean -xf*)",+ "Bash(git clean -xdf*)",+ "Bash(git clean -fd*)",+ "Bash(git clean -fx*)",+ "Bash(git clean -fdx*)",+ "Bash(git branch -D*)",+ "Bash(git branch --delete --force*)",+ "Bash(git checkout -- *)",+ "Bash(git checkout . *)",+ "Bash(git checkout .)",+ "Bash(git restore --source=*)",+ "Bash(git restore .)",+ "Bash(git restore . *)",+ "Bash(git update-ref -d*)",+ "Bash(git filter-branch*)",+ "Bash(git filter-repo*)",+ "Bash(git reflog delete*)",+ "Bash(git reflog expire*)",+ "Bash(git gc --prune=now*)",++ "Bash(forge script * --broadcast*)",+ "Bash(forge script *--broadcast*)",+ "Bash(cast send *)",++ "Bash(vercel --prod*)",+ "Bash(vercel deploy --prod*)",+ "Bash(vercel rm*)",+ "Bash(vercel remove*)",+ "Bash(vercel alias rm*)",+ "Bash(npm publish*)",+ "Bash(yarn publish*)",+ "Bash(pnpm publish*)",++ "Bash(curl * | sh*)",+ "Bash(curl * | bash*)",+ "Bash(curl *|sh*)",+ "Bash(curl *|bash*)",+ "Bash(wget * | sh*)",+ "Bash(wget * | bash*)",+ "Bash(wget *-O - | sh*)",+ "Bash(wget *-O- | sh*)",++ "Bash(dd if=*)",+ "Bash(dd of=*)",+ "Bash(mkfs*)",+ "Bash(fdisk*)",+ "Bash(parted*)",+ "Bash(shutdown*)",+ "Bash(reboot*)",+ "Bash(halt*)",+ "Bash(poweroff*)",+ "Bash(init *)",++ "Edit(.env)",+ "Edit(.env.local)",+ "Edit(.env.*.local)",+ "Edit(.env.production)",+ "Edit(.env.production.local)",+ "Edit(**/.env)",+ "Edit(**/.env.local)",+ "Edit(**/.env.*.local)",+ "Write(.env)",+ "Write(.env.local)",+ "Write(.env.*.local)",+ "Write(**/.env)",+ "Write(**/.env.local)",+ "Write(**/.env.*.local)"+ ]+ },++ "includeCoAuthoredBy": true,+ "respectGitignore": true+}diff --git a/CLAUDE.md b/CLAUDE.mdindex 56beb7811..616840a0a 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -4,6 +4,16 @@ Root guidance for agents working in this repo. Read this first. Then read the sc---+## How to work here++1. **Move on your own.** You have broad permissions (see [.claude/settings.json](.claude/settings.json)). Don't ask before running builds, tests, formatters, git commits, or reads — just do them. Ask only before destructive ops, on-chain broadcasts, or production deploys.+2. **Work hard, then verify.** Don't stop at "the build passed." Open the URL, click the thing, check the network tab, tail the log. If you can't actually test the change (e.g., no browser), say so — don't fake confidence.+3. **Be intelligent about scope.** If a one-line fix needs a 200-line refactor to be safe, say so and ask. If the task is underspecified, pick the most useful interpretation and say which one.+4. **Don't delete the user's work.** Unfamiliar files / branches / comments may be in-progress. Investigate before removing. Deny list in [.claude/settings.json](.claude/settings.json) blocks the worst footguns (`rm -rf`, `git reset --hard`, `git push --force`, `forge script --broadcast`, etc.) — don't try to bypass them.+5. **One command to check yourself:** `npm run verify` (prettier + build). Run before reporting done.++---+## What this repo is**3D Agent** is a browser-native glTF/GLB viewer that grew a full embodied-agent platform on top of it. Two halves, one codebase:diff --git a/package.json b/package.jsonindex 77bab1991..e48621a1c 100644--- a/package.json+++ b/package.json@@ -42,6 +42,8 @@"generate-icons": "node scripts/generate-pwa-icons.mjs","fetch-animations": "node scripts/download-animations.mjs","test": "echo 'No tests configured' && exit 0",+ "verify": "prettier --check . && vite build",+ "format": "prettier --write .","deploy": "npm run build && vercel --local-config vercel.json --prod","postversion": "git push && git push --tags"},