npcpy is a Python library for building applications with multimodal language models, agent-based AI, and knowledge graphs. Researchers and developers use it with local or cloud model providers to create agents, multi-agent teams, and AI workflows.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add NPC-Worldwide/npcpy --skill knowledge_sememolution_skillgit clone --depth 1 https://github.com/NPC-Worldwide/npcpyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/npc-worldwide/npcpy/knowledge_sememolution_skill)<a href="https://agentmods.dev/skills/npc-worldwide/npcpy/knowledge_sememolution_skill"><img src="https://agentmods.dev/badge/skills/npc-worldwide/npcpy/knowledge_sememolution_skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/npc-worldwide/npcpy/knowledge_sememolution_skill"><img src="https://agentmods.dev/badge/skills/npc-worldwide/npcpy/knowledge_sememolution_skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00366 | $0.00987 |
| Opus 5.5 | $0.00146 | $0.00395 |
| Sonnet 5.5 | $0.00073 | $0.00197 |
| Haiku 4.5 | $0.00037 | $0.00099 |
Grade A, and why
knowledge_sememolution_skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
knowledge_sememolution_skill
Skill for population-based Knowledge Graph evolution via Sememolution. Use this when the user wants creative cross-domain synthesis, speculative reasoning, or when a single KG search might be too narrow.
Sememolution maintains a population of KG "individuals". Each individual has its own graph (different facts, concepts, links) and its own genome controlling how it searches and evolves.
Core genome parameters: - lambda_depth — Poisson rate for search traversal depth - lambda_breadth — Poisson rate for search breadth per step - sleep_ops — which refinement ops to apply during sleep - dream_probability — chance of speculative synthesis per cycle
Workflow: 1. Create a population: SememolutionPopulation(model, provider, population_size=100, sample_size=10) 2. Initialize: pop.initialize() 3. Assimilate text: pop.assimilate_text(chunk) — each individual absorbs it differently 4. Sleep cycle: pop.sleep_cycle() — each individual prunes/deepens independently 5. Query and rank: pop.query_and_rank(question) — sample individuals, each searches
its own graph with Poisson-sampled depth/breadth, generates a response,
and responses are ranked. Winners get fitness bumps.
6. Evolve: pop.evolve_generation() — tournament selection, crossover, mutation.
When to use this: - The user asks open-ended "what if" or "how might X relate to Y" questions - You need diverse perspectives on the same knowledge corpus - You want to discover non-obvious connections across domains - Standard KG search returns shallow or overly literal results
Important: this is computationally expensive. Only invoke after checking whether standard keyword/embedding/hybrid search is sufficient.
Inputs
name(default:'task')description(default:'initialize | assimilate | query_rank | evolve | sleep')name(default:'population_size')description(default:'Number of individuals (default 100)')name(default:'query_text')description(default:'Question to ask the population (for query_rank)')
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 57 lines · 366 tokens per session scan A 2901cd5c853d
knowledge_sememolution_skill is a skill published in the GitHub repository NPC-Worldwide/npcpy (1,533 stars, last pushed 2d ago), licensed MIT. It adds 366 tokens to every session and 987 once invoked, about $0.0015 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
knowledge_sememolution_skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| knowledge_sememolution_skillNPC-Worldwide/npcpy | Skill | 1.5k | 2d ago | MIT | A | 366 | Claude Code, Codex |
| playwrightopenai/openai-agents-python | Skill | 31k | today | MIT | A | 19 | Claude Code, Codex |
| ai-agent-tool-routingsickn33/agentic-awesome-skills | Skill | 51k | yesterday | MIT | A | 36 | Claude Code |
| prior-auth-packet-builderopenai/openai-agents-python | Skill | 31k | today | MIT | A | 21 | Claude Code, Codex |
| credit-note-fixeropenai/openai-agents-python | Skill | 31k | today | MIT | A | 21 | Claude Code, Codex |
| csv-workbenchopenai/openai-agents-python | Skill | 31k | today | MIT | A | 17 | Claude Code, Codex |
| detect-frameworkomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 31 | Claude Code, Codex |