← Writing

ULIS: one source for my AI tool configs

By ·

View the ulis project →

Claude Code wants Markdown agents with YAML frontmatter. Codex wants TOML agent files. An MCP server definition needs yet another output. Every AI coding tool reads its config from its own place in its own format, so even when I want them all to say the same thing, I end up maintaining several copies.

I built ULIS. The idea: edit a shared instruction once, generate the files each tool expects. With separate copies, every edit means going through the others to check they still agree.

nejcm/ulisSingle source of truth for AI tool configurations across OpenCode, Claude Code, Codex, Cursor and ForgeCode.TypeScript(opens in new tab)

The source lives in .ulis/ inside a project, or in ~/.ulis/ for my personal baseline. Agents are Markdown files with frontmatter. A skill is a SKILL.md plus any supporting files, and MCP servers go in mcp.yaml. These are plain files, so I review them and commit them next to the code they apply to.

ULIS parses and validates the source, then hands it to a generator for each platform. Each generator writes native files under generated/<platform>/. Once they’re installed, the coding tool reads its usual config and never knows ULIS exists. ULIS only runs when I regenerate or install.

Build and install are two commands because the destination may be a home directory full of settings I already rely on. ulis build writes files I can look through first. ulis install builds and then deploys them.

The repository’s CLI examples include this command:

ulis build --source ./example

Run it from the ULIS checkout and it builds the bundled example source into example/generated/. Before installing anything, you can open the output and compare what Claude and Codex each get from the same agent definition. That beats reading a config reference and guessing what the compiler will do.

ULIS docsSource format, CLI reference, and platform generators.(opens in new tab)

One agent can share a prompt across tools and still use different model settings for Claude and Codex, set in its platforms section. The example tester agent does exactly that. The shared format can’t express every native setting, so there’s a raw/ directory for those. ULIS applies those fragments after generation, and when they conflict with generated values, they win. I’d rather do that than grow the common schema every time one tool needs a special setting.

Deleting an agent from the source should eventually remove its installed copy. The problem is that a tool’s config folder can hold files ULIS never wrote. So ULIS writes a .ulis-manifest.json in each platform root to track what it manages. Later installs prune tracked entries that are no longer generated and leave untracked ones alone. One collision remains. A generated agent or skill can overwrite an untracked one with the same native name. ULIS warns you, but I still read the changes before accepting them.

The recent install work extends that cleanup to stale managed rules, commands, and instruction files. This is the part that gets missed once the first conversion works. Without it, an instruction removed from the source can keep affecting a tool through an old installed file.

ULIS is still in active development.