AltimateAI / AltimateAI/altimate-code

Add a dbt-optimizer agent: scan dbt projects for fixable issues with cost/impact reporting

未关闭
#1,091 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
811
派生
134
平均合并
3 天 2 小时
30 天内合并 PR
50

描述

## Feature

Add a new native primary agent, `dbt-optimizer`, that scans an existing dbt project for concrete, fixable issues and proposes targeted fixes with cost and impact reporting. This is the agent behind the planned Optimize workflow.

**Input:** an existing dbt project (connected repository and environment).
**Output:** candidates (detected issues), fixes for user-selected candidates, impact reports (batch effect incl. estimated cost change), and PRs for applied fixes.

**Detection scope** (from the dbt-optimization taxonomy research, `docs/internal/2026-08-12-dbt-optimization-taxonomy-research.md`):
- materialization & incremental processing (strategy-aware: merge / delete+insert / insert_overwrite / microbatch, precondition-gated)
- warehouse physical design (clustering / partitioning / sort keys, query-history gated)
- SQL anti-patterns, DAG economics (fan-out, duplicate scans, dead models), run-level orchestration (Slim CI, threads, full-refresh overuse), tests/docs/storage

**Safety requirements:** scan phase is read-only; warehouse writes denied non-overridably; SQL rewrites gated on decidable equivalence; cost claims only from attributed query-history evidence.

Named `dbt-optimizer` (not `optimizer`) because more optimizer agents are planned later.

贡献指南

打开贡献指南

调研方向

Start with docs/internal/2026-08-12-dbt-optimization-taxonomy-research.md and map its detection areas to the planned dbt-optimizer agent behind the Optimize workflow. Define the read-only scan, candidate selection, fix application, cost/impact reporting, and PR outputs, while preserving the stated warehouse-write, equivalence, and query-history safety gates. Done means the named agent covers the agreed scope without weakening those requirements.

由索引模型根据 Issue 内容生成。

评估

技术栈
sql, typescript
领域
ai, data-engineering
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
32/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。