Local AI-agent execution graphs that identify sender/recipient handoffs with no observed receive in graph.json.
pip install execweave==1.0.1 Copy PIP instructions
English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Français | Deutsch | Русский
See what AI agents actually do on your machine.
In multi-role agent workflows, ExecWeave automatically flags recorded handoffs where a send event has no matching observed receive event, identifies the sender and recipient, and records message_receive_not_observed in graph.json. This is an observation gap, not proof of failed delivery.
ExecWeave is a local-first observability project for AI agents and AI-assisted development tools. It combines provider-level semantics with operating-system runtime evidence and presents them as one interactive execution graph.
Events are evidence. The graph is a materialized view.
An agent can say it used a tool, edited a file, or contacted a service. That is useful semantic evidence, but it is not the same as observing what happened on the machine. ExecWeave keeps those layers separate and lets you inspect them together.
python -m pip install -U execweave For development:
git clone https://github.com/Irish-kw/ExecWeave.git cd ExecWeave python -m pip install -e ".[dev]" Quick start First create an isolated, user-owned virtual environment (no sudo):
python -m venv .venv source .venv/bin/activate python -m pip install -U execweave On Windows PowerShell, activate with .venv\Scripts\Activate.ps1 instead.
Reproduce the built-in negative example before enabling any provider hook:
python -m execweave.observation_demo --output-dir ./observation-negative The example's workload can succeed while evidence remains incomplete. Inspect observation-negative/graph.json and observation-negative/finalization.json; execution_state=succeeded is not the same as complete observation.
If you need provider-specific lifecycle evidence, explicitly approve and install its hook in this user environment; do not use sudo:
execweave hooks install antigravity execweave hooks status antigravity Now launch a real provider (Antigravity's CLI is agy, if installed):
execweave live --open -- agy Other available client commands can be wrapped the same way:
execweave live --open -- claude execweave live --open -- codex execweave live --open -- cursor execweave live --open -- opencode execweave record --open -- codex execweave top -- codex Provider-specific hooks require their own explicit installation/approval. An exit code of zero does not establish recording completeness or task validity.
Since 0.8.35, live only checks hook configuration; it never installs or rewrites it. Explicitly run execweave hooks install antigravity (or claude, codex, cursor, opencode) from your user-owned environment, without sudo. execweave hooks status antigravity checks setup without writing. Provider approval may still be required. Configured does not mean evidence was delivered. Missing delivery and incomplete observation are recorded independently of process exit.
See observation integrity and the negative example for the three result axes and their honest limits. These changes ship in 0.8.35; earlier versions do not contain them.
execweave live and execweave top record the complete provider/model content an integration exposes (prompts, responses, tool values) by default, because the run stays on your own machine for you to inspect. Add --metadata-only when a run must not store that plaintext; --capture-content remains accepted and selects the default explicitly. Invalid capture-policy values fail closed to metadata-only at automatic recorder boundaries.
The live dashboard no longer puts its API credential in ?t=.... The announced URL contains no credential. Browser access uses a one-time pairing code submitted in a POST body and then an HttpOnly; SameSite=Strict cookie; non-browser API clients use the private X-ExecWeave-Token header.
Google Antigravity currently uses the agy CLI command. ExecWeave also accepts antigravity as a friendly alias.
On Windows, bare cursor follows the Cursor installation referenced by the user's PATH. Explicit launcher paths are respected.
ExecWeave supports two common local Ollama workflows.
execweave live --open -- ollama serve Then use Ollama normally from another terminal:
ollama run deepseek-r1:1.5b SDK calls, OpenAI-compatible local requests, and curl requests that reach the managed local endpoint can be associated with the same ExecWeave run. The second terminal does not need another ExecWeave wrapper.
Managed relay mode is intentionally limited to local loopback endpoints. ExecWeave does not rewrite wildcard or externally exposed Ollama listeners.
If an Ollama server is already running, you can wrap the client directly:
execweave live --open -- ollama run deepseek-r1:1.5b This mode does not start an Ollama server. A reachable upstream server is still required.
In both modes the relay forwards every request and, by default, records each inference exchange so the prompts and responses appear in the run and on the dashboard. Add --metadata-only (for example, execweave live --metadata-only --open -- ollama serve) when the conversation must not be stored.
The dashboard is designed to keep large, multi-agent runs inspectable without changing the underlying evidence.
Download GIF saves the graph viewport as it appeared while this Dashboard page was open and visible, including labels, folding, camera changes, and elapsed time (sampled at up to 10 frames per second). It excludes the inspector and logs. A reopened finished run has no recorded screen history and exports a still image. Keep the viewport size fixed for a consistent frame; resizing adds padding rather than rescaling older frames. Recording stops with an explicit message if the page is hidden during a live run, rendering is paused, or the 64 MB recording limit is reached; it never substitutes an animation reconstructed from the final graph.
--fold-budget N --viewer-max-nodes N --viewer-max-edges N --viewer-max-dom-elements N Supported integrations Integration OS-runtime observation Specialized evidence Claude Code Yes when launched under ExecWeave native hooks and provider-supplied conversation/tool content OpenAI Codex Yes lifecycle hooks, validated rollout transcripts, agent/subagent routing where exposed Google Antigravity Yes passive hooks and conversation/subagent routing where exposed Cursor Yes native hooks and task/subagent routing where exposed OpenCode Yes project plugin, session/task routing, supplied plugin content Ollama Yes managed local relay and model-runtime evidence llama.cpp Yes model-runtime event/exchange/probe integration vLLM Yes model-runtime event/exchange/probe integration LM Studio When the local process is observed model-runtime catalog/runtime evidence LiteLLM Proxy When the local proxy is observed gateway metadata and event integration OpenRouter Local client only; the remote service process is not observable caller-supplied gateway event/exchange evidence Provider identifiers such as a tool-call ID, session ID, rollout thread ID, or subagent route are logical identities. They are not automatically OS process IDs. ExecWeave links layers only when the available evidence supports the link.
Agent / IDE semantics and supplied content ↓ Inference gateway / routing evidence ↓ Model runtime / inference-server evidence ↓ OS runtime evidence: process / file / network A relationship is marked causal only when the underlying telemetry supports a causal claim. Conservative bridges remain explicit derived evidence, for example:
inferred: true causal: false An exact shared request identity can prove identity without proving causality:
identity_exact: true inferred: false causal: false If attribution is ambiguous, ExecWeave should leave the edge absent rather than invent a stronger relationship.
Supported integrations can preserve complete values explicitly supplied by provider hooks, plugins, or APIs in a local SHA-256 content-addressed store:
/content/sha256/ . Depending on the integration, this can include prompts, messages, request/response objects, tool inputs/results, assistant responses, exposed reasoning text, shell output, and supplied file content.
complete_from_source: true means ExecWeave stored the complete value delivered by that integration point. It does not mean ExecWeave observed hidden model state or provider-side data that was never exposed.
execweave-claude-record --open -- claude execweave-codex-record --open -- codex execweave-antigravity-record --open -- antigravity execweave-cursor-record --open -- cursor execweave-opencode-plugin --install execweave-opencode-record --open -- opencode Gateways and model runtimes execweave-inference-gateway event --gateway openrouter --sidecar gateway.jsonl execweave-inference-gateway exchange --gateway openrouter --sidecar gateway.jsonl execweave-model-runtime event --runtime ollama --sidecar model-runtime.jsonl execweave-model-runtime exchange --runtime ollama --sidecar model-runtime.jsonl execweave-model-runtime probe --runtime ollama --sidecar model-runtime.jsonl event records one-sided event evidence. exchange records a caller-supplied request/response pair; it does not claim transparent wire interception.
execweave doctor execweave run --backend portable -- your-command execweave run --backend strace -- your-command execweave graph-summary run.graph.json execweave graph-filter run.graph.json --causal-only --output causal.graph.json execweave graph-focus run.graph.json NODE_ID --hops 2 --output focused.graph.json execweave path run.graph.json SOURCE TARGET --causal-only execweave analyze run.graph.json --output analysis.json execweave-rule-pack graph.json --rule-pack local-policy.json --output report.json execweave-integrity seal .execweave/runs/ execweave-integrity verify .execweave/runs/ Run artifacts A provider-integrated run can contain:
.execweave/runs/ / ├── events.jsonl ├── graph.json ├── viewer.html ├── semantic.jsonl ├── content/sha256/... ├── conversations.md ├── conversations.json ├── events.semantic.jsonl ├── graph.semantic.json ├── viewer.semantic.html ├── events.correlated.jsonl ├── graph.correlated.json ├── viewer.correlated.html └── integrity.json Raw observations remain separate from derived semantic and correlation outputs.
python -m ruff check . Issues and pull requests are welcome. Keep new integrations evidence-aware: document what is directly observed, what is supplied by the provider, and what is derived.
ExecWeave is distributed under the PolyForm Noncommercial License 1.0.0. See LICENSE for the full terms.
ExecWeave includes an optional authoritative adapter SDK for CAMEL Workforce, AutoGen AgentChat/Core, and MetaGPT. Adapters emit canonical agent, task, message, model, and tool records; they do not infer logical conversations from process names or network traffic. Content capture is opt-in and hidden reasoning/private reasoning is never captured by the SDK. Transport credentials are removed from semantic metadata.
See the framework adapter guide for the public API, compatibility matrix, live/final parity contract, and official CAMEL, AutoGen, and MetaGPT paper references. Current framework versions still require the corresponding optional dependency and an authoritative callback or event boundary in the application.
Paper context: Li et al., CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society (arXiv:2303.17760, 2023); Wu et al., AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation (arXiv:2308.08155, 2023); Hong et al., MetaGPT: Meta Programming for a Multi-Agent Collaborative Framework (OpenReview, ICLR 2024).
from execweave.framework_adapters import AdapterContext, CAMELAdapter context = AdapterContext.from_environment("camel", capture_mode="prompt_and_response") adapter = CAMELAdapter(context) task = adapter.task_created("task-1", content="Inspect the endpoint and report completion.") When the application is launched by execweave record or execweave live, the adapter automatically joins that run and the finished Dashboard is built from the merged runtime plus framework evidence. Task prompts and routed messages remain local content references and are visible from their task and agent nodes.
For Python applications built with agents.Agent, Runner.run, and @function_tool, ExecWeave provides an optional native trace processor. Install execweave[agents] and register install_agents_sdk_tracing(capture_mode="metadata_only") before running any agents. It records SDK Agent, generation, tool and handoff spans separately from observed OS effects, including source IDs and trace coverage gaps. SDK results do not certify remote-host effects. See the Agents SDK guide.
Use execweave record -- python my_agent.py or execweave live --open -- python my_agent.py to observe the runtime. For OpenAI API-key single-/multi-Agent semantic evidence, wrap the official SDK with OpenAIAgentRecorder and explicitly record each Agent's send/receive handoffs. No API key is read by the adapter, and HTTPS cannot reveal roles by itself. See OpenAI Python integration for synchronous/async calls, privacy and limitations.
All 2 files in this release have provenance metadata.
Other/Proprietary License (PolyForm Noncommercial License 1.0.0)
ai-agents execution-graph observability provenance runtime security
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




