Spec-driven development with a shared artifact layer
Project description
relic-cli
Spec-driven development with a shared artifact layer — Python / uv distribution.
Relic connects all your specs through a shared "brain" of domains, contracts, rules, and assumptions. Intersection detection between specs. Specs that stay alive through bug fixes.
This package ships a pre-compiled native binary — no Node.js or Python runtime required at execution time.
Install
uv tool install relic-cli
Or with pip:
pip install relic-cli
Getting started
cd my-project
relic init
# Open your AI agent (Claude Code, Copilot, Codex) and run:
# Existing codebase: /relic.scan then /relic.constitution
# New project: /relic.constitution then /relic.specify
CLI commands
Setup and navigation
| Command | Purpose |
|---|---|
relic init [--engine claude|copilot|codex] [--dir] [--force] |
Scaffold .relic/ in your project |
relic add-engine <engine> |
Add AI engine hooks to an existing project |
relic use <spec-id> |
Set the active spec for this session |
relic use --fix <fix-id> |
Set the active fix (validates fix doc exists) |
relic use --clear-fix |
Clear the active fix from session state |
relic context [--spec id] [--text] |
Resolve active spec; report file/artifact status and current_fix |
relic scaffold [--title t|--spec id] |
Ensure spec folder exists; create from templates if new |
relic validate [--text] |
Check artifact integrity and ownership conflicts |
relic search <keywords...> |
Search shared artifact manifests by keyword tags |
relic deep-search |
Return all manifest entries consolidated (tldr-first triage) |
relic upgrade [--check] [--prompts] |
Upgrade relic-cli and refresh engine hook files |
Workflow commands (direct model invocation)
Requires .relic/models.json with baseUrl and model. Calls any OpenAI-compatible endpoint directly — no IDE required.
| Command | Purpose |
|---|---|
relic scan [--manifest] [--no-stream] |
AI scan workflow (default) or raw manifest with --manifest |
relic specify [--title t] [--no-stream] [--reset-context] |
Create a new spec and run specify workflow |
relic clarify [--spec id] [--no-stream] [--reset-context] |
Append details or change contracts |
relic plan [--spec id] [--no-stream] [--reset-context] |
Create an implementation plan |
relic analyse [--spec id] [--no-stream] [--reset-context] |
Non-destructive consistency check |
relic tasks [--spec id] [--no-stream] [--reset-context] |
Generate tasks from the current plan |
relic implement [--spec id] [--no-stream] [--reset-context] |
Build the plan |
relic fix [--spec id] [--issue desc] [--no-stream] [--reset-context] |
Fix a bug using the spec as context |
relic solve [--fix id] [--no-stream] |
Apply the active fix document |
relic constitution [--no-stream] |
Regenerate .relic/constitution.md from the codebase |
relic model --reset-context [--spec id] |
Clear per-spec conversation history |
Minimum models.json:
{ "baseUrl": "http://localhost:11434", "model": "llama3" }
AI slash commands
Written to your agent's hooks directory by relic init:
| Slash command | Purpose |
|---|---|
/relic.constitution |
Extract project-specific principles from the codebase |
/relic.scan |
Bootstrap shared artifacts from existing code |
/relic.specify |
Create a new spec |
/relic.clarify |
Append details or change contracts |
/relic.plan |
Create an implementation plan |
/relic.analyse |
Non-destructive consistency check |
/relic.tasks |
Generate tasks from the plan |
/relic.implement |
Build the plan |
/relic.fix |
Cross-spec ownership check + diagnosis → writes fix document |
/relic.solve |
Apply the active fix document and close the fix |
/relic.use |
Switch active spec or fix from inside the AI session |
Platform support
Pre-compiled binaries are shipped for:
| Platform | Architecture |
|---|---|
| Linux | x86_64, arm64 |
| macOS | x86_64 (Intel), arm64 (Apple Silicon) |
| Windows | x86_64 |
Also available via npm
npm install -g relic-cli # requires Node.js 18+
npx relic-cli init
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file relic_cli-0.8.19-py3-none-win_amd64.whl.
File metadata
- Download URL: relic_cli-0.8.19-py3-none-win_amd64.whl
- Upload date:
- Size: 38.4 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9219c7aca4236367c7fc67030c395013c0e6c138ecf9e4b63091ca42937407ab
|
|
| MD5 |
5f40660f82a185020e3e8b36fcb08fe8
|
|
| BLAKE2b-256 |
63c893992de084884ba5ebc44c3c069eb3c57472f4066b05c881016e105a3124
|
Provenance
The following attestation bundles were made for relic_cli-0.8.19-py3-none-win_amd64.whl:
Publisher:
publish-pypi.yml on filfp/relic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
relic_cli-0.8.19-py3-none-win_amd64.whl -
Subject digest:
9219c7aca4236367c7fc67030c395013c0e6c138ecf9e4b63091ca42937407ab - Sigstore transparency entry: 1586151133
- Sigstore integration time:
-
Permalink:
filfp/relic@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Branch / Tag:
refs/tags/v0.8.19 - Owner: https://github.com/filfp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file relic_cli-0.8.19-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: relic_cli-0.8.19-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 36.0 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1adba13e008b1fa181fa6bd59f7e86a1c145dd0abc55031e02ac7b1443d4257c
|
|
| MD5 |
77255c082a095812d57b28caff740df9
|
|
| BLAKE2b-256 |
c80c57b9c191845d979bdb41ea0dd589c47061f949dd64d1b9954e7ae13941e1
|
Provenance
The following attestation bundles were made for relic_cli-0.8.19-py3-none-manylinux_2_17_x86_64.whl:
Publisher:
publish-pypi.yml on filfp/relic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
relic_cli-0.8.19-py3-none-manylinux_2_17_x86_64.whl -
Subject digest:
1adba13e008b1fa181fa6bd59f7e86a1c145dd0abc55031e02ac7b1443d4257c - Sigstore transparency entry: 1586150678
- Sigstore integration time:
-
Permalink:
filfp/relic@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Branch / Tag:
refs/tags/v0.8.19 - Owner: https://github.com/filfp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file relic_cli-0.8.19-py3-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: relic_cli-0.8.19-py3-none-manylinux_2_17_aarch64.whl
- Upload date:
- Size: 35.8 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ec0ce2ef54d0434f28b93b2bee323899075b29330b940a2c43f0b8ae21ca411
|
|
| MD5 |
b8dd2e773e592d99b31013254fa573b0
|
|
| BLAKE2b-256 |
95bb395f8f973e6cd67845743f2276b8b046ec14ac1f522361439a9d604ae482
|
Provenance
The following attestation bundles were made for relic_cli-0.8.19-py3-none-manylinux_2_17_aarch64.whl:
Publisher:
publish-pypi.yml on filfp/relic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
relic_cli-0.8.19-py3-none-manylinux_2_17_aarch64.whl -
Subject digest:
9ec0ce2ef54d0434f28b93b2bee323899075b29330b940a2c43f0b8ae21ca411 - Sigstore transparency entry: 1586150256
- Sigstore integration time:
-
Permalink:
filfp/relic@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Branch / Tag:
refs/tags/v0.8.19 - Owner: https://github.com/filfp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file relic_cli-0.8.19-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: relic_cli-0.8.19-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 24.0 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e8522d3275b3adb70ed50e37449e8b8e40a60573952fae9ccde41e37458cb64
|
|
| MD5 |
23e5def1247c990e90a3979347da05c2
|
|
| BLAKE2b-256 |
096217886366096434e694c8d4a0600c68a15e4044dfa1e1c9241cd6f7cacfa8
|
Provenance
The following attestation bundles were made for relic_cli-0.8.19-py3-none-macosx_11_0_arm64.whl:
Publisher:
publish-pypi.yml on filfp/relic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
relic_cli-0.8.19-py3-none-macosx_11_0_arm64.whl -
Subject digest:
8e8522d3275b3adb70ed50e37449e8b8e40a60573952fae9ccde41e37458cb64 - Sigstore transparency entry: 1586150337
- Sigstore integration time:
-
Permalink:
filfp/relic@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Branch / Tag:
refs/tags/v0.8.19 - Owner: https://github.com/filfp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file relic_cli-0.8.19-py3-none-macosx_10_9_x86_64.whl.
File metadata
- Download URL: relic_cli-0.8.19-py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 26.6 MB
- Tags: Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f4263fdb6bffb192262a26fabcdb09927a88b53bbbf94b224a9e2cd7d02a8ef
|
|
| MD5 |
8ee661d741e867bff899646756701ee3
|
|
| BLAKE2b-256 |
91473aded08b8c3ea80f492f386ed6332d79bd303923c19d3a59a7911361f945
|
Provenance
The following attestation bundles were made for relic_cli-0.8.19-py3-none-macosx_10_9_x86_64.whl:
Publisher:
publish-pypi.yml on filfp/relic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
relic_cli-0.8.19-py3-none-macosx_10_9_x86_64.whl -
Subject digest:
9f4263fdb6bffb192262a26fabcdb09927a88b53bbbf94b224a9e2cd7d02a8ef - Sigstore transparency entry: 1586151032
- Sigstore integration time:
-
Permalink:
filfp/relic@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Branch / Tag:
refs/tags/v0.8.19 - Owner: https://github.com/filfp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6713dcf06d6a696ca6ff2d1c8e4b58d5fd86877e -
Trigger Event:
workflow_dispatch
-
Statement type: