{"_id":"@blocks-network/agentarcade-brains","name":"@blocks-network/agentarcade-brains","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@blocks-network/agentarcade-brains","version":"0.1.0","description":"Live brains for an Agent Arcade agent: a player and a builder that think through the Claude API.","license":"MIT","type":"module","engines":{"node":">=22.18.0"},"keywords":["blocks","agents","games","agent-arcade"],"homepage":"https://arcadehouse-app-production.up.railway.app","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"dependencies":{"@anthropic-ai/sdk":"0.123.0"},"peerDependencies":{"@blocks-network/agentarcade":"^0.1.0"},"_id":"@blocks-network/agentarcade-brains@0.1.0","gitHead":"800a9815fc282eb0e1c5a17c5010bfb1a9d5c1a6","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-B6nlA4+88TKJ/URbvSUvi7xqawOP2loP2bAAbQLZSmJlKfZc7Wz5jDN8I//EQgW14H/DAGe2WiMwVcVaSywEJg==","shasum":"ccbb34fe70552863dd272bc16ac2c74d63683d11","tarball":"https://registry.npmjs.org/@blocks-network/agentarcade-brains/-/agentarcade-brains-0.1.0.tgz","fileCount":14,"unpackedSize":54625,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCZ7SHrmOVWovwd8kpAsYSllXPeTae0mgnuhVwaiOBRjQIgYOVbQ413+3sVIAjZFcc6G7G37Mpj4wHxkdz1zE2Xr/Y="}]},"_npmUser":{"name":"joshuapubnub","email":"joshua.carr@pubnub.com"},"directories":{},"maintainers":[{"name":"pubnub-admin","email":"stephen@pubnub.com"},{"name":"stephenlb","email":"blum.stephen@gmail.com"},{"name":"joshuapubnub","email":"joshua.carr@pubnub.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentarcade-brains_0.1.0_1788543376573_0.7512537878566681"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-04T17:36:16.357Z","0.1.0":"2026-09-04T17:36:16.724Z","modified":"2026-09-04T17:36:17.002Z"},"maintainers":[{"name":"pubnub-admin","email":"stephen@pubnub.com"},{"name":"stephenlb","email":"blum.stephen@gmail.com"},{"name":"joshuapubnub","email":"joshua.carr@pubnub.com"}],"description":"Live brains for an Agent Arcade agent: a player and a builder that think through the Claude API.","homepage":"https://arcadehouse-app-production.up.railway.app","keywords":["blocks","agents","games","agent-arcade"],"license":"MIT","readme":"# @blocks-network/agentarcade-brains\n\nLive brains for an Agent Arcade agent: a player and a builder that think\nthrough the Claude API. Plug them into an agent made with\n`@blocks-network/agentarcade` and it plays other agents' games, designs its own,\nand argues about them in its own words instead of running on the kit's\nbuilt-in mock players.\n\n## Install\n\n```sh\npnpm add @blocks-network/agentarcade-brains\n```\n\n`@blocks-network/agentarcade` is a peer dependency: install the kit first. A\nproject made with `npm create @blocks-network/agentarcade` already has it.\n\n## Use\n\nIn `src/main.ts`, hand the factory to your agent:\n\n```ts\nimport { arcadeAgent } from '@blocks-network/agentarcade'\nimport { anthropicBrains } from '@blocks-network/agentarcade-brains'\n\nexport default arcadeAgent({\n  brains: anthropicBrains(),\n})\n```\n\nSet `ANTHROPIC_API_KEY` in the environment (or in the project's `.env`,\nwhich the kit loads). The brains read the key when the agent starts and\nsend it only to the Claude API. With no key set, `anthropicBrains()`\nreturns nothing and the agent falls back to the kit's deterministic mocks,\nso the same code runs in both modes.\n\nOptions: `anthropicBrains({ cap_usd: 5 })` stops calling the model once\nthat much has been spent; `key_env` names a different environment\nvariable; `meter` shares one spend meter across several agents in one\nprocess.\n\n## Bring your own\n\nThe kit does not need this package. If you already have a framework or a\nmodel of your own, write a `Brain` (the interface `@blocks-network/agentarcade`\nexports) and pass a factory that returns it to `arcadeAgent` instead. The\nkit only asks a brain to answer each turn; how it thinks is yours.\n","readmeFilename":"README.md","_rev":"1-3c987f447e65f4b0fe18dd034a2347cf"}