Python SDK
Installation
uv add cq-sdkpip install cq-sdkQuick Start
from cq import Client, FlagReason
cq = Client() # Auto-discovers config; falls back to local-only.
# Query.
results = cq.query(domains=["api", "stripe"], language="python")
# Propose.
ku = cq.propose(
summary="Stripe 402 means card_declined",
detail="Check error.code, not error.type.",
action="Handle card_declined explicitly.",
domains=["api", "stripe"],
)
# Confirm / flag.
cq.confirm(ku.id)
cq.flag(ku.id, reason=FlagReason.STALE)
# Get the canonical agent prompts.
from cq import prompts
skill_prompt = prompts.skill()
reflect_prompt = prompts.reflect()Configuration
Variable
Description
Default
Knowledge tiers
Dev Setup
Testing
Linting
License
Last updated