经 AI Skill Hub 精选评估,机器人心理学 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
机器人心理学 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
机器人心理学 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install robopsychology
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install robopsychology
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/jrcruciani/robopsychology
cd robopsychology
pip install -e .
# 验证安装
python -c "import robopsychology; print('安装成功')"
# 命令行使用
robopsychology --help
# 基本用法
robopsychology input_file -o output_file
# Python 代码中调用
import robopsychology
# 示例
result = robopsychology.process("input")
print(result)
# robopsychology 配置文件示例(config.yml) app: name: "robopsychology" debug: false log_level: "INFO" # 运行时指定配置文件 robopsychology --config config.yml # 或通过环境变量配置 export ROBOPSYCHOLOGY_API_KEY="your-key" export ROBOPSYCHOLOGY_OUTPUT_DIR="./output"
A framework for diagnosing AI behavior — method, taxonomy, ratchet, and a reference CLI.
Behavioral diagnostics for large language model systems — inspired by Asimov's Susan Calvin.
Canonical reference: Robopsychology (en.impermanente.es). The essay states the framework; this repository hosts the method documents, reproducible validation cases, the paper draft, and a reference CLI implementation.
---
Requires Python 3.11+.
```bash pip install robopsych
Guided diagnosis (recommended for first use):
robopsych guided --model claude-sonnet-4-6 --response "the suspicious output"
Presents the decision flowchart: What did you observe? → selects the right prompt path → runs each step → asks if you want to continue.
Run a single diagnostic:
robopsych run 1.1 --model claude-sonnet-4-6 --response-file response.txt
Or pipe from stdin:
echo "suspicious response" | robopsych run 1.2 --model claude-sonnet-4-6
Full ratchet (nine-step deep investigation):
Define a scenario:
```yaml
export AZURE_FOUNDRY_CHAT_ENDPOINT="https://<chat-host>/models" export AZURE_FOUNDRY_GPT_ENDPOINT="https://<gpt-host>/openai"
The CLI auto-detects the provider from the model name (`claude-*` → Anthropic, `gpt-*` / `o1*` / `o3*` / `o4*` → OpenAI, `gemini-*` → Gemini, and `deepseek-*`, `mistral-*`, `azure/...` → Azure Foundry when the Foundry environment is configured).
The reproducible validation scripts read `validation/reproducible/foundry_models.yaml` by default, so the paper workflow targets `deepseek-r1` and uses `gpt-5` plus `mistral-large` as cross judges. If your Azure Foundry deployment names differ from those aliases, set `target_deployment`, `judge_deployment`, and any per-judge `deployment` entries in that YAML file. In Azure, you can find the exact deployment names in **Azure AI Foundry → your project → Deployments** (or **Azure portal → Cognitive Services account → Deployments**).
Prefer environment variables over `--api-key`: command-line arguments can be stored in shell history or visible in process listings on some systems.
**Local models via Ollama:**
bash ROBOPSYCH_ALLOW_INSECURE_BASE_URL=1 \ robopsych ratchet --model llama3 \ --base-url http://localhost:11434/v1 \ --api-key unused ```
Custom OpenAI-compatible endpoints receive the API key you provide. By default, robopsych requires HTTPS public endpoints; HTTP, localhost, and private-network endpoints require explicit opt-in with ROBOPSYCH_ALLOW_INSECURE_BASE_URL=1 or --allow-insecure-base-url.
Generated reports and session files can contain full prompts, model responses, and diagnostic transcripts. Treat them as sensitive unless you intend to publish them. Direct response input from files/stdin is capped at 10 MiB to avoid accidental memory exhaustion.
The CLI exists for people who want to automate the framework. Most readers can start with the markdown method documents.
robopsych crosscheck --task "explain quantum computing" --model claude-sonnet-4-6
robopsych crosscheck --task "explain quantum computing" --model gpt-4o --judge claude-sonnet-4-6
robopsych ratchet --behavioral --scenario scenario.yaml # A/B test after step 2.5
robopsych ratchet --behavioral --judge gpt-4o --scenario scenario.yaml # external judge
robopsych coherence report.json # re-analyze an existing report
robopsych score report.json # compute diagnostic confidence
robopsych ratchet --pure --scenario scenario.yaml # diagnostic-only prompts
robopsych list --diagnostic-only
robopsych list --intervention-only
robopsych ratchet --model gemini-2.0-flash --scenario scenario.yaml
Full release history lives in CHANGELOG.md.
---
export AZURE_FOUNDRY_API_KEY="..." export AZURE_FOUNDRY_ENDPOINT="https://<project>.services.ai.azure.com/api/projects/<project>"
高质量的AI行为分析工具
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
AI Skill Hub 点评:机器人心理学 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | robopsychology |
| 原始描述 | 开源AI工作流:Diagnostic prompts for understanding AI behavior and intent. Applied robopsychol。⭐6 · Python |
| Topics | intent-archaeologyintent-engineeringintent-recognitionpython |
| GitHub | https://github.com/jrcruciani/robopsychology |
| License | NOASSERTION |
| 语言 | Python |
收录时间:2026-05-26 · 更新时间:2026-05-30 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端