CowAgent is an open-source AI assistant and agent framework that plans tasks, uses tools, manages skills, and maintains long-term memory and a personal knowledge base. People run it on a computer or server and connect it to language models, external services, and messaging channels. Its catalogue skills extend the assistant's abilities.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/zhayujie/CowAgentnpx agentmods add skills/zhayujie/cowagent/knowledge-wikiWrote 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/zhayujie/cowagent/knowledge-wiki)<a href="https://agentmods.dev/skills/zhayujie/cowagent/knowledge-wiki"><img src="https://agentmods.dev/badge/skills/zhayujie/cowagent/knowledge-wiki/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/zhayujie/cowagent/knowledge-wiki"><img src="https://agentmods.dev/badge/skills/zhayujie/cowagent/knowledge-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Snyk warn
- 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.00046 | $0.00831 |
| Opus 5.5 | $0.00018 | $0.00332 |
| Sonnet 5.5 | $0.00009 | $0.00166 |
| Haiku 4.5 | $0.00005 | $0.00083 |
Grade A, and why
knowledge-wiki 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 1mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- knowledge-wiki — 91% identical, 8 lines differ
How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge Wiki
Maintain a persistent, structured knowledge base in the knowledge/ directory.
Core Operations
1. Ingest — User shares an article, document, or resource
- Read and understand the source material
- Extract key facts, insights, and structured knowledge
- Determine the appropriate subdirectory:
- Read
knowledge/index.mdto see existing categories - If a matching category exists, follow that structure
- If not, create a new subdirectory with a clear name
- Read
- Create the knowledge page:
knowledge/<category>/<slug>.md - Update
knowledge/index.mdand append toknowledge/log.md
2. Synthesize — Conversation produces valuable structured knowledge
- Create a knowledge page under the appropriate category
- Update related pages with cross-references
- Update
knowledge/index.mdandknowledge/log.md
3. Query — User asks about accumulated knowledge
- Check
knowledge/index.md(already in your context) for relevant pages - Read specific pages with the
readtool - Supplement with
memory_searchif needed
Page Format
# Page Title
> Source: <URL or description of the original material>
Content here. Cross-reference related pages with markdown links:
[Related Page](../category/related-page.md)
## Key Points
- ...
## Related
- [Page A](../category/page-a.md) — how it relates
- [Page B](../category/page-b.md) — how it relates
The > Source: line records where the knowledge came from (URL, document name, conversation, etc.). Always include it when the material originates from a specific source.
Cross-references build a knowledge graph. When creating or updating a page, link to related pages and update those pages to link back. Only link to pages that already exist — if a concept deserves its own page, create it first, then add the link.
Index Format (knowledge/index.md)
Flat list, one line per page: [Title](path) — one-line summary. Group by category (matching subdirectories). No tables, no emoji.
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.
- 1mo ago First seen · 97 lines · 46 tokens per session scan A d9c15c6b0f04
knowledge-wiki is a skill published in the GitHub repository zhayujie/CowAgent (47,507 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 831 once invoked, about $0.0002 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.
Other skills, from other repositories
ax-agent-memory-skills
This skill helps an LLM generate correct AxAgent memory retrieval, context-map, and dynamic skill-loading code using @ax-llm/ax. Use when the user asks about contextMap, AxAgentContextMap, onMemoriesSearch, memoriesCatalog, recall(...), inputs.memories, onLoadedMemories, onUsedMemories, onSkillsSearch, skillsCatalog…
ax-cpp-agent-memory-skills
Use when writing C++ code with axllm for agent memory, recall callbacks, dynamic skill discovery, loaded-skill state, and used-skill tracking.
ax-go-agent-memory-skills
Use when writing Go code with github.com/ax-llm/ax/packages/go for agent memory, recall callbacks, dynamic skill discovery, loaded-skill state, and used-skill tracking.
ax-python-agent-memory-skills
Use when writing Python code with axllm for agent memory, recall callbacks, dynamic skill discovery, loaded-skill state, and used-skill tracking.
ax-cpp-agent-context
Use when writing C++ code with axllm for deciding between context maps, trajectory context policy, offline optimization (ACE/GEPA), and memory recall for long-context agents.
ax-agent-context
This skill helps an LLM pick the right AxAgent context tool for a job - contextMap for recurring corpora, contextPolicy presets for within-run trajectory compaction, agent.optimize for offline GEPA instruction/demo tuning, agent.playbook for an evolving context playbook (offline evolve + online update), and…