Skip to main content

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 --safe disables project-local strategies and external adapters.
  • wd enrich --safe refuses network and LLM providers.
  • Project-local strategies and external_json adapters are trusted-repository features because they can execute code or commands during discovery.

Security policy:

https://github.com/configflux/weld/blob/main/SECURITY.md

Local Telemetry

Weld records the success or failure of every wd CLI invocation and MCP tool call to a local-only file. Nothing leaves your machine; there is no remote endpoint and no upload.

Each event is one JSON line with a strict allowlist: subcommand or tool name, exit code, duration in milliseconds, and the exception class name on failure. Paths, query strings, error messages, flag values, and usernames are never recorded. The redaction runs at write time, so the file on disk is already safe to attach to a bug report.

In a single repo the file is <repo>/.weld/telemetry.jsonl. In a polyrepo workspace every event aggregates into <workspace_root>/.weld/telemetry.jsonl. Invocations outside any project fall back to ${XDG_STATE_HOME:-~/.local/state}/weld/telemetry.jsonl. The file is gitignored and rotates at 1 MiB.

Opt out with any one of: WELD_TELEMETRY=off, --no-telemetry, or wd telemetry disable. Use wd telemetry --help to inspect, export, or clear the file. The full event schema and design are documented in docs/telemetry.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 --safe --output .weld/graph.json

Example:

https://github.com/configflux/weld/tree/main/examples/05-polyrepo

More

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

configflux_weld-0.12.1.tar.gz (534.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

configflux_weld-0.12.1-py3-none-any.whl (651.1 kB view details)

Uploaded Python 3

File details

Details for the file configflux_weld-0.12.1.tar.gz.

File metadata

  • Download URL: configflux_weld-0.12.1.tar.gz
  • Upload date:
  • Size: 534.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for configflux_weld-0.12.1.tar.gz
Algorithm Hash digest
SHA256 79be475ab92780304cb6474846584181beeba78432c19058c34cf255f4473492
MD5 62183d44572138dec616e8acc0b72798
BLAKE2b-256 82084aaacf2f4ef5b2cca2ab7680af1d90555acbc82d4e0d9c0494306492305d

See more details on using hashes here.

Provenance

The following attestation bundles were made for configflux_weld-0.12.1.tar.gz:

Publisher: publish-pypi.yml on configflux/weld

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file configflux_weld-0.12.1-py3-none-any.whl.

File metadata

File hashes

Hashes for configflux_weld-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5de14087bfcd60df742df74df117b643afedc1ec5bb6a05a3e68a840cb28b25
MD5 b60ddfd06f36ee3aff199fc09d9f9583
BLAKE2b-256 6192635aadc80265d178f69037bb207cd316c5ae98d45c7e151e60800c4f804f

See more details on using hashes here.

Provenance

The following attestation bundles were made for configflux_weld-0.12.1-py3-none-any.whl:

Publisher: publish-pypi.yml on configflux/weld

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page