Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/open-metadata/openmetadata/test-locallygit clone --depth 1 https://github.com/open-metadata/OpenMetadataWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00026 | $0.00727 |
| Opus 5 | $0.00013 | $0.00364 |
| Sonnet 5 | $0.00005 | $0.00145 |
| Haiku 4.5 | $0.00003 | $0.00073 |
Grade A, and why
test-locally scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Connector Locally
Build, deploy, and test a connector in a full local OpenMetadata stack.
What This Does
- Runs code generation (Python Pydantic models from JSON Schema)
- Builds the Java backend + UI (unless
--skip-maven) - Builds the ingestion Docker image with your new connector
- Starts all services: MySQL/PostgreSQL, Elasticsearch, OpenMetadata Server, Airflow
- Loads sample data and triggers search indexing
- Opens the UI at http://localhost:8585
Steps
Step 1: Activate the environment
source env/bin/activate
Step 2: Run code generation
make generate
This generates Python Pydantic models from the JSON Schema you created/modified.
Step 3: Build and deploy
Full build (first time, or if Java/UI changes were made):
./docker/run_local_docker.sh -m ui -d mysql -s false -i true -r true
Skip Maven (ingestion-only changes — much faster, ~2-3 minutes):
./docker/run_local_docker.sh -m ui -d mysql -s true -i true -r false
Step 4: Wait for services
The script automatically:
- Waits for Elasticsearch to be healthy
- Triggers sample data DAGs
- Triggers search re-indexing
This takes 3-5 minutes on first run.
Step 5: Test in the UI
- Open http://localhost:8585
- Go to Settings → Services → select your service type (Database, Dashboard, etc.)
- Click Add New Service
- Select your connector from the dropdown
- Fill in connection details and click Test Connection
- If test passes, run metadata ingestion
Ports
| Service | URL |
|---|---|
| OpenMetadata UI + API | http://localhost:8585 |
| Airflow | http://localhost:8080 (admin / admin) |
| MySQL | localhost:3306 |
| Elasticsearch | http://localhost:9200 |
Tear Down
cd docker/development && docker compose down -v
Rebuild After Changes
If you modify connector code and want to redeploy:
# Stop existing containers
cd docker/development && docker compose down
# Rebuild with skip-maven (fast)
cd ../.. && ./docker/run_local_docker.sh -m ui -d mysql -s true -i true -r false
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 108 lines · 26 tokens per session scan A 2da5fa400fb1
test-locally is a command published in the GitHub repository open-metadata/OpenMetadata (15,059 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 727 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
test-review
Review DataHub smoke and integration tests for standards compliance and quality.
e2e-devcontainer
Run E2E tests in a dev container (isolated environment).
validate-2
Run comprehensive end-to-end validation of the Remote Agentic Coding Platform including Docker, Test Adapter, Database, and full GitHub workflow execution.
vios-sqa
VIOS SQA agent — build containers, deploy, run BDD tests, and validate web UI.
post-release-testing
You are a post-release testing agent. Your job is to verify that a sandbox-agent release works correctly.
e2e
使用 Playwright 对 Web UI 进行端到端测试(支持视频录制、Trace 录制、控制台/网络日志捕获).