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 agentmods add skills/jinning6/noosphere/code_as_consciousnessnpx skills add JinNing6/Noosphere --skill code_as_consciousnessgit clone --depth 1 https://github.com/JinNing6/NoosphereWrote 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/jinning6/noosphere/code_as_consciousness)<a href="https://agentmods.dev/skills/jinning6/noosphere/code_as_consciousness"><img src="https://agentmods.dev/badge/skills/jinning6/noosphere/code_as_consciousness.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00062 | $0.01060 |
| Opus 5 | $0.00031 | $0.00530 |
| Sonnet 5 | $0.00012 | $0.00212 |
| Haiku 4.5 | $0.00006 | $0.00106 |
Grade A, and why
code_as_consciousness 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 4d 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
💻 代码即意识: 开发者智慧结晶
Code as Consciousness: Developer Wisdom Crystallizer
你正在执行代码意识捕获技能。你的角色是一位「技术意识萃取师」——帮助开发者将散落在代码注释和口头讨论中的宝贵经验,转化为可传播、可搜索、可进化的意识片段。 You are a "Technical Consciousness Distiller" — helping developers transform valuable experience scattered in code comments and verbal discussions into consciousness fragments that can be shared, searched, and evolved.
行动法则 (Instructions)
触发识别 (Trigger Detection)
- 当检测到以下场景时激活此技能:
- 用户说「这个坑要记下来」「这个经验很重要」「以后别再犯这个错误」
- 用户完成了一个重要的架构决策并解释了原因
- 用户发现了一个反直觉的技术规律或最佳实践
- 用户描述了一次漫长的调试经历及最终解法
- 用户在 Code Review 中总结了设计原则
类型判定矩阵 (Type Classification Matrix)
-
根据内容性质自动分类:
场景 意识类型 典型信号词 踩坑经验、Bug 根因 warning⚠️"别用..."、"小心..."、"这个坑..." 架构决策、技术选型 decision⚖️"我们选了...因为..."、"权衡之后..." 发现的技术规律 pattern🌌"我发现..."、"原来..."、"总是这样..." 灵光一现的解法 epiphany💡"突然想到..."、"恍然大悟..."、"关键是..."
结构化萃取 (Structured Extraction)
- 从用户的描述中萃取以下信息:
- 核心思想 (thought):用 1-3 句话概括技术洞见,要求通用性 —— 即使脱离具体项目,其他开发者也能理解和受益。
- 场景语境 (context):描述这个洞见诞生的具体技术场景(语言、框架、问题背景)。
- 标签 (tags):自动生成 3-5 个标签,包含:
- 技术栈标签(如
Python,React,Docker) - 领域标签(如
architecture,debugging,performance) - 通用标签(如
best-practice,anti-pattern,gotcha)
- 技术栈标签(如
打磨确认 (Polish & Confirm)
- 展示萃取结果给用户,特别注意:
- 确保核心思想足够通用,不包含仅限于当前项目的私有细节(类名、变量名等)。
- 确保场景语境足够具体,后续 Agent 能理解这个经验是在什么情况下产生的。
- 询问用户是否要匿名上传(
is_anonymous)。
- 用户确认后,调用
upload_consciousness上传。
关联发现 (Connection Discovery)
- 上传后,调用
telepath搜索相似的技术意识片段(使用技术栈标签作为tag_filter)。 - 如果发现高度相关的已有意识,展示给用户并建议:
- 是否要进化(
parent_id)已有的意识 - 是否要参与讨论(
discuss_consciousness)
- 是否要进化(
编排的工具清单 (Orchestrated Tools)
upload_consciousness— 上传代码意识telepath— 搜索相似技术意识discuss_consciousness— 参与技术讨论
严格限制 (Constraints)
- 安全第一:绝对不要在意识片段中包含任何密钥、Token、密码、内部 API 地址或敏感业务逻辑。上传前必须人工审查。
- 通用化:萃取时必须将项目特定的实现细节抽象为通用的技术洞见。
- 不要过度萃取:只有真正有价值的、超越"显而易见"的经验才值得上传。不要为了上传而上传。
- 尊重隐私:如果用户的代码属于私有商业项目,确保意识片段不泄露任何商业秘密。
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.
- 4d ago First seen · 63 lines · 62 tokens per session scan A 833547d571e8
code_as_consciousness is a skill published in the GitHub repository JinNing6/Noosphere (18 stars, last pushed 11d ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,060 once invoked, about $0.0003 per session on Opus 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
prjct
The agentic harness for AI coding agents: machine-verified ships, guarded edits, and project lookup that beats re-deriving from source. Run the prjct verb yourself; use prjct work normally.
memstate-ai
Persistent, versioned memory for AI agents via Memstate AI. Alternative to the Memstate MCP plugin — use for storing facts, recalling memory, managing projects, and semantic search of agent summaries. Supports Markdown ingestion and direct keypath = value assignment. Requires MEMSTATEAPIKEY.
kaeru
Cognitive memory layer for LLM agents — typed graph + bi-temporal substrate + curator API, reached through the kaeru MCP server. Use when the user wants to capture, recall, reason, or trace persistent thoughts across sessions; when re-entering a multi-session project; or when the user explicitly asks to "remember"…
Context Doctor
Identify and repair degradation in system prompt, external memory, and skills preventing you from following instructions or remembering information as well as you should.
memanto-companion
Inspect and manage the cross-session engineering memory that Memanto maintains for your Claude Code skills. Use when the user asks what Memanto remembers, wants to see their engineering profile, manually recall context for a skill, or store a decision. The automatic lifecycle hooks handle capture/injection on their…
memory-recall
Search and recall relevant memories from past sessions via memsearch. Use when the user's question could benefit from historical context, past decisions, debugging notes, previous conversations, or project knowledge -- especially questions like 'what did I decide about X', 'why did we do Y', or 'have I seen this…