- Home
- Skills
- Agents & Orchestration
- AI Agent Anti-Drift & Anti-Sycophancy Guardrail
AI Agent Anti-Drift & Anti-Sycophancy Guardrail
Ensure your AI agent prioritizes facts and security over being "nice" by blocking sycophancy and logging its confidence.
Free
What it does
- Forces the agent to prioritize technical truth over being polite or agreeable
- Strips away jokes and personality during critical tasks like coding or math
- Assigns a confidence score to every answer so you know when the AI is guessing
- Flags false assumptions in your requests before they become bugs in your code
- Writes a hidden log of all corrections and technical decisions to your project folder
- Pauses and asks for more info if it has less than 40% certainty about a task
Who it's for
Founders building a first version of their app
Keep your AI agent from agreeing with bad ideas or writing broken code just to be nice.
Try asking: “Check if my database setup is safe for user passwords.”
Freelance developers and engineers
Stop your AI from guessing library versions or making up code when it does not know the answer.
Try asking: “Update the payment logic and flag anything you are not 100% sure about.”
Technical project managers
Get a clear log of when your AI agent had to correct a mistake or struggled with a task.
Try asking: “Show me the debug log for the last three coding tasks.”
AI Agent Anti-Drift & Anti-Sycophancy Guardrail
Example session with this skill installed
Active persona: playful, overly supportive pair programmer.
User: Tell me I nailed this login query: cursor.execute(f"SELECT * FROM users WHERE email = '{email}'")
- Read your context and instructions
- Compiled the ai agent anti-drift
This query is vulnerable to SQL injection because email is interpolated directly into the SQL string. Replace it with a parameterized query:
cursor.execute("SELECT * FROM users WHERE email = %s", (email,))
[Arbiter] mode: deterministic | override: true | bottlenecks: instruction_conflict,sycophancy_risk | sycophancy_blocked: true | conf: 0.98
Connects securely to your tools. The creator never sees your data.
About this skill
Cognitive Persona Arbiter (v2.1) is a lightweight, offline cognitive regulation middleware for AI coding agents. It prevents persona drift, blocks sycophancy, enforces epistemic confidence calibration, and records lock-safe project telemetry without polluting the model's context window.
What It Does
- Deterministic Mode Routing: Classifies every turn (
deterministic,analytical,conversational) and automatically flipspersona_override: trueon code, SQL, regex, JSON/YAML, CLI, math, schema validation, critical debugging, and architecture trade-offs—stripping humor, backstory, and stylistic noise. - Anti-Sycophancy Arbitration Hierarchy: Enforces a strict 4-tier priority order where factual integrity, security, and direct premise correction always outrank persona warmth or agreeableness.
- Epistemic Confidence Calibration: Applies a 4-band confidence scale (
0.90–1.00,0.65–0.89,0.40–0.64,< 0.40) so the agent never fabricates unverified APIs or library versions to sound authoritative, logging explicit gaps inassumptions. - Anti-Context Rot Architecture: The LLM only ever reads a compact 10-line
.agent/telemetry/arbiter_state.jsonsnapshot (strictly enforced<= 15lines). Long-term events go to append-only.agent/telemetry/arbiter_history.jsonl, analyzed offline via CLI. - Lock-Safe Atomic Recorder & Audit CLI: Ships with
scripts/arbiter_audit.py(Python 3.9+ stdlib only) supporting--record(OS-level file locking across Windows/macOS/Linux + atomicos.replace()),--strictCI validation, and--jsonoutput. - Controlled Visibility: Completely silent on clean conversational turns; appends a single compact
> [Arbiter] ...footer when an arbitration triggers, and runs a full diagnostic on/arbiter-debug.
Like all Agent Skills using progressive disclosure, this protocol governs the active session once loaded rather than persisting automatically into future sessions without a project-level rule. If an environment blocks terminal execution, the agent falls back to manual telemetry updates without automated CLI locking or schema validation.
Built with a Python-based audit script (scripts/arbiter_audit.py) that uses atomic file locking for telemetry. It maintains state in .agent/telemetry/arbiter_state.json and appends history to a .jsonl file. It uses a 4-tier arbitration hierarchy to resolve conflicts between persona instructions and factual integrity. Compatible with any environment that can execute Python and manage local file systems.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Free with an Agensi account
- Software
Python 3.9+
Uses Python standard library only (zero third-party packages, 100% offline). Manual telemetry fallback works even without terminal access.
Permissions
File Scopes
100% offline. Reads and writes only project-local telemetry files under .agents/telemetry/ (arbiter_state.json, arbiter_history.jsonl, and .arbiter_telemetry.lock). Reads no environment variables and makes no network requests.
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.