Skip to main content

Forge — AI Agent Harness SDK for Python. Wrap any AI agent with 12-dimension observation, 16 detectors, 14 autonomous intervention strategies.

Project description

Forge SDK for Python

Wrap any AI agent with 12-dimension observation, 16 detectors, and 14 autonomous intervention strategies.

Installation

pip install forge-agent-sdk

Or from source:

cd packages/forge-py
pip install maturin
maturin develop

Quick Start

from forge_sdk import create_harness, quick_run, list_presets

# See available presets
for p in list_presets():
    print(p)

# Quick run — simplest way to try Forge
result = quick_run("Write a function to validate email addresses")
print(f"Success: {result.success}")
print(f"Observations: {result.observation_count}")
print(f"Detections: {result.detection_count}")
print(f"Interventions: {result.intervention_count}")

# Or use a harness directly
harness = create_harness(preset="solo")
result = harness.run("Refactor the auth module to use JWT")
print(result.to_dict())

API Reference

create_harness(preset="solo")

Create a Forge harness with the given preset. Presets: solo, claude-code, langgraph, crewai, autogen, langchain, dspy, llamaindex, aider, cline, continue, copilot, cursor, windsurf, devin, custom

harness.run(task)

Run a task through the harness. Returns HarnessRunResult.

harness.run_with(task, preset, turns)

Run with custom preset and turn count.

harness.dry_run(task)

Observe and detect, but don't intervene.

quick_run(task, preset="solo", turns=4)

One-shot convenience function.

HarnessRunResult

  • agent_id — Agent identifier
  • success — Whether the task succeeded
  • observation_count — Number of pipeline observation cycles
  • detection_count — Issues detected
  • intervention_count — Interventions applied
  • to_dict() — Convert to Python dict

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

forge_agent_sdk-0.1.0-cp314-cp314-macosx_11_0_arm64.whl (629.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

forge_agent_sdk-0.1.0-cp312-cp312-win_amd64.whl (511.2 kB view details)

Uploaded CPython 3.12Windows x86-64

forge_agent_sdk-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (745.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (629.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

forge_agent_sdk-0.1.0-cp311-cp311-win_amd64.whl (513.0 kB view details)

Uploaded CPython 3.11Windows x86-64

forge_agent_sdk-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl (746.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (631.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

forge_agent_sdk-0.1.0-cp310-cp310-win_amd64.whl (513.2 kB view details)

Uploaded CPython 3.10Windows x86-64

forge_agent_sdk-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl (746.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (631.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file forge_agent_sdk-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03bdbbcc1dbef0fb57f6cc0bc1b0677fe74529818b0aff254f2452f60f559263
MD5 5b0a24b65f3c1c442f1d1d9c0729f3f9
BLAKE2b-256 35bd9458caa2aa20f578be58f05d6c35a020e12745f5f4462788cd6826886a53

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c8e83ff106b23333b3b4cb8d9dd6e9310c1b0e2baef774f1a719c34f95d31c6e
MD5 9d720ce3968ccd9b9fafd82dfab902d6
BLAKE2b-256 5967807eeb4c10fa5356b1521596e97c35b17d53c6b13cd30384c4db7286ad0c

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2818c5070c4e80948e721a0b4ada6a30829e34617c0e33d532ced111a93c7e39
MD5 041390b0a214635736b9459e13dbf257
BLAKE2b-256 b00c1274ce2be8ac217b9420814627ca16db4bf324be8015ab96e78dbd17c1c5

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39cd3dc0660747809633568ce85df41132a2da71d22fc8372b6397c7e28997ea
MD5 4989027125ed8ae10e06a5b3f2469734
BLAKE2b-256 8e6c7b5f904c2f5e75bb24190e9c1ecbdf5313b664a9f11c1c1e8fe73f0777a5

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b1a5d0cfa5c7fd39cbe1235c3b91c3decc55cfb501ff552c4c581f0f39894814
MD5 1481b403071b38cc4e4467df762ceea8
BLAKE2b-256 34279ebe57bd76e7e0e648aa6f5bbc8ac603c9e31ae0aa4346171876719aeb44

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6de2d580295756103252b9a4b18a41ea0b243f860fe2e6326176a750cdac26b5
MD5 4fb89f64fe8d82ac2172ae795e62e3ef
BLAKE2b-256 b3f4df70a7ecb2090d3f70d5637926b073ec1d41ff83a92cf80f19367fb0b977

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22da95b1fb2909f754ef24826aec901ed2b9189e369c4810baec2b511c4988a8
MD5 934ec141540d2ea83ca373fdc50570ec
BLAKE2b-256 99b68b78a07b79ec33e0dce42c2b8099cbd1050db34fc44a39521569006d95a3

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a27aff98c3f37b9e93438f452f2ec232b679ecaac5c725e9d86ba43ffa889a38
MD5 ec1fb4cd5c55bb877b298e29998dbae0
BLAKE2b-256 1588c31e2d9909e084666086d3073a7f41ad947b78ed2e52565bebc5b766c6d4

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4a6f4d55feb10fc65667832ff693c628ef36f99a2dff5efc18dbbf4c5ed83f6a
MD5 c333bcfe1eac8228838e1adb9f410fa6
BLAKE2b-256 62eda254d7c7cc602fdc38fca1ad4710645f707b3f3cc092d41f0b5a01c3ecaf

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c59c8e4d0a9d2bb49572f8fb1d314fede9fd18fec0efff2a9b2c0255ef1c7e0a
MD5 e889fb5b92cf12c181bce603ec7887b4
BLAKE2b-256 eb09b3120726875041fac6c3d21018c238c0fa74ef670820f829183a9f536c0a

See more details on using hashes here.

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