Skip to main content

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

Full documentation · Report an issue

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

relic_cli-0.8.7-py3-none-win_amd64.whl (42.1 MB view details)

Uploaded Python 3Windows x86-64

relic_cli-0.8.7-py3-none-manylinux_2_17_x86_64.whl (39.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

relic_cli-0.8.7-py3-none-manylinux_2_17_aarch64.whl (38.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

relic_cli-0.8.7-py3-none-macosx_11_0_arm64.whl (23.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

relic_cli-0.8.7-py3-none-macosx_10_9_x86_64.whl (25.6 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file relic_cli-0.8.7-py3-none-win_amd64.whl.

File metadata

  • Download URL: relic_cli-0.8.7-py3-none-win_amd64.whl
  • Upload date:
  • Size: 42.1 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for relic_cli-0.8.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9b4b9d1af4c886195134f6566e5d99437f2f865162e3cd7e864b1a2ac92d902f
MD5 bb40f11349c0b72a2648c4e2444eebe6
BLAKE2b-256 853dd74696cb1f7a7c2f18e599739415d5ba6c170683ea9cb10c2e9e45463912

See more details on using hashes here.

Provenance

The following attestation bundles were made for relic_cli-0.8.7-py3-none-win_amd64.whl:

Publisher: publish-pypi.yml on filipefpaulo/relic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file relic_cli-0.8.7-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for relic_cli-0.8.7-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0d6307e3541fcd9d72be15699c8411ae1a85fcb547b5d2e3c1342f92500b8f95
MD5 b0aa8230cda2209248e5ef09819853ba
BLAKE2b-256 9417ce37c0a5961a390d491d2b96d1e50a9dcf2412f5ee57f0bba97dcfadf82d

See more details on using hashes here.

Provenance

The following attestation bundles were made for relic_cli-0.8.7-py3-none-manylinux_2_17_x86_64.whl:

Publisher: publish-pypi.yml on filipefpaulo/relic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file relic_cli-0.8.7-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for relic_cli-0.8.7-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e777656392f9aeac13727ec3a92532c7d9a76240ad027bfbec53e3dcd5572d1f
MD5 1640f7e0eac77fe0ad7c27e7a0a13a4e
BLAKE2b-256 8ce2696d76724e155eff9065ca7b92de95582517de0d1c2bf83b544fe2f33dc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for relic_cli-0.8.7-py3-none-manylinux_2_17_aarch64.whl:

Publisher: publish-pypi.yml on filipefpaulo/relic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file relic_cli-0.8.7-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for relic_cli-0.8.7-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abfb268ef61565e2bd274334240c4a2efb463052d93a2e52c551fe4a8de89d1e
MD5 2509749d2311aa627d017caf2b6aac91
BLAKE2b-256 b5d013f7e32ec695de7e30eaadc519533b2bbb39a265d66c146984d868ea778a

See more details on using hashes here.

Provenance

The following attestation bundles were made for relic_cli-0.8.7-py3-none-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on filipefpaulo/relic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file relic_cli-0.8.7-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for relic_cli-0.8.7-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b744f66f035c9074a12f4cdaf178a5aef469da44a5bf72e418e6c079fbb293d4
MD5 91a449464c5c4e2a76b13fdf928993d0
BLAKE2b-256 01856586da57ce8b0c9ff45337eb433f45a0004ea2d3931857dc3f01b43dd37c

See more details on using hashes here.

Provenance

The following attestation bundles were made for relic_cli-0.8.7-py3-none-macosx_10_9_x86_64.whl:

Publisher: publish-pypi.yml on filipefpaulo/relic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page