Local codebase and agent graph for AI coding workflows
Project description
Weld
Weld is a local codebase and agent graph for AI coding workflows.
It scans code, docs, CI, build files, runtime configs, repo boundaries, and
AI customization files into deterministic local graphs. Agents can query those
graphs through the wd CLI or MCP instead of rediscovering the repository from
scratch every session.
The primary graph lives at .weld/graph.json. Agent customization inventory
lives at .weld/agent-graph.json.
Install
Recommended:
uv tool install configflux-weld
wd --version
Supported alternatives:
pipx install configflux-weld
pip install configflux-weld
curl -fsSL https://raw.githubusercontent.com/configflux/weld/main/install.sh | sh
Use the source checkout path only when developing Weld itself:
pip install -e weld/
Optional extras:
pip install "configflux-weld[tree-sitter]" # broader language extraction
pip install "configflux-weld[mcp]" # run python -m weld.mcp_server
pip install "configflux-weld[openai]" # or [anthropic], [ollama], [llm]
MCP config generation (wd mcp config) works in the default install. Running
the stdio MCP server requires the mcp extra.
Quickstart
cd path/to/your/repo
wd init
wd discover --safe --output .weld/graph.json
wd build-index
wd query "authentication"
wd find "login"
wd brief "authentication"
wd context file:src/auth/handler
wd graph stats
wd graph validate
The full five-minute tutorial is in the public repository:
https://github.com/configflux/weld/blob/main/docs/tutorial-5-minutes.md
Agent Graph
Weld also maps the AI customization layer around a repository: agents, skills, instructions, prompts, commands, hooks, MCP servers, tool permissions, and platform-specific copies.
wd agents discover
wd agents list
wd agents audit
wd agents explain planner
wd agents impact .github/agents/planner.agent.md
wd agents plan-change "planner should always include test strategy"
Agent Graph discovery is static and repo-bound. It reads known customization files and does not execute project code.
Platform coverage is tracked in the support matrix:
https://github.com/configflux/weld/blob/main/docs/platform-support.md
MCP
Generate client snippets from any install:
wd mcp config --client=claude
wd mcp config --client=vscode
wd mcp config --client=cursor
Run the stdio MCP server from an environment that includes the optional SDK:
uv tool install "configflux-weld[mcp]"
python -m weld.mcp_server --help
python -m weld.mcp_server
MCP documentation:
https://github.com/configflux/weld/blob/main/docs/mcp.md
Trust Model
- Default discovery reads repository files and writes local graph data. It does not execute discovered application code and does not open network connections.
wd discover --safedisables project-local strategies and external adapters.wd enrich --saferefuses network and LLM providers.- Project-local strategies and
external_jsonadapters are trusted-repository features because they can execute code or commands during discovery.
Security policy:
https://github.com/configflux/weld/blob/main/SECURITY.md
Polyrepo Federation
Weld supports workspace roots that contain multiple child Git repositories.
Each child keeps its own .weld/graph.json; the root graph records repo nodes
and cross-repo relationships without duplicating child content.
Start with:
wd init
wd workspace status
wd discover --output .weld/graph.json
Example:
https://github.com/configflux/weld/tree/main/examples/05-polyrepo
More
- Toolkit onboarding: docs/onboarding.md
- Agent workflow guide: docs/agent-workflow.md
- Strategy cookbook: docs/strategy-cookbook.md
- Templates: run
wd scaffoldto write starter strategy files. - Repository: https://github.com/configflux/weld
- Changelog: https://github.com/configflux/weld/blob/main/CHANGELOG.md
- Community and support: https://github.com/configflux/weld/blob/main/docs/community.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file configflux_weld-0.8.2.tar.gz.
File metadata
- Download URL: configflux_weld-0.8.2.tar.gz
- Upload date:
- Size: 482.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee0ccf17f3480a69a67fdee6b08d69d3c26544ae88e39501fc68c5c8bf0ba42a
|
|
| MD5 |
5011ef67c493a6c2a45cba1a1669c6ba
|
|
| BLAKE2b-256 |
a936d56eec956281e44c563f7412f62a59404a369a4a11df3d3ecbf846228465
|
Provenance
The following attestation bundles were made for configflux_weld-0.8.2.tar.gz:
Publisher:
publish-pypi.yml on configflux/weld
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
configflux_weld-0.8.2.tar.gz -
Subject digest:
ee0ccf17f3480a69a67fdee6b08d69d3c26544ae88e39501fc68c5c8bf0ba42a - Sigstore transparency entry: 1383281347
- Sigstore integration time:
-
Permalink:
configflux/weld@1eb5865fa5a45ed1d9fdae23adc4dd4676c1cbcf -
Branch / Tag:
refs/tags/v0.8.2 - Owner: https://github.com/configflux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1eb5865fa5a45ed1d9fdae23adc4dd4676c1cbcf -
Trigger Event:
push
-
Statement type:
File details
Details for the file configflux_weld-0.8.2-py3-none-any.whl.
File metadata
- Download URL: configflux_weld-0.8.2-py3-none-any.whl
- Upload date:
- Size: 589.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
562d5c60be8c8908b37ac1f422a01c176f79b41f0d95e3fe77536aa707f063b6
|
|
| MD5 |
3342ae144f133a69e819d8599b2f00fc
|
|
| BLAKE2b-256 |
c9b69be70e244d91a068bc7181a5276ee0eff919a142c4bb6fa4e138b6a52138
|
Provenance
The following attestation bundles were made for configflux_weld-0.8.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on configflux/weld
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
configflux_weld-0.8.2-py3-none-any.whl -
Subject digest:
562d5c60be8c8908b37ac1f422a01c176f79b41f0d95e3fe77536aa707f063b6 - Sigstore transparency entry: 1383281382
- Sigstore integration time:
-
Permalink:
configflux/weld@1eb5865fa5a45ed1d9fdae23adc4dd4676c1cbcf -
Branch / Tag:
refs/tags/v0.8.2 - Owner: https://github.com/configflux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1eb5865fa5a45ed1d9fdae23adc4dd4676c1cbcf -
Trigger Event:
push
-
Statement type: