Skip to content

feat: Add smart-contract-audit-copilot kit#268

Open
tanaymitra54 wants to merge 3 commits into
Lamatic:mainfrom
tanaymitra54:feat/smart-contract-audit-copilot
Open

feat: Add smart-contract-audit-copilot kit#268
tanaymitra54 wants to merge 3 commits into
Lamatic:mainfrom
tanaymitra54:feat/smart-contract-audit-copilot

Conversation

@tanaymitra54

Copy link
Copy Markdown

Smart Contract Audit Copilot

A Lamatic-powered Solidity audit assistant that reviews smart contracts for security vulnerabilities, gas optimizations, and best-practice issues. This kit adapts the ContractSLM/SolidityGuard concept into the AgentKit format.

Contribution Type

  • Kit (kits/smart-contract-audit-copilot/)

General Requirements

  • PR is for one project only
  • No secrets, API keys, or real credentials are committed
  • Folder name uses kebab-case and matches the flow ID
  • All changes documented in README.md

What's Included

File Purpose
lamatic.config.ts Kit metadata, single mandatory step, deploy/Vercel links
agent.md Agent identity, guardrails, environment setup, failure modes
README.md Setup guide, architecture diagram, data model, flow documentation
flows/smart-contract-audit.ts Single Lamatic flow: API trigger → LLM node → API response
prompts/ Externalized system and user prompts for Solidity audit
model-configs/ LLM model configuration reference
constitutions/default.md Guardrails: scope, disclaimers, safety rules
apps/ Next.js app with server action, ui, lamatic client, types
apps/.env.example Placeholder env vars (no real credentials)

PR Label

Please add the agentkit-challenge label to this PR for challenge submission validation.

Lamatic-powered Solidity audit copilot that reviews smart contracts for security vulnerabilities, gas optimizations, and best-practice issues.

Features:
- Single Lamatic flow (smart-contract-audit) accepting contractCode, auditMode, contractName, focusAreas
- Structured JSON output with summary, overallRisk, confidence, security/gas/best-practice findings, remediations, and disclaimer
- Externalized prompts, model-config, and constitution using the @reference system
- Next.js app with server action orchestration, Solidity code editor, audit mode selection, and severity-aware result cards
- Fallback handling for LLM output field name variations
- Dark-themed UI with glassmorphism panels

Part of the AgentKit Challenge submission.
@github-actions

Copy link
Copy Markdown
Contributor

:robot_face: AgentKit Structural Validation

New Contributions Detected

  • Kit: kits/smart-contract-audit-copilot

Check Results

Check Status
No edits to existing kits ✅ Pass
Required root files present ✅ Pass
Flow .ts files present ✅ Pass
lamatic.config.ts valid ✅ Pass
No changes outside kits/ ✅ Pass

🎉 All checks passed! This contribution follows the AgentKit structure.

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@tanaymitra54, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 22 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1648edc5-7dc0-4fc8-ac1a-29685e1e5b1b

📥 Commits

Reviewing files that changed from the base of the PR and between 0ada432 and 2d31cb1.

⛔ Files ignored due to path filters (1)
  • kits/smart-contract-audit-copilot/apps/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (22)
  • kits/smart-contract-audit-copilot/.env.example
  • kits/smart-contract-audit-copilot/.gitignore
  • kits/smart-contract-audit-copilot/README.md
  • kits/smart-contract-audit-copilot/agent.md
  • kits/smart-contract-audit-copilot/apps/.env.example
  • kits/smart-contract-audit-copilot/apps/actions/orchestrate.ts
  • kits/smart-contract-audit-copilot/apps/app/globals.css
  • kits/smart-contract-audit-copilot/apps/app/layout.tsx
  • kits/smart-contract-audit-copilot/apps/app/page.tsx
  • kits/smart-contract-audit-copilot/apps/lib/lamatic-client.ts
  • kits/smart-contract-audit-copilot/apps/lib/types.ts
  • kits/smart-contract-audit-copilot/apps/next-env.d.ts
  • kits/smart-contract-audit-copilot/apps/next.config.mjs
  • kits/smart-contract-audit-copilot/apps/package.json
  • kits/smart-contract-audit-copilot/apps/tsconfig.json
  • kits/smart-contract-audit-copilot/config.json
  • kits/smart-contract-audit-copilot/constitutions/default.md
  • kits/smart-contract-audit-copilot/flows/smart-contract-audit.ts
  • kits/smart-contract-audit-copilot/lamatic.config.ts
  • kits/smart-contract-audit-copilot/model-configs/smart-contract-audit_llm.ts
  • kits/smart-contract-audit-copilot/prompts/smart-contract-audit_system.md
  • kits/smart-contract-audit-copilot/prompts/smart-contract-audit_user.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai review

@akshatvirmani

Copy link
Copy Markdown
Contributor

/validate

@github-actions

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

@github-actions

Copy link
Copy Markdown
Contributor

Studio Runtime Validation (Phase 2)

Studio validation failed. The kit was rejected by Lamatic Studio.

Errors

smart-contract-audit-copilot

  • Flow: smart-contract-audit — config_json.nodes must be a non-empty array

Please fix the errors above and push a new commit to re-run validation.
Refer to CONTRIBUTING.md for guidance.

@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai review

@akshatvirmani

Copy link
Copy Markdown
Contributor

/validate

@github-actions

Copy link
Copy Markdown
Contributor

📡 Running Studio validation — results will appear here shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants