Skip to content

brege/agent-db

Repository files navigation

agent-db

Build personal Claude Code and Codex configuration from one authoring tree.

agent-db reads reusable instructions, settings, skills, and agent definitions, then writes the files each tool expects in its own home directory. It is meant for personal config that should be repeatable without hand-editing multiple agent-specific files.

Install

git clone git@github.com:brege/agent-db.git
uv tool install -e .

Run

agent-db

The default run writes changed files and prints only the paths it changed. A no-op run prints nothing.

Inspect what Claude or Codex will load from the current directory:

agent-db -m
agent-db -m -a claude
agent-db -m -a codex

Screenshot

screenshot

Inputs

agent-db reads built-in defaults from defaults/ and user config from ~/.config/agent-db (on Linux).

Currently supported:

instructions/*.md           adds to AGENTS.md or CLAUDE.md
settings.yaml               becomes settings.json or config.toml
settings/*.yaml             adds to settings.json or config.toml
skills/*/SKILL.md           adds to ~/.{claude,codex}/skills
agents/*                    adds to ~/.{claude,codex}/agents

Outputs

Claude output goes to ~/.claude unless CLAUDE_CONFIG_DIR is set:

CLAUDE.md
settings.json
rules/*.md
skills/*/SKILL.md
agents/*.md

Codex output goes to ~/.codex unless CODEX_HOME is set:

AGENTS.md
config.toml
rules/*.rules
skills/*/SKILL.md
agents/*.toml

Authoring

Markdown in instructions/ becomes shared guidance for both tools. Files are merged by title key. A file can set frontmatter:

---
title: Code
override: true
---

Settings live in settings.yaml or settings/*.yaml. Use append for merged settings and override for replacement values.

References

Curated doc links live in docs/reference/README.md. Generated reference snapshots under docs/reference/claude/, docs/reference/codex/, and docs/reference/agents.md/ are ignored by git.

Refresh local snapshots with

agent-db -r

About

Intraagent instruction, skill, and config manager for Claude and Codex

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages