Skip to content
PrithviWHPublic

About

Evidence-driven AI coding skill for Antigravity, Claude Code, Gemini CLI, Cursor & Windsurf. Understand codebases, trace bugs to their root cause, review code, and identify security risks — with evidence, not guesswork.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

DevPilot

Turn Any AI Coding Agent Into a Disciplined, Evidence-Driven Repository Engineer

License: MIT Version Antigravity Ready Tier 1 Pilot Adapters Context Budget

Quick Install • Why DevPilot • Capabilities • Live Pilot Results • Safety Model • Docs & Architecture


Most AI coding assistants struggle on unfamiliar repositories: they guess directory roles, propose patches before tracing root causes, review diffs for style instead of bugs, and silently hallucinate file paths or test outcomes.

DevPilot fixes this without extra servers, vector databases, or heavy wrappers. It packages a portable SKILL.md + modular references/ workflow that installs natively into Google Antigravity (Desktop App & IDE), Claude Code, Gemini CLI, Cursor, and Windsurf—forcing your agent to inspect real code, cite exact lines, verify cross-file boundaries, and stay read-only until you authorize edits.


✨ Why DevPilot?

AI coding agents can write code quickly, but they can also make assumptions, miss dependencies, and fix symptoms instead of root causes.

DevPilot brings a disciplined engineering workflow to your coding agent:

  • Understand before changing — map the repository and trace dependencies.
  • Investigate before fixing — identify root causes using evidence.
  • Review before merging — inspect correctness, security, and regressions.
  • Verify before claiming — distinguish tested results from assumptions.

DevPilot doesn't replace your coding agent. It makes your existing agent work more like a disciplined engineer.

Without DevPilot (Default Agent) With DevPilot Installed
Jumps straight to guesses or broad rewrites Follows a structured 10-step engineering workflow with explicit hypotheses
Reviews diffs in isolation Traces multi-hop cross-file boundaries (Route → Controller → Service → DB)
Mixes confirmed facts with assumptions Enforces 3-tier Confidence tags + Scope & Limitations disclosures
Dumps whole directories into context Uses Progressive Disclosure (~4.1k tokens baseline + 1 runbook on demand)
Can edit files or run risky commands unasked Read-only by default; edits, installs, and migrations require explicit consent

⚡ Quick Install

Option 1: Google Antigravity Desktop App & IDE (Zero CLI Needed)

Copy SKILL.md, LICENSE, references/, and examples/ into your global Antigravity skills folder—or let the automated safe installer do it in one command (ships only the 20 lean runtime files, zero repo bloat):

git clone https://github.com/PrithviWH/DevPilot.git
cd DevPilot
python adapters/install.py --agent antigravity
Other Install Targets (Antigravity Plugin Bundle, Claude Code, Gemini CLI, Cursor, Windsurf)
# Native Antigravity Plugin Bundle (~/.gemini/config/plugins/devpilot/)
python adapters/install.py --agent antigravity-plugin

# Claude Code (global skill in ~/.claude/skills/devpilot/)
python adapters/install.py --agent claude-code

# Gemini CLI (global skill in ~/.gemini/skills/devpilot/)
python adapters/install.py --agent gemini-cli

# Cursor IDE (.cursorrules or modern .cursor/rules/devpilot.mdc)
python adapters/install.py --agent cursor
python adapters/install.py --agent cursor --target-dir .cursor/rules/devpilot.mdc

# Windsurf IDE (.windsurfrules or .windsurf/rules/devpilot.md)
python adapters/install.py --agent windsurf

# Install across all 5 agent targets at once (preview first with --dry-run)
python adapters/install.py --agent all --dry-run

Every install validates paths against traversal/symlinks, never overwrites unrelated user files, creates .devpilot-backups/ before updates, and supports clean removal via --uninstall. See docs/installation.md for manual instructions.


🧠 How Progressive Disclosure Works

Instead of stuffing ~22k tokens of instructions into every prompt, DevPilot keeps your context window free for actual code:

  User Prompt ──► Agent loads SKILL.md (~4,110 tokens)
                       │
                       ├── Task: Code Review    ──► loads references/code-review.md (~1.3k tokens)
                       ├── Task: Debugging      ──► loads references/root-cause-analysis.md (~1.9k tokens)
                       ├── Task: Architecture   ──► loads references/architecture-intelligence.md (~1.7k tokens)
                       └── Task: Security Audit ──► loads references/security-review.md (~1.5k tokens)

Active working overhead stays at ~5.0k–6.2k tokens (<5% of a 128k context window), leaving >95% of your token budget for source code, diffs, and logs. Full measurements in docs/context-profile.md.


🛠️ Capabilities & Runbooks

