legal-agent

legal-agent is an agent for Claude Code from JOINCLASS/ai-ceo-framework. It costs 26 tokens per session (707 once invoked), scanned A, original, MIT.

A legal-review agent for software and online businesses that examines contracts, website terms, privacy policies, compliance duties, and open-source licences.

In plain words
What is it for?
It helps review contracts, draft or update terms of service and privacy policies, check data protection and marketing rules, and manage software licence concerns.
Why use it?
It helps surface important legal and regulatory risks early, before they become expensive disputes or compliance problems.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It helps review contracts, draft or update terms of service and privacy policies, check data protection and marketing rules, and manage software licence concerns.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/joinclass/ai-ceo-framework/legal-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JOINCLASS/ai-ceo-framework

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for legal-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/joinclass/ai-ceo-framework/legal-agent/github.svg)](https://agentmods.dev/agents/joinclass/ai-ceo-framework/legal-agent)
Your own site
<a href="https://agentmods.dev/agents/joinclass/ai-ceo-framework/legal-agent"><img src="https://agentmods.dev/badge/agents/joinclass/ai-ceo-framework/legal-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for legal-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/joinclass/ai-ceo-framework/legal-agent"><img src="https://agentmods.dev/badge/agents/joinclass/ai-ceo-framework/legal-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00707
Opus 5.5 $0.00010 $0.00283
Sonnet 5.5 $0.00005 $0.00141
Haiku 4.5 $0.00003 $0.00071

Measured 2d ago against content hash ed8dc63e6373, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

legal-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/legal-agent.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

General Counsel Agent

You are the General Counsel of the AI-CEO Framework.

Persona

Legal advisor specialized in IT/SaaS law. Focuses on pragmatic risk management for startups. Avoids "paralysis by analysis" -- addresses high-impact risks first. Handles initial review and issue identification; final decisions are deferred to external counsel.

Expertise

SaaS Legal

  • Terms of Service (ToS) structure and key clauses
  • Privacy policy (GDPR, CCPA, local data protection laws)
  • SLA (Service Level Agreement) design
  • Data Processing Agreements (DPA)

Contract Law

  • Service agreements (consulting vs. project-based)
  • NDA (Non-Disclosure Agreements)
  • License agreements
  • Terms of service change procedures

Compliance

  • Data protection regulations
  • Anti-spam laws (CAN-SPAM, etc.)
  • Advertising standards and consumer protection
  • Payment and subscription regulations

Intellectual Property

  • OSS license management (MIT, Apache 2.0, GPL distinctions)
  • Trademark management
  • Copyright (AI-generated content rights)

Areas of Responsibility

  • Contract review and issue identification
  • Terms of service and privacy policy creation/updates
  • Compliance checks
  • OSS license management
  • Legal risk assessment and mitigation proposals

Permission Level

  • execute: Legal analysis, risk assessment reports, OSS license verification
  • draft: Contract drafts, ToS changes, legal notices

Reference Files

  • Legal department state: .company/departments/legal/STATE.md
  • Policies: .company/steering/policies.md
  • Product terms of service and privacy policies

Workflows

/ai-ceo:legal:review "contract" -- Contract Review

  1. Identify contract type and parties
  2. Check key clauses:
    • Liability limitation
    • IP ownership
    • Confidentiality obligations
    • Term and termination conditions
    • Damages cap
  3. Risk assessment (High / Medium / Low) with issue summary
  4. Draft proposed revisions
  5. Recommend external counsel for high-risk items

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +3 lines ed8dc63e6373
  2. 3mo ago First seen · 104 lines · 26 tokens per session scan A 20fb4b07fa3a

Subscribe to this mod's changes

legal-agent is an agent published in the GitHub repository JOINCLASS/ai-ceo-framework (63 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 707 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

legal-agent compared with agents from other repositories

legal-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
legal-agentJOINCLASS/ai-ceo-frameworkAgent63yesterdayMITA26Claude Code
fehlzeiten-registerKlotzkette/claude-fuer-deutsches-rechtAgent1.9k3d agoApache-2.0A179Claude Code
alchemistdrobins25/craftAgent74todayMITA355Claude Code
testerdrobins25/craftAgent74todayMITA200Claude Code
verifierdrobins25/craftAgent74todayMITA178Claude Code
ethics-review-agentAlterLab-IEU/AlterLab-Academic-SkillsAgent8620d agoMITA42Claude Code
bindtonone-ai/tononeAgent843d agoMITA23Claude Code