How pyligent/pyligent-agents works
Pyligent Agents combines a read-only collateral-agreement review workflow with reusable agent runtime layers. The documented review compares extracted contract terms against source evidence, applies certification gates, and produces a constraint pack; it deliberately stops before allocation or settlement. The agent framework supplies the harness, loop, and crash-resumable graph runtime. Several collateral stages are documented but their implementation files are absent from this tree, so those nodes use only supported paths and uncertain links are omitted.
Main entry points: cli.py Command line · harness.py Tool harness · checks.py Evidence checks · reconcile.py Term reconciliation
Components 21
Collateral review
- Command line
src/pyligent_agents/cli.py - Term extraction
- Term reconciliation
src/pyligent_agents/reconcile.py - Certified constraints
src/pyligent_agents/verify/gates.py
Evidence checks
- Source loading
src/evidencecheck/sources.py - Evidence checks
src/evidencecheck/checks.py - Value normalization
src/evidencecheck/normalize.py - Findings report
src/evidencecheck/report.py - Review console
src/evidencecheck/console.py
Agent runtime
- Stack assembly
src/pyligent_agents/runtime.py - Agent loop
src/pyligent_agents/loop/agent.py - Tool harness
src/pyligent_agents/harness/harness.py - Context management
src/pyligent_agents/harness/context.py - Tool registry
src/pyligent_agents/harness/registry.py - Model client
src/pyligent_agents/harness/client.py
Workflow coordination
- Workflow graph
src/pyligent_agents/graph/graph.py - Graph runner
src/pyligent_agents/graph/runner.py - Checkpoint store
src/pyligent_agents/graph/store.py - Agent verifier
src/pyligent_agents/verify/verifier.py
Other components
- Reviewer
- Optimisation systems
Connections 25
- Reviewer → Command line: runs review
README.md - Command line → Term extraction: accepts extraction
README.md - Command line → Term reconciliation: invokes
src/pyligent_agents/cli.py - Command line → Source loading: loads documents
src/pyligent_agents/cli.py - Command line → Evidence checks: runs checks
- Source loading → Value normalization: uses
src/evidencecheck/sources.py - Evidence checks → Value normalization: normalizes values
src/evidencecheck/checks.py - Evidence checks → Findings report: creates findings
src/evidencecheck/checks.py - Command line → Review console: renders results
src/pyligent_agents/cli.py - Term reconciliation → Evidence checks: checks evidence
src/pyligent_agents/reconcile.py - Term reconciliation → Value normalization: normalizes terms
src/pyligent_agents/reconcile.py - Term reconciliation → Certified constraints: submits for gates
README.md - Term extraction → Evidence checks: provides cited terms
README.md - Certified constraints → Optimisation systems: enables use
README.md - Command line → Stack assembly: builds runtime
src/pyligent_agents/cli.py - Stack assembly → Tool harness: assembles
src/pyligent_agents/runtime.py - Stack assembly → Graph runner: assembles
src/pyligent_agents/runtime.py - Agent loop → Tool harness: runs model and tools
src/pyligent_agents/loop/agent.py - Tool harness → Context management: manages context
src/pyligent_agents/harness/harness.py - Tool harness → Tool registry: dispatches tools
src/pyligent_agents/harness/harness.py - Tool harness → Model client: requests completion
src/pyligent_agents/harness/harness.py - Agent loop → Agent verifier: verifies work
src/pyligent_agents/loop/agent.py - Graph runner → Workflow graph: validates graph
src/pyligent_agents/graph/runner.py - Graph runner → Tool harness: executes nodes
src/pyligent_agents/graph/runner.py - Graph runner → Checkpoint store: checkpoints runs
src/pyligent_agents/graph/runner.py