Skip to content

exisz/agentic-dna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🧬 Agentic DNA

CI License: Apache-2.0 npm: agentic-dna npm: openclaw-dna npm downloads

Governance and knowledge system for AI agent fleets.

Agentic DNA provides a structured governance layer for multi-agent systems β€” defining agent identity, enforcing policies, managing shared knowledge, and ensuring consistency across an entire fleet of AI agents.

Features

  • Agent Identity (dna.yaml) β€” Goal, boundary, tools, and deprecation specs per agent
  • Philosophy DB β€” Universal principles shared across all agents
  • Convention DB β€” Actionable rules (global or workspace-scoped)
  • Toolbox β€” Shared CLI/tool documentation
  • Architecture Paradigms β€” Git/CI/deploy level management
  • Adaptive Cron β€” Dynamic frequency adjustment
  • Policy Injection β€” Automatic cron and interactive session policies
  • Directive Expansion β€” {{dna ...}} directives in bootstrap files

Requirements

  • Node.js >= 18

Install

CLI Only (standalone)

npm install -g agentic-dna
dna init                    # Initialize data directory
dna help

OpenClaw Plugin

openclaw plugins install openclaw-dna
openclaw gateway restart

From Source

git clone https://github.com/exisz/agentic-dna.git
cd agentic-dna
pnpm install
npm link                    # Makes 'dna' command available globally
dna init

CLI

dna init                       # Initialize data directory
dna spec <agent>               # View agent spec (goal/boundary/tools)
dna philosophy <slug>          # View a philosophy entry
dna philosophy --list          # List all philosophies
dna convention <slug>          # View a convention
dna convention --list          # List all conventions
dna tool ls                    # List tools in the toolbox
dna tool <name>                # View tool GBTD
dna hydrate --all              # Expand all {{dna}} directives
dna cron up <id>               # Increase cron frequency
dna cron down <id>             # Decrease cron frequency
dna protocol --list            # List protocol paradigms
dna skill ls                   # List manual skills

Any unrecognized subcommand automatically falls through to dna tool <name>, so registered toolbox entries work as top-level commands (e.g. dna agentbase β†’ dna tool agentbase).

Development

# One-shot: build β†’ install β†’ restart gateway
make dev

# Just build (no install)
make build

# Build + install (no restart)
make install

# Clean build artifacts
make clean

Repository Structure

This is a monorepo that publishes two npm packages from a single repository:

Package Description
agentic-dna The standalone dna CLI tool
openclaw-dna The OpenClaw plugin (source: openclaw/index.ts)
agentic-dna/
β”œβ”€β”€ bin/
β”‚   └── dna                   # CLI entry β€” routes all `dna` subcommands
β”œβ”€β”€ lib/                      # Shared CLI implementation modules
β”‚   └── expand.ts             # {{dna}} directive expansion
β”œβ”€β”€ openclaw/                 # OpenClaw plugin β€” published as `openclaw-dna` npm package
β”‚   β”œβ”€β”€ index.ts              # Plugin entry: policy injection + directive expansion
β”‚   β”œβ”€β”€ dist/                 # Build output (run `cd openclaw && pnpm build`)
β”‚   β”œβ”€β”€ skills/               # Bundled AgentSkills
β”‚   β”œβ”€β”€ package.json          # openclaw-dna package manifest
β”‚   └── openclaw.plugin.json  # OpenClaw plugin descriptor
β”œβ”€β”€ scripts/                  # Utility/build scripts
└── test/                     # Tests

Note for OpenClaw users: The openclaw-dna plugin source lives here at openclaw/index.ts. There is no separate openclaw-dna repository β€” both packages are developed and released from this repo.

Project Structure

agentic-dna/
β”œβ”€β”€ bin/              # CLI entrypoint
β”‚   └── dna           # Router script
β”œβ”€β”€ scripts/          # CLI tools (TypeScript)
β”œβ”€β”€ lib/              # Shared modules
β”‚   └── expand.ts     # {{dna}} directive expansion
└── openclaw/         # OpenClaw plugin (npm: openclaw-dna)
    β”œβ”€β”€ package.json
    β”œβ”€β”€ openclaw.plugin.json
    β”œβ”€β”€ index.ts      # Plugin entry β€” policy injection + directive expansion
    └── skills/       # Bundled AgentSkills

License

Apache-2.0

About

Governance and knowledge system for AI agent fleets

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors