Skip to main content

CLI for Quark-AI — cognitive fingerprinting for AI agents

Project description

quark-agent

Git for AI agents. Cognitive fingerprinting CLI for Quark-AI.

pip install quark-agent

Quickstart

quark init                                       # initialize repo
quark login                                      # authenticate

quark snapshot --agent gpt-4o \
  --prompt "You are a customer support agent"    # capture a fossil

quark list                                       # list fossils

quark diff abc12345 def67890                     # compare two versions

quark restore abc12345 --to behavior_v1.md       # export behavior card

How it works

Each quark snapshot runs your agent description through 7 calibrated cognitive probes and captures the behavioral fingerprint — its reasoning patterns, invariants, and stability score — as an immutable fossil.

quark snapshot --agent my_agent --prompt "…"
  │
  ├─ 7 probes: direct · rephrased · abstract · concrete
  │            adversarial · minimal · contextual
  │
  ├─ Embedding matrix (7 × 256) → cosine similarity
  │
  ├─ stability_score σ   (0 → 1, higher = more consistent)
  ├─ behavioral_invariants  (persistent patterns)
  ├─ cognitive_signature    (fingerprint string)
  └─ sensitive_zones        (instability hotspots)

Commands

Command Description
quark init Initialize .quark/config.toml in current directory
quark login Authenticate (saves token to config)
quark snapshot Capture a cognitive fossil
quark list List fossils
quark diff A B Compare two fossils — drift, stability delta, invariant changes
quark restore ID Export behavior card (markdown / prompt / json)

CI integration

# .github/workflows/quark.yml
- name: Snapshot agent
  env:
    QUARK_TOKEN: ${{ secrets.QUARK_TOKEN }}
    QUARK_API_URL: https://quark-ai.cordee.ovh
  run: |
    pip install quark-agent
    quark snapshot \
      --agent "${{ github.repository }}" \
      --prompt-file system_prompt.txt \
      --tag "${{ github.ref_name }}" \
      --json > fossil.json

Options

All options can be set via env vars:

Env var Description
QUARK_TOKEN JWT auth token (overrides config file)
QUARK_API_URL API base URL (default: https://quark-ai.cordee.ovh)

Built on Quark-AI — infrastructure de fossiles cognitifs.

Project details


Download files

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

Source Distribution

quark_agent-0.1.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

quark_agent-0.1.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file quark_agent-0.1.0.tar.gz.

File metadata

  • Download URL: quark_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for quark_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f07bfd2a147257edfb26922c373c22cd06d29f1a492861b47f3cf530ecdb3797
MD5 5962175c78d748f861116e2291a8d1d4
BLAKE2b-256 e1324d61fe9ad9ae481fc38dfe09f40d8c3ba5a26d8cdd93fef27ee7ca47c5d2

See more details on using hashes here.

File details

Details for the file quark_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quark_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for quark_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aacc55481584dfa867c877a14833e9feff9335dbd52215ac202b30667d7dea4c
MD5 6d032e3c3741de4cdd4b5e51dbee4096
BLAKE2b-256 53b03a3715b0fed07bf9681cd5b02f0774edbb27dd0e39da8a5feefe0c47b65e

See more details on using hashes here.

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