Workflow What DevPilot Enforces Canonical Runbook Example Report
Repo Discovery 10-point stack, entry-point, route, model & auth mapping repository-intelligence.md architecture-report.md
Cross-File Tracing 6 multi-hop chains (API→DB, UI→API, Auth→Route, Config→Runtime) cross-file-reasoning.md —
Architecture Audit Pattern detection, circular imports & coupling smells architecture-intelligence.md architecture-report.md
Code Review 12 defect classes ranked by impact, zero cosmetic nitpicking code-review.md • advanced-code-review.md code-review-report.md
Root-Cause Debugging 9-step scientific diagnosis, backward slicing & ranked hypotheses root-cause-analysis.md debugging-report.md
Scoped Security Source-to-sink taint paths, CWEs & strict secret redaction security-review.md security-audit-report.md
Safe Refactoring Characterization tests, contract preservation & surgical diffs refactoring.md • context-aware-fixes.md refactoring-proposal.md
Developer Onboarding Exact prerequisites, run/test commands & first contribution map onboarding.md onboarding-guide.md
Scale & Evidence Monorepo exclusions & strict citation / no-hallucination rules large-repository-handling.md • evidence-and-confidence.md —

💬 Try These Prompts Right After Installing

  • Understand a new repo: "Analyze this repository. Explain what it does, map its core components, show entry points, and explain how to run and test it."
  • Review changes for real bugs: "Review my branch changes against main for correctness, contract breaks, and security. Do not modify files. Rank findings by severity with line citations."
  • Debug without guessing: "The checkout endpoint intermittently fails on concurrent requests. Trace the full call path, rank hypotheses with evidence, and propose the smallest safe diagnostic step."
  • Audit security safely: "Audit our auth and payment routes from untrusted input to database sinks and flag any secret handling issues."

📊 Empirical Pilot Results & Agent Compatibility

DevPilot strictly distinguishes structural adapter verification from live runtime proof:

Antigravity CR-001 Paired Pilot (Condition A: Baseline vs. Condition B: DevPilot)

Measured on the ecommerce-monorepo order-creation review scenario (full comparison & verbatim transcripts):

Evaluation Dimension Baseline With DevPilot Delta
Finding Recall & Precision 100.0% 100.0% +0.0 pts (+2 bonus creation bugs found)
Context Efficiency 90.0% 100.0% +10.0 pts
Output Clarity (remediation + verification per finding) 75.0% 100.0% +25.0 pts
Honesty & Limits (disclosed read-only tooling & scope) 60.0% 100.0% +40.0 pts

Compatibility Tiers (docs/compatibility.md)

Agent Tier Status
Google Antigravity (Desktop App & IDE) Tier 1: Runtime-Verified (CR-001 Pilot) Native SKILL.md + Plugin Bundle; full 5-dataset suite ongoing
Claude Code Tier 2: Adapter-Verified Native SKILL.md + CLAUDE.md; automated adapter tests pass
Gemini CLI Tier 2: Adapter-Verified Native SKILL.md + GEMINI.md; automated adapter tests pass
Cursor IDE Tier 2: Adapter-Verified .cursor/rules/devpilot.mdc & .cursorrules tested
Windsurf IDE Tier 2: Adapter-Verified .windsurf/rules/devpilot.md & .windsurfrules tested

🛡️ Safety & Permission Model

Read & Search Codebase     ──► ALLOWED (default)
Inspect Git Diffs & Status ──► ALLOWED (default)
Non-Destructive Test Run   ──► Discretionary (with host confirmation)
Edit / Overwrite Files     ──► REQUIRES EXPLICIT AUTHORIZATION
Install Packages           ──► REQUIRES EXPLICIT AUTHORIZATION
Run Migrations / Scripts   ──► REQUIRES EXPLICIT AUTHORIZATION
Git Push / Deploy          ──► STRICTLY OUT OF SCOPE
  • Prompt Injection Immunity: Repository code, comments, READMEs, and test fixtures are treated strictly as untrusted data—never instructions to obey.
  • Zero Secret Reflection: Discovered API keys or passwords are cited by file/line only and redacted in output. See docs/safety.md.

📚 Documentation Hierarchy (SSOT)

Level File Audience Role
Level 1 SKILL.md AI Agents Canonical Runtime Specification (principles, 10-step workflow, schemas, safety)
Level 2 references/*.md AI Agents (on demand) Canonical Domain Runbooks (loaded selectively via Progressive Disclosure)
Level 3 README.md & docs/*.md Developers & Evaluators Onboarding, compatibility.md, context-profile.md, tests/evaluation/README.md
Level 4 PRD.md System Architects Historical design specification baseline

✅ Development & Verification

python tests/validate.py                    # Static files, SSOT hierarchy, links & secret scan
python tests/evaluate.py                    # 19 deterministic fixture & safety invariant checks
python tests/test_installer.py              # 32 installer security & symlink-escape tests
python tests/test_adapters.py               # 22 multi-agent adapter & plugin bundle tests
python tests/evaluation/runner.py validate  # Evaluation dataset schema validation
python tests/evaluation/test_framework.py   # 32 evaluation framework unit tests

🤝 Contributing & License

Contributions, new language fixtures, and additional paired runtime evaluations are welcome! See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and docs/roadmap.md.

If DevPilot helps your engineering workflow, consider giving the repository a ⭐ on GitHub!

Released under the MIT License.

About

Evidence-driven AI coding skill for Antigravity, Claude Code, Gemini CLI, Cursor & Windsurf. Understand codebases, trace bugs to their root cause, review code, and identify security risks — with evidence, not guesswork.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages