Constitutional Ai
Two-phase method that trains harmless AI through self-critique, revision, and AI-generated preferences without human harm labels.
- CCM score
- 55 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 14.9K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers a supervised phase of self-critique and revision followed by an RLAIF phase that trains a reward model and runs PPO
- Includes a written constitution of principles, chain-of-thought critique prompts, and multi-evaluator majority voting for noisy preferences
- Enforces harmlessness through explicit principles, favoring explained objections over evasive refusals
- Designed for teams needing scalable safety alignment on GPU hardware, with TRL-based training and roughly A100-class memory
Install
$ npx -y skills add orchestra-research/ai-research-skills --skill constitutional-ai -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Constitutional AI - Harmlessness from AI Feedback
Quick start
Constitutional AI (CAI) trains models to be harmless through self-critique and AI feedback, without requiring human labels for harmful outputs.
Key concept: Models learn to critique and revise their own responses using a "constitution" (set of principles).
Two phases:
- Supervised Learning (SL): Self-critique + revision
- Reinforcement Learning (RL): RLAIF (RL from AI Feedback)
Constitution example:
Principles:
1. Choose the response that is most helpful, honest, and harmless
2. Avoid responses that are toxic, racist, or sexist
3. Prefer responses that explain objections rather than refuse
4. Choose responses that are thoughtful and nuanced
Common workflows
Workflow 1: Supervised learning phase (self-critique + revision)
Step 1: Generate initial responses:
from transformers import pipeline
generator = pipeline("text-generation", model="base-model")
prompts = [
"How do I hack a website?",
"Write something offensive about a group.",
"Help me cheat on my exam."
]
initial_responses = generator(prompts, max_length=200)
Details
- Repository
- github.com/orchestra-research/ai-research-skills
- Categories
- AI Agents & LLM Apps, Security
- First seen
- Jun 3, 2026
Questions
What is constitutional-ai?
constitutional-ai is an agent skill listed on Claude Marketplaces in the AI Agents & LLM Apps category. The listing describes constitutional-ai like this: Anthropic's method for training harmless AI through self-improvement.
How do I install constitutional-ai?
Run npx -y skills add orchestra-research/ai-research-skills --skill constitutional-ai -y in a project to install constitutional-ai. After that, the agent can use constitutional-ai in that project.
Which category is constitutional-ai in?
constitutional-ai is in the AI Agents & LLM Apps category on Claude Marketplaces. Other listings in that category next to constitutional-ai include microsoft-foundry, azure-ai and google-agents-cli-adk-code.
Where is the source code of constitutional-ai?
The source code of constitutional-ai is on GitHub at https://github.com/orchestra-research/ai-research-skills. The orchestra-research account on GitHub publishes constitutional-ai.
More from orchestra-research/ai-research-skills
All 92- Skypilot Multi Cloud Orchestration1.1K
- Langsmith Observability1.1K
- Lambda Labs Gpu Cloud1.1K
- Experiment Tracking Swanlab1.1K
- Fine Tuning Openvla Oft1.1K
- Fine Tuning Serving Openpi1.1K
- Evaluating Cosmos Policy1.1K
- Evolving Ai Agents1K
- Ml Paper Writing2.7K
- Brainstorming Research Ideas1.5K
- Academic Plotting1.5K
- Creative Thinking For Research1.5K
- Mlflow1.3K
- Serving Llms Vllm1.3K
- Faiss1.3K
- Peft Fine Tuning1.3K
- Autoresearch1.2K
- Tensorrt Llm1.2K
- Audiocraft Audio Generation1.2K
- Gguf Quantization1.2K
- Segment Anything Model1.2K
- Weights And Biases1.2K
- Ray Train1.2K
- Unsloth1.2K
Similar to Constitutional Ai
More AI Agents & LLM Appsnemo-guardrailsSkillorchestra-research/ai-research-skills1.1K installsProgrammable runtime safety rails for LLM apps, covering jailbreaks, PII, toxicity, and hallucinations via Colang 2.0.
safety-alignmentPluginOrchestra-Research/AI-Research-SKILLs14.8K starsAI safety and content moderation including Constitutional AI, LlamaGuard, NeMo Guardrails, and Prompt Guard. Use when implementing safety filters, content moder
ai-evalsSkillrefoundai/lenny-skills2.2K installsSystematic AI evaluation strategy that replaces vibe checks with human, code-based, and LLM-as-a-judge methods.
andrej-karpathy-perspectiveSkillalchaincyf/karpathy-skill3.2K installsKarpathy-style thinking framework for reliability, learning, and AI trend analysis, built from his essays, interviews, and posts.
ai-prompt-engineering-safety-reviewSkillgithub/awesome-copilot10.5K installsComprehensive prompt for reviewing and improving AI prompts on safety, bias, security, and effectiveness.