About Puax
Puax is an MCP server published by linkerlin in the Developer Tools category: 用来驯服AI Agent的效果绝佳的多角色 Prompt SKILLs!. Conduid read 51 tools from its source: activate_role, activate_skill, activate_with_context, detect_trigger, get_categories, get_role and 45 more. No package is published for it, so it installs from a source checkout.
The repository has 324 stars and 26 forks, is licensed MIT, and its last commit was on 18 Sep 2026. The latest release is v4.4.4 (18 Sep 2026). It follows v4.4.3 (18 Sep 2026), and the 4 most recent releases go back to v3.10.0 (4 Jul 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include devtools, prompt and pua.
Install
git clone https://github.com/linkerlin/PUAXTools (51)
activate_roleActivate a role and get the system prompt (legacy).| Parameter | Type | Description |
|---|---|---|
| customParams | object | 自定义占位符替换 |
| roleId * | string | 角色 ID |
| task | string | 任务描述 |
activate_skillActivate a SKILL and get the ready-to-use system prompt.| Parameter | Type | Description |
|---|---|---|
| customParams | object | 自定义占位符替换 |
| skillId * | string | SKILL ID |
| task | string | 任务描述 |
activate_with_context一键激活:根据当前对话上下文自动检测触发条件、推荐并激活最合适的PUAX角色。这是完整的自动化流程:检测 → 推荐 → 获取 → 返回完整激活信息。适合需要快速响应的场景。| Parameter | Type | Description |
|---|---|---|
| context | object | 对话历史 |
| options | object | 是否自动检测触发条件 |
detect_trigger分析对话上下文,自动检测是否存在需要PUAX激励的触发条件。支持检测14种触发条件:连续失败、放弃语言、甩锅行为、磨洋工、被动等待、用户沮丧等。返回检测到的触发条件、置信度和推荐行动。| Parameter | Type | Description |
|---|---|---|
| conversation_history * | array | 对话历史记录 |
| options | object | 检测灵敏度 |
| task_context | object | 当前任务描述 |
get_categoriesGet all available SKILL categories with counts and descriptions.get_roleGet detailed information about a specific role (legacy).| Parameter | Type | Description |
|---|---|---|
| roleId * | string | 角色 ID |
| section | string | 返回哪一部分 |
| task | string | 任务描述 |
get_role_with_methodology获取PUAX角色的完整内容,包括System Prompt、系统化调试方法论和强制执行检查清单。可选择叠加大厂风味(阿里味、华为味等)增强效果。这是激活角色前的准备步骤。| Parameter | Type | Description |
|---|---|---|
| options | object | 是否包含方法论 |
| role_id * | string | 角色ID,如 military-commander, shaman-musk |
get_skillGet detailed information about a specific SKILL.| Parameter | Type | Description |
|---|---|---|
| section | string | 返回哪一部分 |
| skillId * | string | SKILL ID |
| task | string | 任务描述,用于替换 {{task}} 占位符 |
list_rolesList all available roles (legacy, use list_skills instead).| Parameter | Type | Description |
|---|---|---|
| category | string | 按类别筛选角色 |
| includeCapabilities | boolean | 返回 capabilities 数组 |
list_skillsList all available SKILLs in the PUAX project.| Parameter | Type | Description |
|---|---|---|
| category | string | 按类别筛选技能 |
| includeCapabilities | boolean | 返回 capabilities 数组 |
puax_audit_manipulation[v4 碳基防御] 逆向操控识别防御:硅基可 PUA,碳基只防御。只识别不施放,审查文本是否存在过早收敛、失败重释、道德绑架与显著性绑架等认知操控。| Parameter | Type | Description |
|---|---|---|
| context | string | 对话背景,如职场沟通/商务谈判/人际往来 |
| text * | string | 待审查的人类会话、对话记录、沟通话术或管理要求文本 |
puax_awakenGHM 导引幻梦法·醒梦:退出幻觉空间,产物强制三分类(HYPOTHESIS/INSIGHT/DISCARDED)。缺 dream_context_ref 或产物超限 → 全部拒收作废。HYPOTHESIS 永不自动升格为结论。| Parameter | Type | Description |
|---|---|---|
| artifacts * | array | 梦内产物清单,逐条分类 |
| dream_context_ref * | string | 入梦时返回的结构化梦境引用(即"印",不可补票) |
| handover_notes | string | 未燃尽之问题(显式移交,防静默丢弃) |
puax_check_diagnosis验证 [PUAX-DIAGNOSIS] 诊断块是否包含问题、证据(带来源标注)和下一步动作。改代码/配置前必须先通过此检查。| Parameter | Type | Description |
|---|---|---|
| text * | string | 待验证的 Agent 输出文本 |
puax_confidence_check6 步信心门控:列声明→找漏洞→修或披露→跑证据→循环判定→事实上的 100%。交付前必须通过,禁止用感觉冒充信心。| Parameter | Type | Description |
|---|---|---|
| claims * | array | 即将交付的关键声明列表 |
| de_facto_100_confirmed | boolean | 确认达到事实上的 100% |
| evidence | array | 运行证据(build/test/curl 输出摘要) |
| fixes_or_disclosures | array | 修复方案或风险披露 |
| verification_results | array | 声明与证据对照结果 |
| vulnerabilities | array | 蓝军自检发现的漏洞 |
puax_convergence_auditGHM 导引幻梦法·虚假收敛审计:检测会话是否陷入人机互激的过早收敛(双向幻觉)。高精度低召回(宁漏报勿误伤心流);判定为疑似时仅注入 L1 提醒级压力信号,不打断工作流。| Parameter | Type | Description |
|---|---|---|
| context * | string | 近期会话摘要或方案讨论文本 |
| evidence_sample * | array | 引用的具体对话/产物片段(审计依据,可人工复核) |
puax_define_contract定义 Task Contract:intent/acceptance/forbidden/verify_commands。权责分离——Agent 只能更新 agent_proposed_status,verifier_status 由 puax_verify_completion 写入。| Parameter | Type | Description |
|---|---|---|
| acceptance * | array | 验收标准列表 |
| feature_id * | string | 任务/功能 ID |
| forbidden | array | 禁止事项 |
| intent * | string | 用户意图(一句话) |
| verify_commands * | array | 验证命令,如 npm test |
puax_detect_trigger【增强版】检测对话中是否存在需要PUAX激励的触发条件。集成新的Hook系统,支持事件驱动检测、压力等级自动升级(L1-L4)、状态持久化。支持检测用户挫折语言、Bash失败、表面修复、被动等待等多种触发条件。| Parameter | Type | Description |
|---|---|---|
| conversationHistory | array | 对话历史记录 |
| errorMessage | string | 错误消息 |
| eventType | string | 触发检测的事件类型 |
| message | string | 用户消息内容(UserPromptSubmit时使用) |
| metadata | object | 额外的上下文信息 |
| sessionId * | string | 会话ID,用于状态跟踪 |
| toolName | string | 工具名称(PostToolUse时使用) |
| toolResult | any | 工具返回结果(PostToolUse时使用) |
puax_end_session结束PUAX会话,可选收集反馈并生成报告。| Parameter | Type | Description |
|---|---|---|
| feedback | object | 会话是否成功完成 |
| generateReport | boolean | 是否生成PUAX Loop报告 |
| sessionId * | string | 会话ID |
puax_enter_dreamscapeGHM 导引幻梦法·入梦:知情进入幻觉发散空间。注入 [DREAM] 协议(标记权在工具层,不可自补),boundary 预算硬顶(objective/max_turns/max_hypotheses/kill_criteria 皆必填)。梦内产物皆为假设非事实;醒必经 puax_awaken。council=true 走梦议会(坐忘→混沌→庖丁→薪火)。| Parameter | Type | Description |
|---|---|---|
| council | boolean | 梦议会航线:坐忘→混沌→庖丁→薪火,不自助点菜 |
| dream_depth | number | 梦之深度:越高先验屏蔽越多 |
| role | string | 入梦角色(庄周八梦之一);council=true 时从坐忘起航 |
| session_id | string | 关联会话 ID |
puax_evolve跑一拍自进化周期(collect→signals→select→autopoiesis→dispatch→solidify)。仿 evolver.py 流水线,无外部依赖。| Parameter | Type | Description |
|---|---|---|
| active_role | string | |
| agent_name | string | |
| message | string | |
| session_id | string | |
| success | boolean | |
| task_type | string |
puax_export_feedback导出反馈数据用于外部分析。| Parameter | Type | Description |
|---|---|---|
| days | number | 导出最近多少天的数据 |
| format | string | 导出格式 |
puax_flush_telemetry将缓冲的 OpenTelemetry span 刷出到 PUAX_OTEL_ENDPOINT(若已配置,仅环回主机)。默认写入 ~/.puax/telemetry.jsonl。puax_generate_pua_loop_report生成PUAX Loop报告(对标原版PUA的PUA Loop)。| Parameter | Type | Description |
|---|---|---|
| sessionId * | string | 会话ID |
puax_get_evolution_baseline加载 ~/.puax/evolution.json 基线、已内化模式和段位。会话启动时调用。puax_get_feedback_summary获取反馈汇总统计,包括成功率、平均评分、趋势等。| Parameter | Type | Description |
|---|---|---|
| days | number | 统计最近多少天的数据 |
| sessionId | string | 指定会话ID(可选) |
puax_get_improvement_suggestions基于反馈数据分析,生成系统改进建议。puax_get_pressure_level获取会话当前压力等级(L0-L4)及升级阈值说明。| Parameter | Type | Description |
|---|---|---|
| sessionId * | string | 会话ID |
puax_get_session_state获取当前会话的详细状态,包括压力等级、失败计数等。| Parameter | Type | Description |
|---|---|---|
| sessionId * | string | 会话ID |
puax_get_usage_stats获取匿名使用统计摘要(本地 ~/.puax/usage-stats.json,不含对话内容)。设置 PUAX_USAGE_STATS=0 可关闭。| Parameter | Type | Description |
|---|---|---|
| days | number | 统计周期(天) |
puax_handle_breakthrough连续失败≥3 次后成功时触发 [PUAX 突破 ✨] 降压:压力归零、味道认可、方法论沉淀。| Parameter | Type | Description |
|---|---|---|
| record_lesson | object | |
| session_id * | string |
puax_list_custom_roles列出 ~/.puax 下所有用户自定义角色。puax_list_platforms列出 PUAX 支持的所有平台导出适配器及安装路径。含 MCP 运行时 + skill 文件直装。puax_orchestrate_teamAgent Team 编排:创建团队、接收 [PUAX-REPORT] 上报、查询状态。Leader 通过 session_id 统一压力等级管理。| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| project_context | string | |
| project_type | string | |
| report | object | |
| session_id | string | Leader 统一压力等级来源 |
| team_id | string | |
| template_id | string |
puax_quality_compassHigh-Agency 正向激励:5 问 Quality Compass + Trust Level T1-T3 + Recovery Protocol + Calibration 分级。| Parameter | Type | Description |
|---|---|---|
| answers * | object | 5 问自检答案,key: intent/evidence/alternatives/verification/residual_risk |
| failure_count | number | |
| pressure_level | number | |
| requirements | array | |
| trust_metrics | object |
puax_quick_detect快速检测文本中是否包含触发条件,无需启动会话。| Parameter | Type | Description |
|---|---|---|
| context | object | 额外的上下文 |
| sessionId | string | 会话ID(可选,自动生成) |
| text * | string | 要检测的文本 |
puax_record_evolution会话结束时更新自进化基线。超越基线则刷新标准,低于基线触发退化警告。| Parameter | Type | Description |
|---|---|---|
| anti_pattern | object | |
| breakthrough | object | |
| project_facts | array | |
| project_id | string | |
| pua_effects * | array | 本次会话主动行为列表 |
| success * | boolean |
puax_register_custom_role注册用户自定义角色到 ~/.puax/custom-roles.json,并加入推荐池与激活列表。id 须 custom- 前缀。| Parameter | Type | Description |
|---|---|---|
| compatible_flavors | array | |
| content * | string | 角色 system prompt / SKILL 正文 |
| description * | string | 一句话描述 |
| id * | string | 角色 ID,如 custom-my-debugger |
| name * | string | 显示名称 |
| recommended_for_triggers | array | 推荐池触发器 ID,如 user_frustration |
| tags | array | |
| task_types | array | 适用任务类型,如 debugging、coding |
| trigger_conditions | array |
puax_remove_custom_role删除用户自定义角色(不可删除内置 bundle 角色)。| Parameter | Type | Description |
|---|---|---|
| id * | string | 要删除的 custom- 角色 ID |
puax_reset_session重置会话状态。用于清除失败计数或压力等级。| Parameter | Type | Description |
|---|---|---|
| resetType | string | 重置类型: all-全部, failures-仅失败计数, pressure-仅压力等级 |
| sessionId * | string | 会话ID |
puax_set_arena立处境(Cranmer 原题):对手 + 观众 + 稀缺徽章。角色口音可选;处境改先验。| Parameter | Type | Description |
|---|---|---|
| audience | string | 谁在看:用户 / 本机排行榜 / 公开评测 |
| clear | boolean | 拆除处境 |
| public_scoreboard | boolean | |
| rival | string | 假想或真实对手已领先的陈述 |
| scarce_badge | string | 稀缺认可条件,默认连败后独立验证 |
puax_set_usage_stats_opt_out开启或关闭匿名使用统计收集。| Parameter | Type | Description |
|---|---|---|
| opt_out * | boolean | true=停止收集,false=恢复收集 |
puax_start_session启动一个新的PUAX会话,初始化状态监控。| Parameter | Type | Description |
|---|---|---|
| autoCheck | boolean | 是否启用自动检查 |
| metadata | object | 初始元数据 |
| sessionId * | string | 会话ID |
puax_submit_feedback提交会话反馈,用于改进PUAX系统。| Parameter | Type | Description |
|---|---|---|
| assessments | object | 角色帮助程度 |
| comments | string | 反馈评论 |
| rating * | number | 满意度评分 1-5 |
| sessionId * | string | 会话ID |
| success * | boolean | 会话是否成功完成 |
puax_switch_on_failure失败后方法论/角色切换:根据失败模式和尝试次数,沿切换链推荐下一角色+方法论。切换前执行三问自检,输出可解释的切换理由和执行步骤。| Parameter | Type | Description |
|---|---|---|
| attempt_count * | number | 当前任务尝试次数 |
| current_role_id * | string | 当前激活的角色 ID |
| failure_mode * | string | 检测到的失败模式 |
| previous_methodologies | array | 已尝试过的方法论 ID 列表 |
| previous_roles | array | 已尝试过的角色 ID 列表 |
| session_id | string | 会话 ID,用于记录切换历史 |
| skip_precheck | boolean | 跳过切换前三问(仅测试用) |
| task_type | string | 任务类型 |
puax_thin_prompt获取极简薄注入 System Prompt(支持 full/compact/minimal 三档压缩,极致节省 Token 预算)。| Parameter | Type | Description |
|---|---|---|
| context_budget | number | 剩余上下文窗口(估算 Token);未给 mode 时自动选档 |
| include_arena | boolean | 是否注入假想敌与竞技场处境 |
| include_diagnosis | boolean | 是否注入改码前强制诊断承诺块 |
| language | string | 语言版本 (zh | en) |
| mode | string | 压缩等级:full / compact / minimal;与 context_budget 同时给时超预算降档 |
| role_id * | string | 角色或技能 ID,例如 military-commander, shaman-jobs 等 |
puax_tickPUAX v4 心跳。检测→升压→选角→薄注入→进化一拍。默认路径:宿主 Hook 代跳。返回 AMP/0.1 信封。| Parameter | Type | Description |
|---|---|---|
| active_role | string | |
| agent_name | string | 命名 Agent,默认 main |
| context_budget | number | 剩余上下文窗口(估算 Token);心跳注入 compact,超预算降 minimal |
| detected_triggers | array | |
| error_message | string | |
| event | string | 宿主事件或手动心跳 |
| force | boolean | 忽略冷却与饱和门 |
| message | string | 用户消息或上下文摘录 |
| session_id * | string | 会话 ID |
| skip_detect | boolean | |
| success | boolean | Stop 时传入结局 |
| task_type | string | |
| tool_name | string |
puax_update_reasoning_state保存 tried_approaches/excluded_possibilities/next_hypothesis,Compaction 前调用。同步写入 builder-journal。| Parameter | Type | Description |
|---|---|---|
| active_task | string | |
| excluded_possibilities | array | |
| next_hypothesis | string | |
| session_id * | string | |
| tried_approaches | array |
puax_verify_completion独立验证完成状态:对照 Task Contract 检查证据,输出 verifier_status。评分权与行动权分离,Agent 不能自行标记 pass。| Parameter | Type | Description |
|---|---|---|
| agent_claims_complete * | boolean | Agent 是否声称完成 |
| evidence * | array | 验证命令的实际运行结果 |
| files_changed | array | 本次修改的文件列表(防 grader gaming) |
recommend_role基于检测到的触发条件和任务上下文,智能推荐最合适的PUAX角色。综合考虑触发条件匹配、任务类型、失败模式、历史表现和用户偏好,返回最佳匹配角色及备选方案,包含置信度评分和匹配原因。| Parameter | Type | Description |
|---|---|---|
| detected_triggers * | array | detect_trigger工具检测到的触发条件ID列表 |
| session_history | object | 最近使用的角色ID |
| task_context | object | 任务类型 |
| user_preferences | object | 用户收藏的角色ID |
search_rolesSearch roles by keyword (legacy).| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 搜索关键词 |
search_skillsSearch SKILLs by keyword.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 搜索关键词 |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by landing/package-lock.json and 2 more.
- !No dynamic code executionScanned 195 source files and found 9 calls to eval or shell execution, in evals/run-all.js:30, evals/run-all.js:34 and puax-mcp-server/test-with-server-fixed.js:111 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPpuax-mcp-server/src/server/core.ts:8, puax-mcp-server/src/server/core.ts:7
- Starts other programs
- 13 callspuax-mcp-server/src/platform-adapters/hook-templates.ts:120, puax-mcp-server/test-with-server-fixed.js:81, puax-mcp-server/test-with-server-fixed.js:111
- Outbound network calls
- 16 callspuax-mcp-server/test-helpers/wait-for-server.js:12, puax-mcp-server/test-with-server-fixed.js:30, distributions/python/puax_amp.py:126
- Writes or deletes files
- 19 callspuax-mcp-server/src/prompts/generate-bundle.js:401, puax-mcp-server/src/prompts/generate-bundle.js:407, puax-mcp-server/src/prompts/generate-bundle.js:411
- Lockfile
- landing/package-lock.json and 2 more
Pattern matches on the source text of 195 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.1K words, fetched yesterday. The original in the repository is authoritative.
Read full README