Make Gemini code like Claude Models. Forces it to inspect files before editing, plan changes, test its work, and back up every “done” with actual evidence.
# Add to your Claude Code skills
git clone https://github.com/udaysharmadev/GravitasGravitas is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by udaysharmadev. Make Gemini code like Claude Models. Forces it to inspect files before editing, plan changes, test its work, and back up every “done” with actual evidence. It has 969 GitHub stars.
Gravitas's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/udaysharmadev/Gravitas" and add it to your Claude Code skills directory (see the Installation section above).
Gravitas is primarily written in Python. It is open-source under udaysharmadev on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Gravitas against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Make AI coding agents more reliable.
GRAVITAS is an open-source, model-agnostic reliability runtime for coding agents. It gives a task an explicit scope and acceptance criteria, checks tool actions against policy, records validator runs, and requires fresh evidence before verified completion.
GRAVITAS changes the engineering process, not model weights.
Open the full Star History chart.
Research preview: comparative performance is not yet measured.
Coding agents can edit files they have not inspected, make changes outside a task's intended scope, retry failed actions without changing their approach, or report completion using checks that ran before the last edit. GRAVITAS puts task requirements, policy decisions, executed checks, and their evidence in one workflow so the result can be inspected after the session.
A task contract names the objective, allowed write scope, acceptance criteria, and required validators. The policy engine checks actions before they run. Validators execute their declared commands, and the runtime records hash-linked evidence. The completion gate checks that required results are present, current, and tied to the task.
| # | Invariant | Runtime consequence |
|---|---|---|
| 1 | Ground before editing | Existing files must be read before they are changed. |
| 2 | Keep changes in scope | Writes outside the contract's declared scope are denied where the host exposes the action. |
| 3 | Verify the task | Each acceptance criterion needs a fresh PASS from its assigned validator. |
| 4 | Learn from failures | An identical failed action is blocked until its diagnosis, context, or strategy changes. |
| 5 | Satisfy the contract | Acceptance criteria and required validators gate completion. |
| 6 | Mark uncertainty | Missing or unverifiable evidence cannot be reported as a verified pass. |
Planning scales with task risk. gravitas decide --signals '{...}' emits a
machine-readable decision with reason codes. It can choose direct execution,
compact or deep planning, or a replan after new evidence.
GRAVITAS began with Gemini in Antigravity. The same task contract and policy model now support more than one host; each setup exposes a different level of mechanical enforcement.
The Core skill is the lightest setup. It supplies portable workflow guidance; it does not add host-level enforcement.
npx skills add udaysharmadev/Gravitas --skill gravitas --agent antigravity --yes
python3 .agents/skills/gravitas/scripts/doctor.py
Native adds hooks for action checks, evidence recording, and the completion gate.
git clone --depth 1 https://github.com/udaysharmadev/Gravitas.git
cd Gravitas
bash scripts/build-native-bundle.sh
agy plugin install "$PWD/dist/gravitas-antigravity"
agy plugin validate "$PWD/dist/gravitas-antigravity"
OpenCode adds a pre-action guard and permission profile. It does not have an automatic Stop completion gate.
cd your-project
gravitas init --host opencode --profile balanced
gravitas doctor
gravitas validators --root . --depth targeted
Installation, first-run setup, updates, and removal are documented in the installation guide, quickstart, and host capability reference.
flowchart LR
A[Task contract] --> B[Host tool action]
B --> C{Policy}
C -->|deny| D[Explain the boundary]
C -->|allow| E[Run declared validator]
E --> F[Append evidence]
F --> G{Fresh PASS for each criterion?}
G -->|No| H[Continue or report unverified]
G -->|Yes| I[Verified completion]
GRAVITAS began with Gemini in Antigravity and now carries its shared task contract and policy model across Antigravity and OpenCode.
| Capability | Core skill | Antigravity Native | OpenCode |
|---|---|---|---|
| Task and planning guidance | Instructions | Instructions and hooks | Instructions and policy shim |
| Write and scope checks | Instructions only | PreToolUse hook | gravitas guard plus host permissions |
| Evidence ledger | Manual workflow | Automatic | CLI-assisted |
| Completion gate | Skill procedure | Automatic Stop hook | Manual through CLI |
| Destructive action | Instruction only | Host confirmation (force_ask) |
Denied; no ask channel |
| Session isolation | Host context | Per conversation | Per-workspace contract |
The host integrations have different lifecycle guarantees. Antigravity hooks record tool events and gate stopping when required evidence is missing or stale. The OpenCode shim checks actions before execution and records supported after-event evidence, but it has no automatic Stop completion gate. See the host capability details for the event-specific behavior.
Hooks are workflow controls, not operating-system sandboxes. They cannot contain arbitrary processes or prevent every filesystem side effect. The security policy describes those trust boundaries.
Enforcement depends on the host reaching the hook. OpenCode's guard denies when it is unreachable, times out, returns malformed output, or reports an unknown verdict. Antigravity denies malformed pre-tool events and named-session mutations without a contract, but its host may ignore a nonzero hook exit or terminate a hook before its decision returns. Local fixtures cover these paths; they do not certify every installed host version.
GRAVITAS normalizes host tool calls into four capability levels. The shell classifier uses tokenization and an operator scan, examines command segments and recognized wrappers, and treats uncertain or unparseable commands conservatively. Scope checks can reject writes whose paths the runtime can identify.
| Level | What it means | Example |
|---|---|---|
none |
Read-only query | git status, ls |
write |
File change with a named target | Edit src/app.py inside the declared scope |
mutation |
Code execution or a command with possible side effects | pytest, a script, or a pipeline |
destructive |
Deletion, blind overwrite, infrastructure change, or execution of fetched code | rm, git reset --hard, curl … | sh |
This classification governs the requested tool action; it does not contain arbitrary subprocesses. The detailed threat model and tested boundaries are in SECURITY.md.
A completion-grade validator run is bound to its declared command and acceptance criteria. The runner records its exit status and a repository snapshot; a relevant later change makes an earlier PASS stale. Evidence is hash-linked and checked against a user-local anchor. Self-review, an old green run, and a reproducer alone do not satisfy the completion gate.
The completion gate accepts only a fresh PASS from an owned validator assigned to the criterion. The command must match the contract, and timeout or interruption cannot produce a PASS. Freshness is recomputed from the evidence ledger, so a later relevant write makes earlier evidence pending again. The receipt also records the repository snapshot and the limits of what the host observed.
The anchor makes ledger edits detectable while it remains outside the attacker-controlled write scope. It does not protect against an attacker who can rewrite both the ledger and its anchor. See proof and evidence for the receipt format and its limits.
The repository's CI and contributor verification use these checks from the repository root:
.venv/bin/python -m unittest discover -s tests
.venv/bin/python benchmarks/runner/audit.py
.venv/bin/python benchmarks/runner/validate.py --episodes benchmarks/results --allow-empty
.venv/bin/python -m py_compile gravitas_cli.py gravitas_init.py plugins/gravitas-antigravity/scripts/*.py
.venv/bin/python .github/scripts/validate_skill.py
.venv/bin/python scripts/check_readme_claims.py
bash scripts/build-native-bundle.sh
GitHub Actions checks Python 3.9, 3.12, and 3.14, plus a Windows portability job. These checks cover the tested workflow; they do not certify every host version or operating system.
gravitas proof exports a receipt for the current task. It can be saved and
checked against the session's trusted evidence:
gravitas proof --json --output .gravitas/proof.json
gravitas proof --verify .gravitas/proof.json
The receipt records the contract, repository identity, criteria, validators,
freshness, failures, and limitations. VERIFIED requires fresh bound PASS
evidence for every required criterion; missing or stale evidence cannot pass.
See the receipt format and trust limits.
Research on tool-using agents and repository tasks informs GRAVITAS's design. These findings motivate the workflow; they are not measurements of GRAVITAS: