npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@shreyaskapale/gitagent

v0.1.7

Published

A framework-agnostic, git-native standard for defining AI agents

Readme

gitagent

A framework-agnostic, git-native standard for defining AI agents. Clone a repo, get an agent.

Why

Every AI framework has its own structure. There's no universal, portable way to define an agent that works across Claude Code, OpenAI, LangChain, CrewAI, and AutoGen. gitagent fixes that.

  • Git-native — Version control, branching, diffing, and collaboration built in
  • Framework-agnostic — Export to any framework with adapters
  • Compliance-ready — First-class support for FINRA, Federal Reserve, and SEC regulatory requirements
  • Composable — Agents can extend, depend on, and delegate to other agents

Patterns

Four architectural patterns emerge when you treat agents as git repos:

Human-in-the-Loop for RL Agents

When an agent updates memory or learns a new skill, it creates a branch + PR for human review before merging to main. Git's review workflow becomes your supervision layer.

Shared Context

Root-level context.md, skills/, tools/, and knowledge/ are automatically inherited by all sub-agents. One source of truth, no duplication.

Branch-based Deployment

Use git branches (devstagingmain) to promote agent changes through environments, just like shipping software.

Knowledge Tree

The knowledge/ folder stores entity relationships as a hierarchical tree with embeddings, letting agents reason over structured data at runtime.

Quick Start

# Install
npm install -g gitagent

# Create a new agent
gitagent init --template standard

# Validate
gitagent validate

# View agent info
gitagent info

# Export to system prompt
gitagent export --format system-prompt

Directory Structure

my-agent/
├── agent.yaml          # [REQUIRED] Manifest — name, version, model, skills, tools, compliance
├── SOUL.md             # [REQUIRED] Identity, personality, communication style, values
├── RULES.md            # Hard constraints, must-always/must-never, safety boundaries
├── AGENTS.md           # Framework-agnostic fallback instructions
├── skills/             # Reusable capability modules (SKILL.md + scripts)
├── tools/              # MCP-compatible tool definitions (YAML schemas)
├── knowledge/          # Reference documents the agent can consult
├── memory/             # Persistent cross-session memory
├── workflows/          # Multi-step procedures/playbooks
├── hooks/              # Lifecycle event handlers (audit logging, compliance checks)
├── examples/           # Calibration interactions (few-shot)
├── agents/             # Sub-agent definitions (recursive structure)
├── compliance/         # Regulatory compliance artifacts
├── config/             # Environment-specific overrides
└── .gitagent/          # Runtime state (gitignored)

agent.yaml

The only file with a strict schema. Minimal example:

spec_version: "0.1.0"
name: my-agent
version: 0.1.0
description: A helpful assistant agent

Full example with compliance:

spec_version: "0.1.0"
name: compliance-analyst
version: 1.0.0
description: Financial compliance analysis agent
model:
  preferred: claude-opus-4-6
compliance:
  risk_tier: high
  frameworks: [finra, federal_reserve, sec]
  supervision:
    human_in_the_loop: always
    kill_switch: true
  recordkeeping:
    audit_logging: true
    retention_period: 7y
    immutable: true
  model_risk:
    validation_cadence: quarterly
    ongoing_monitoring: true

CLI Commands

| Command | Description | |---------|-------------| | gitagent init [--template] | Scaffold new agent (minimal, standard, full) | | gitagent validate [--compliance] | Validate against spec and regulatory requirements | | gitagent info | Display agent summary | | gitagent export --format <fmt> | Export to other formats (see adapters below) | | gitagent import --from <fmt> <path> | Import (claude, cursor, crewai) | | gitagent run <source> --adapter <a> | Run an agent from a git repo or local directory | | gitagent install | Resolve and install git-based dependencies | | gitagent audit | Generate compliance audit report | | gitagent skills <cmd> | Manage skills (search, install, list, info) | | gitagent lyzr <cmd> | Manage Lyzr agents (create, update, info, run) |

Compliance

gitagent has first-class support for financial regulatory compliance:

FINRA

  • Rule 3110 — Supervision: human-in-the-loop, escalation triggers, kill switch
  • Rule 4511 — Recordkeeping: immutable audit logs, retention periods, SEC 17a-4 compliance
  • Rule 2210 — Communications: fair/balanced enforcement, no misleading statements
  • Reg Notice 24-09 — Existing rules apply to GenAI/LLMs

Federal Reserve

  • SR 11-7 — Model Risk Management: validation cadence, ongoing monitoring, outcomes analysis
  • SR 23-4 — Third-Party Risk: vendor due diligence, SOC reports, subcontractor assessment

SEC / CFPB

  • Reg S-P — Customer privacy, PII handling
  • CFPB Circular 2022-03 — Explainable adverse action, Less Discriminatory Alternative search

Run gitagent audit for a full compliance checklist against your agent configuration.

Adapters

Adapters are used by both export and run. Available adapters:

| Adapter | Description | |---------|-------------| | system-prompt | Concatenated system prompt (works with any LLM) | | claude-code | Claude Code compatible CLAUDE.md | | openai | OpenAI Agents SDK Python code | | crewai | CrewAI YAML configuration | | lyzr | Lyzr Studio agent | | github | GitHub Actions agent | | git | Git-native execution (run only) | | openclaw | OpenClaw format | | nanobot | Nanobot format |

# Export to system prompt
gitagent export --format system-prompt

# Run an agent directly
gitagent run ./my-agent --adapter lyzr

Inheritance & Composition

# Extend a parent agent
extends: https://github.com/org/base-agent.git

# Compose with dependencies
dependencies:
  - name: fact-checker
    source: https://github.com/org/fact-checker.git
    version: ^1.0.0
    mount: agents/fact-checker

Examples

See the examples/ directory:

  • examples/minimal/ — 2-file hello world (agent.yaml + SOUL.md)
  • examples/standard/ — Code review agent with skills, tools, and rules
  • examples/full/ — Production compliance agent with all directories, hooks, workflows, sub-agents, and regulatory artifacts
  • examples/gitagent-helper/ — Helper agent that assists with creating gitagent definitions
  • examples/lyzr-agent/ — Example Lyzr Studio integration

Specification

Full specification at spec/SPECIFICATION.md.

JSON Schemas for validation at spec/schemas/.

License

MIT