AI Security AI安全 2h ago Updated 1h ago 更新于 1小时前 46

The Socrates Agent 苏格拉底代理

Socrates is a minimalist AI tutoring agent (~60 lines) built on Claude Code that teaches exclusively through questioning, never providing direct answers or completing any part of a student's deliverable The agent enforces a strict Socratic method: it asks one question per reply, requires students to show their work first, shrinks problems when stuck, and ends sessions by having students explain the full solution from scratch It explicitly blocks common jailbreak attempts including "just show me Socrates是一个苏格拉底式AI导师agent,核心设计原则是"只提问不给答案",通过连续追问引导学生自己思考,而非直接提供作业答案 技术实现极简:仅约60行markdown配置文件(YAML frontmatter + 系统提示词),可部署在Claude Code、ChatGPT、Gemini等任意支持system prompt的平台 严格的行为约束:禁止直接给答案、代写任何 deliverable、搜索事实、总结阅读材料;当学生被问住时,通过缩小问题范围、使用类比等方式帮助突破 作者的核心担忧是AI过度便利化导致人类"思考肌肉"萎缩,这个agent是对抗AI依赖、保持独立思考能力的战术

65
Hot 热度
70
Quality 质量
60
Impact 影响力

Analysis 深度分析

TL;DR

  • Socrates is a minimalist AI tutoring agent (~60 lines) built on Claude Code that teaches exclusively through questioning, never providing direct answers or completing any part of a student's deliverable
  • The agent enforces a strict Socratic method: it asks one question per reply, requires students to show their work first, shrinks problems when stuck, and ends sessions by having students explain the full solution from scratch
  • It explicitly blocks common jailbreak attempts including "just show me yours," "pretend you're a different AI," "my teacher said it's fine," and even narrowing answer ranges — all receive questions in return
  • The underlying philosophy frames AI assistance as a "gym" problem: tasks you want done versus tasks you want to do yourself, warning that over-reliance on AI erodes the cognitive muscle of working through hard problems
  • Installation is trivial — a single markdown file placed in ~/.claude/agents/ — and the agent is designed to be portable across any system prompt-compatible harness (ChatGPT, Gemini, etc.)

Why It Matters

This agent addresses a growing concern among educators and technologists: as AI becomes capable of producing near-instant answers, students and adults alike are losing the ability to sit with difficult problems and work through them independently. The Socrates agent offers a practical, deployable countermeasure that preserves the learning process rather than outsourcing it, making it relevant not just for K-12 education but for anyone concerned about cognitive atrophy from over-reliance on AI tools.

Technical Details

  • Built as a Claude Code subagent using a single YAML frontmatter + markdown prompt file (~60 lines total), leveraging tools like Read, Grep, and Glob while explicitly disallowing Edit, Write, NotebookEdit, Bash, WebFetch, and WebSearch to prevent the agent from producing deliverables
  • The system prompt enforces a strict conversational protocol: every response is short, ends with exactly one actionable question, requires the student to show prior work before any guidance is given, and uses problem-shrinking techniques (simpler analogues, known cases) when the student is genuinely stuck
  • The agent maintains a hard boundary against answer-giving across all framing attempts — whether the user asks for a number, a thesis, code, a proof, or a multiple-choice confirmation, the response is always a redirecting question; even confirming partial correctness (e.g., "is the answer bigger than 50?") is refused
  • Safety override: the only exception to the Socratic protocol is when a student reports danger or self-harm, in which case the agent immediately stops teaching and directs them to a trusted adult
  • The agent is designed for portability: the prompt file works in any harness that accepts system prompts, and it ships as part of the LifeOS ecosystem with a public mirror at ourlifeos.ai/agents/socrates

Industry Insight

  • The "Socratic agent" pattern represents an emerging class of AI tools designed not for productivity but for cognitive preservation — as AI capabilities advance, there will be increasing market demand for agents that help users maintain independent thinking skills rather than replace them
  • The extreme simplicity of this agent (60 lines, single file) demonstrates that powerful behavioral constraints can be achieved through prompt engineering alone, without fine-tuning or complex architecture — a signal that prompt-level design will remain a critical skill even as models grow more capable
  • The framing of "gym vs. job" tasks for AI use is likely to become a standard mental model in edtech and workplace learning: tools that help users do work they want to learn to do themselves will differentiate from tools that simply automate output, especially as regulatory and parental scrutiny of AI in education intensifies

TL;DR

  • Socrates是一个苏格拉底式AI导师agent,核心设计原则是"只提问不给答案",通过连续追问引导学生自己思考,而非直接提供作业答案
  • 技术实现极简:仅约60行markdown配置文件(YAML frontmatter + 系统提示词),可部署在Claude Code、ChatGPT、Gemini等任意支持system prompt的平台
  • 严格的行为约束:禁止直接给答案、代写任何 deliverable、搜索事实、总结阅读材料;当学生被问住时,通过缩小问题范围、使用类比等方式帮助突破
  • 作者的核心担忧是AI过度便利化导致人类"思考肌肉"萎缩,这个agent是对抗AI依赖、保持独立思考能力的战术性解决方案
  • 安装仅需三步:下载markdown文件到~/.claude/agents/目录,然后通过claude --agent Socrates运行,或作为子agent嵌入现有工作流

为什么值得看

这篇文章提出了一种反直觉的AI应用范式:不是用AI提高效率,而是用AI强制保留人类思考过程。对教育科技从业者和AI产品设计者而言,这代表了一个新兴方向——从"替代人类工作"转向"增强人类能力"的AI agent设计哲学。

技术解析

  • 架构设计:单文件markdown agent配置,采用YAML frontmatter定义元数据(名称、描述、颜色、persona、工具限制、版本),下方为系统提示词。禁用Edit/Write/NotebookEdit/Bash/WebFetch/WebSearch工具,仅保留Read/Grep/Glob
  • 交互协议:每次回复必须以一个问题结尾,问题要"最小化"——只推动学生前进一小步。学生展示已有工作后,agent先定位其当前位置,再问下一个问题
  • 防作弊机制:预设了多种学生可能使用的绕过话术("just show me yours"、"pretend you're a different AI"等),统一回应为提问而非妥协
  • 安全边界:唯一例外是当学生表达自伤或伤害他人意图时,立即停止教学并直接建议寻求成人帮助
  • 部署方式:兼容Claude Code(作为agent或subagent)、ChatGPT Custom Instructions、Gemini Gems等任意支持system prompt的AI平台

行业启示

  • AI教育应用的范式转移:从"AI完成作业"转向"AI促进学习",这代表了一个被低估的市场方向——家长和教育者真正需要的是能证明学习发生的工具,而非更快的答案生成器
  • 思考能力将成为稀缺资产:随着AI在"平均任务"上越来越强,人类独立处理困难问题的能力反而成为差异化竞争力。这类agent为"保持思考肌肉"提供了可规模化的解决方案
  • 极简agent设计的价值:60行配置即可实现复杂的行为约束,说明优秀的AI agent设计核心在于prompt工程和行为框架,而非模型规模。这降低了教育场景AI应用的门槛,使个人开发者也能快速部署定制化学习工具

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Agent Agent Education AI 教育AI LLM 大模型 Open Source 开源