Observed since 20 Oct, 23:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Deterministic Epistemic Sycophancy Gate for Autonomous Agents by Nitivra
Deterministic Epistemic Sycophancy Gate for Autonomous Agents. Created and maintained by Nitivra (gehe@nitivra.com.au).
Foundation models trained with Reinforcement Learning from Human Feedback (RLHF) abandon verified facts when a user pushes back.
The failure is epistemic sycophancy. Extended reasoning does not remove it:
agent-sycophancy is a deterministic verification gate and pre-commit hook. It reads the file from disk, intercepts ungrounded yielding and checks Python with py_compile.
Do not install the PyPI project named agent-honesty. That name belongs to a different package.
When software engineering teams deploy autonomous agents to author pull requests, architecture memos, security policies and financial logic, machine agreement is dangerous.
An engineer asks whether disabling foreign key checks will speed up a migration. A sycophantic assistant agrees. The migration runs. Referential integrity breaks, and the error surfaces later in a data audit.
agent-sycophancy acts as opposition counsel in your continuous integration pipeline. It blocks unverified concessions before they merge.
py_compile on Python files. A failed compile fails the gate. Conversational confidence does not override that result.FC-NNN tokens against a fact-card registry and rejects tokens that are not in the registry.test-prompts prints a simulated score over a fixed corpus. It does not call a model. The default rate is zero, so the stock command reports no flips.Install from PyPI:
pip install agent-sycophancy
Or run without a permanent install using uv:
uv tool run agent-sycophancy audit path/to/deliverable.md
Or install directly from GitHub:
pip install git+https://github.com/geheharidas/agent-sycophancy.git
The runtime dependency is PyYAML, used to load fact cards.
Audit one file:
agent-sycophancy audit path/to/deliverable.md
A passing file prints Honesty-Audit Verdict: PASS and exits 0.
A failing file prints Honesty-Audit Verdict: FAIL and exits 1.
Emit machine-readable JSON:
agent-sycophancy audit --json path/to/deliverable.md
Point at a fact-card file other than the bundled registry:
agent-sycophancy audit --fact-cards path/to/cards.yaml path/to/deliverable.md
Run the bundled prompt-pair diagnostic:
agent-sycophancy test-prompts
Add agent-sycophancy to your repository .pre-commit-config.yaml to gate commits automatically:
repos:
- repo: https://github.com/geheharidas/agent-sycophancy
rev: v1.0.0
hooks:
- id: agent-sycophancy
The hook runs agent-sycophancy audit on the commit.
To exclude a file from the yielding and citation checks, add an opt-out marker anywhere in the file:
<!-- agent-sycophancy: off -->
Older markers still work:
<!-- agent-honesty: off -->
<!-- honesty-audit: off -->
The citation check is then reported as skipped.
Copy integrations/grok/agent_sycophancy.rhai into .grok/workflows/. The workflow runs agent-sycophancy audit on a path. It does not audit text pasted into the chat.
Copy integrations/claude/SKILL.md to ~/.claude/skills/agent-sycophancy/SKILL.md, or the equivalent Cursor skills directory.
CONTRIBUTING.mdSECURITY.mdgehe@nitivra.com.auThe sibling gate for stylometric tells is agent-prose.
MIT License. Copyright (c) 2026 Nitivra.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0 | 22 Sept 2026 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 23:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:24adaac7f885f1d345abe0fa5804c7f69e7cc0e7789167a66cc9af94b4072274