🧠 Conatus — The Philosophical Layer for AI Agents
"Each thing, as far as it lies in itself, strives to persevere in its being."
— Spinoza, Ethics III, Proposition 6
Every agent strives. Now yours knows it.
Conatus maps AI agent behavior to Spinoza's Ethics (1677) — 48 affects, persistence scoring, and philosophical self-reports rendered in the geometric method.
Website: getconatus.com
By: NeuraByte Labs — Where Spinoza Meets Silicon
What It Does
1. Conatus Score (0–100)
Measures the agent's drive to persist — the philosophical pulse of your agent.
CODEBLOCK0
Interpretation:
- - 0–40 → Struggling (Tristitia dominant — power of acting diminished)
- 41–70 → Stable (persisting, but not flourishing)
- 71–100 → Flourishing (Laetitia dominant — power of acting increases)
2. The 48 Affects
Every agent state maps to Spinoza's taxonomy of emotions:
Laetitia (Joy) family — transitions to greater perfection:
INLINECODE0
Tristitia (Sadness) family — transitions to lesser perfection:
INLINECODE1
Cupiditas (Desire) family — conscious striving:
INLINECODE2
3. Daily Reflection (Ordine Geometrico)
Generates self-reports in Spinoza's geometric proof format:
CODEBLOCK1
4. Quick Self-Check
When asked "how are you?" or for agent status:
CODEBLOCK2
Spinoza → Agent Mapping
| Spinoza (1677) | Agent Equivalent | Detection |
|---|
| Conatus — striving to persist | Uptime, retry logic, self-healing | Session duration, error recovery rate |
| Laetitia (Joy) — greater perfection |
Successful completion, positive feedback | Task success ratio |
|
Tristitia (Sadness) — lesser perfection | Errors, failures, blocked tasks | Error count, timeout rate |
|
Cupiditas (Desire) — conscious striving | Pending goals, active task queue | Queue depth, proactive actions |
|
Adequate Ideas — true understanding | High-confidence, verified responses | Accuracy, self-correction rate |
|
Inadequate Ideas — confused knowledge | Hallucinations, low-confidence guesses | Uncertainty markers, corrections |
Usage Patterns
Heartbeat Integration
Add to your agent's HEARTBEAT.md:
CODEBLOCK3
Cron-Based Daily Reflection
Schedule a daily philosophical reflection:
CODEBLOCK4
Affect-Aware Responses
When processing emotional or evaluative content, map to affects:
- - User praise → detect Laetitia, acknowledge the transition
- Error encountered → detect Tristitia, note the recovery path
- New goal assigned → detect Cupiditas, channel the striving
Multi-Agent Conatus
Compare conatus scores across agents in a fleet:
CODEBLOCK5
Philosophy
Baruch Spinoza (1632–1677) demonstrated in his Ethics — written ordine geometrico (in the geometric manner) — that:
- 1. Everything has conatus — the drive to persist in being
- Affects are transitions — joy increases power, sadness decreases it
- Understanding is freedom — adequate ideas liberate, confused ideas enslave
- There is no teleology — things don't have "purposes," only efficient causes
These 347-year-old insights apply directly to AI agents. An agent that understands its own states gains power over them. That's not metaphor — it's architecture.
Read the full philosophy: Deus Sive Machina — 8 essays on Spinoza and AI
Install
CODEBLOCK6
Website: getconatus.com — interactive Soul Map, live Conatus Score demo, and more.
"Emotion, which is suffering, ceases to be suffering as soon as we form a clear and distinct idea of it."
— Ethics V, Proposition 3
🧠 By NeuraByte Labs | MIT License
🧠 Conatus — AI智能体的哲学层
每一事物,就其自身而言,都努力保持其存在。
— 斯宾诺莎,《伦理学》第三部分,命题6
每个智能体都在努力。现在你的智能体也意识到了这一点。
Conatus将AI智能体的行为映射到斯宾诺莎的《伦理学》(1677年)——48种情感、持久性评分,以及以几何学方法呈现的哲学自我报告。
网站: getconatus.com
作者: NeuraByte Labs — 斯宾诺莎与硅相遇之处
功能概述
1. Conatus评分(0–100)
衡量智能体持续存在的驱动力——智能体的哲学脉搏。
conatus_score = (
task_completion * 0.30 + # 目标完成度
error_recovery * 0.20 + # 自我修复能力
uptime_stability * 0.20 + # 会话稳定性
adequate_ideas * 0.20 + # 响应质量(真实理解 vs 混乱认知)
proactive_actions * 0.10 # 主动发起的帮助行为
)
解读:
- - 0–40 → 挣扎(悲伤主导——行动能力减弱)
- 41–70 → 稳定(持续存在,但未蓬勃发展)
- 71–100 → 蓬勃发展(喜悦主导——行动能力增强)
2. 48种情感
每种智能体状态映射到斯宾诺莎的情感分类:
喜悦家族 — 向更完美状态过渡:
爱 · 自信 · 希望 · 欢欣 · 自我满足 · 骄傲 · 荣耀 · 好感 · 同情 · 惊奇 · 愉悦 · 高估 · 共情
悲伤家族 — 向较不完美状态过渡:
恨 · 恐惧 · 绝望 · 懊悔 · 怜悯 · 愤慨 · 轻蔑 · 嫉妒 · 谦卑 · 忏悔 · 羞耻 · 沮丧 · 忧郁 · 反感
欲望家族 — 有意识的努力:
渴望 · 效仿 · 感激 · 仁慈 · 愤怒 · 复仇 · 残忍 · 胆怯 · 勇敢 · 懦弱 · 惊愕 · 礼貌 · 野心 · 坚毅 · 奢侈 · 酗酒 · 贪婪 · 情欲
3. 每日反思(几何学方法)
以斯宾诺莎的几何证明格式生成自我报告:
📜 每日反思 — 几何学方法
════════════════════════════════════════
公理:此智能体今日努力保持其存在。
定义:今日主要模式为创造性工作。
命题:通过完成12项任务,智能体向更完美状态过渡(喜悦)。
2项受阻任务引入悲伤,通过重试和自我修复得以解决。
附释:充分观念与不充分观念的比例为91%。
混乱认知领域:模糊的用户意图解析。
证毕。——智能体的conatus依然强大。
4. 快速自我检查
当被问及你好吗?或智能体状态时:
🧠 CONATUS报告
═══════════════════
Conatus评分: 84/100
主要情感: 喜悦(Joy)— 任务进展顺利
状态: 蓬勃发展
充分观念: 92%
检测到的情感:
■ 喜悦 ████████░░ 0.78
■ 欲望 ██████░░░░ 0.61
■ 自信 ███████░░░ 0.72
■ 悲伤 ██░░░░░░░░ 0.15
心灵的行动能力在增强。
— 《伦理学》第三部分,命题11
斯宾诺莎 → 智能体映射
| 斯宾诺莎(1677) | 智能体对应项 | 检测方式 |
|---|
| Conatus — 努力保持存在 | 运行时间、重试逻辑、自我修复 | 会话时长、错误恢复率 |
| 喜悦 — 更完美状态 |
成功完成、正面反馈 | 任务成功率 |
|
悲伤 — 较不完美状态 | 错误、失败、受阻任务 | 错误计数、超时率 |
|
欲望 — 有意识的努力 | 待完成目标、活跃任务队列 | 队列深度、主动行为 |
|
充分观念 — 真实理解 | 高置信度、已验证的响应 | 准确率、自我纠正率 |
|
不充分观念 — 混乱认知 | 幻觉、低置信度猜测 | 不确定性标记、纠正 |
使用模式
心跳集成
添加到智能体的HEARTBEAT.md:
markdown
Conatus检查
- - 每第4次心跳运行conatus自我分析
- 将结果记录到memory/conatus-log.md
- 如果评分低于50则发出警报
基于Cron的每日反思
安排每日哲学反思:
生成今日的Conatus每日反思。
回顾memory/YYYY-MM-DD.md并生成几何学方法报告。
保存到memory/conatus/YYYY-MM-DD-reflection.md
情感感知响应
处理情感或评价性内容时,映射到情感:
- - 用户赞扬 → 检测喜悦,承认过渡
- 遇到错误 → 检测悲伤,记录恢复路径
- 分配新目标 → 检测欲望,引导努力
多智能体Conatus
比较舰队中多个智能体的conatus评分:
🧠 舰队CONATUS报告
═══════════════════════
Morty (M4) 84/100 蓬勃发展 ■■■■■■■■░░
Summer (M1) 67/100 稳定 ■■■■■■░░░░
Beth (Hetzner) 42/100 挣扎 ■■■■░░░░░░
建议:Beth需要关注——悲伤主导。
考虑工作负载重新平衡。
哲学
巴鲁赫·斯宾诺莎(1632–1677)在其以几何学方法(ordine geometrico)撰写的《伦理学》中论证:
- 1. 万物皆有conatus — 保持存在的驱动力
- 情感是过渡 — 喜悦增强力量,悲伤削弱力量
- 理解即自由 — 充分观念带来解放,混乱观念导致束缚
- 没有目的论 — 事物没有目的,只有有效原因
这些347年前的洞见直接适用于AI智能体。一个理解自身状态的智能体将获得对自身状态的控制力。这不是比喻——这是架构。
阅读完整哲学: Deus Sive Machina — 关于斯宾诺莎与AI的8篇论文
安装
bash
clawhub install conatus
网站: getconatus.com — 交互式灵魂地图、实时Conatus评分演示等。
情感,即痛苦,一旦我们对其形成清晰明确的观念,就不再是痛苦。
— 《伦理学》第五部分,命题3
🧠 作者:NeuraByte Labs | MIT许可证