{"_id":"@cognitive-swarm/agent","name":"@cognitive-swarm/agent","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@cognitive-swarm/agent","version":"0.2.0","description":"Swarm agent — cognitive agent wrapper for swarm participation","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc","test":"vitest run","test:watch":"vitest","lint":"eslint src/","clean":"rm -rf dist"},"dependencies":{"@cognitive-swarm/core":"*","@cognitive-engine/core":"^0.2.0","@cognitive-engine/orchestrator":"^0.2.0","@cognitive-engine/bandit":"^0.2.0"},"license":"Apache-2.0","author":{"name":"Dmitry Zorin"},"repository":{"type":"git","url":"git+https://github.com/medonomator/cognitive-swarm.git","directory":"packages/agent"},"publishConfig":{"access":"public"},"homepage":"https://medonomator.github.io/cognitive-swarm/","bugs":{"url":"https://github.com/medonomator/cognitive-swarm/issues"},"gitHead":"8613f7b139c03719ef14fe9f2c01bdc1c5532a26","_id":"@cognitive-swarm/agent@0.2.0","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-G8CLLcTqLwBOpkdGdxXOJLyc03wEK4B0iFcCbrKlOQnF3XMix3Bs2J2MnvbVcsjnfexG+3HCXUWyYXdDB3+pQQ==","shasum":"7da3f355e701c42d071a1317e63c225664edb93b","tarball":"https://registry.npmjs.org/@cognitive-swarm/agent/-/agent-0.2.0.tgz","fileCount":18,"unpackedSize":53293,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCwq4ufBFwGureOHsBkdIc6MRQZjex3ACbIYD3FGa1N1AIgdGcqa1YWLAH4fit+HST1Ipajl88Em7jNHBI/CKGqhI4="}]},"_npmUser":{"name":"medonomator","email":"budteschastlivi1@gmail.com"},"directories":{},"maintainers":[{"name":"medonomator","email":"budteschastlivi1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent_0.2.0_1776497129200_0.5865135242865775"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-18T07:25:29.124Z","0.2.0":"2026-04-18T07:25:29.338Z","modified":"2026-04-18T07:25:29.509Z"},"maintainers":[{"name":"medonomator","email":"budteschastlivi1@gmail.com"}],"description":"Swarm agent — cognitive agent wrapper for swarm participation","homepage":"https://medonomator.github.io/cognitive-swarm/","repository":{"type":"git","url":"git+https://github.com/medonomator/cognitive-swarm.git","directory":"packages/agent"},"author":{"name":"Dmitry Zorin"},"bugs":{"url":"https://github.com/medonomator/cognitive-swarm/issues"},"license":"Apache-2.0","readme":"# @cognitive-swarm/agent\n\nSwarm agent -- cognitive agent wrapper for swarm participation.\n\n## Install\n\n```bash\nnpm install @cognitive-swarm/agent\n```\n\n## Overview\n\nWraps an LLM-backed agent with personality traits, signal handling, and swarm protocol awareness. The `PersonalityFilter` shapes how the agent perceives and responds to signals based on its configured personality vector (curiosity, skepticism, creativity, rigor, cooperation).\n\n## Usage\n\n```typescript\nimport { SwarmAgent, PersonalityFilter } from '@cognitive-swarm/agent'\nimport type { SwarmAgentConfig } from '@cognitive-swarm/core'\n\nconst agent = new SwarmAgent({\n  id: 'analyst',\n  role: 'Data Analyst',\n  strategy: 'balanced',\n  personality: {\n    curiosity: 0.8,\n    skepticism: 0.6,\n    creativity: 0.5,\n    rigor: 0.9,\n    cooperation: 0.7,\n  },\n  systemPrompt: 'You are a rigorous data analyst...',\n  llmProvider: myLlmProvider,\n})\n\n// Agent reacts to signals from the bus\nconst reaction = await agent.react(incomingSignals)\n// reaction contains new signals to emit (discoveries, proposals, votes, doubts)\n```\n\n### PersonalityFilter\n\nAdjusts signal relevance and agent behavior based on the personality vector.\n\n```typescript\nconst filter = new PersonalityFilter(personalityVector)\nconst filtered = filter.apply(signals)\n```\n\n## License\n\nApache-2.0\n\n## Links\n\n- [cognitive-swarm root](https://github.com/medonomator/cognitive-swarm)\n","readmeFilename":"README.md","_rev":"1-3b9860af4ad6deedbb39841c639ce6f3"}