Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
ci: scope PR workflow runs by changed paths (#1067)
JD Davisff221e634633
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 154528daf..4ead4e7d3 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -16,6 +16,10 @@ on:branches: [main]pull_request:branches: [main]+ paths-ignore:+ - 'docs/**'+ - 'wiki/**'+ - '**/*.md'workflow_dispatch:permissions:@@ -54,7 +58,6 @@ jobs:- 'Cargo.lock'- 'tests/**'- 'scripts/**'- - '.github/workflows/ci.yml'e2e:- 'headroom/**'- 'crates/**'diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex 4a6c7b9cb..63eaf1197 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -1,6 +1,13 @@name: Deploy Documentationon:+ pull_request:+ branches: [main]+ paths:+ - 'docs/**'+ - 'wiki/**'+ - 'mkdocs.yml'+ - '.github/workflows/docs.yml'push:branches:- main@@ -11,11 +18,39 @@ on:workflow_dispatch:permissions:- contents: write+ contents: readjobs:+ validate:+ if: github.event_name == 'pull_request'+ runs-on: ubuntu-latest+ timeout-minutes: 10+ steps:+ - uses: actions/checkout@v6++ - name: Set up Python+ uses: actions/setup-python@v6+ with:+ python-version: '3.11'++ - name: Cache pip+ uses: actions/cache@v5+ with:+ path: ~/.cache/pip+ key: ${{ runner.os }}-pip-docs-${{ hashFiles('mkdocs.yml') }}+ restore-keys: ${{ runner.os }}-pip-docs-++ - name: Install dependencies+ run: pip install mkdocs-material++ - name: Build docs+ run: mkdocs build+deploy:+ if: github.event_name != 'pull_request'runs-on: ubuntu-latest+ permissions:+ contents: writesteps:- uses: actions/checkout@v6with:diff --git a/scripts/validate-workflows.sh b/scripts/validate-workflows.shindex 022b8e803..ea8f69d64 100644--- a/scripts/validate-workflows.sh+++ b/scripts/validate-workflows.sh@@ -34,4 +34,6 @@ run_act act release -W .github/workflows/release.yml -e .github/act/release-publrun_act act push -W .github/workflows/release-please.yml -e .github/act/push-feat.json -nrun_act act pull_request_target -W .github/workflows/pr-health.yml -e .github/act/pr-governance-invalid.json -nrun_act act pull_request_target -W .github/workflows/pr-health.yml -e .github/act/pr-governance-valid.json -n+run_act act pull_request -W .github/workflows/docs.yml -n+run_act act workflow_dispatch -W .github/workflows/docs.yml -nrun_act act workflow_dispatch -W .github/workflows/docker.yml -e .github/act/docker-version.json -n