Instructions
- Confirm Pixeltable is the target. This is a multimodal database with Python APIs and a
pxtCLI, not a knowledge-graph/ontology catalog. Pin repository-level claims toreferences/source.json, then inspect the project's installed version and checkout. - Classify the task: local catalog/table/query, media or computed-column workflow, schema reconciliation, local daemon/config, or hosted Cloud/database/service operation. Read
references/upstream.mdfor exact entry points and documented limits. - Start with inspection. Prefer
pxt --help, per-command help,pxt health,pxt status,pxt ls,pxt describe,pxt columns, andpxt configwhen authorized and available.pxtstarts a local daemon on first catalog command in the pinned docs; do not start one without user approval. - Treat mutation and remote access as distinct. Catalog operations include destructive
drop,drop-dir, recompute, schema update/prune; cloud commands can manage databases, services, organizations, keys, and secrets. Use dry-run where supported, inspect target and impact, and get separate approval before apply. - Handle credentials safely. Pixeltable can resolve environment/config/login settings; provider keys belong in secrets/configuration, not chat. Never print secret values. Hosted Cloud login, credentials, database operations, media upload, and provider calls need separate approval.
- Respect project/config semantics.
pxt initwrites project configuration and can amendpyproject.toml; it refuses some nested-root cases. Verify the selected working directory and existing project root before suggesting it. - Verify outcomes at the right layer. A local config or CLI success does not prove Cloud deployment, remote persistence, correct computation, or media availability. The source preflight checks only selected hashes and never runtime behavior.
Examples
- "Inspect a Pixeltable table and find why a computed column failed." → Start with health/status, table schema, errors/history, and column definition; avoid recompute until its scope is approved.
- "Initialize Pixeltable in this repo." → Inspect cwd and existing root/pyproject first; explain that
pxt initwrites config and ask before the mutation. - "Create an ontology for a data catalog." → Route to ontology/catalog design; Pixeltable is not the catalog-modeling substitute.
Best practices
- Use read-only catalog inspection before schema or data mutation; prefer
--dry-runon supported mutations. - Keep local database, hosted database URI, project configuration, environment variables, and Cloud login precedence explicit.
- Avoid embedding secrets or private media in diagnostic output; scope media destinations and external provider usage.
- Separate daemon health, local catalog state, hosted service state, and application endpoint health in reports.