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.1-cp313-cp313-win_amd64.whl (512.0 kB view details)

Uploaded CPython 3.13Windows x86-64

forge_agent_sdk-0.1.1-cp313-cp313-manylinux_2_34_x86_64.whl (745.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.1-cp313-cp313-macosx_11_0_arm64.whl (629.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

forge_agent_sdk-0.1.1-cp312-cp312-win_amd64.whl (512.5 kB view details)

Uploaded CPython 3.12Windows x86-64

forge_agent_sdk-0.1.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (628.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

forge_agent_sdk-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl (746.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (631.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

forge_agent_sdk-0.1.1-cp310-cp310-win_amd64.whl (513.3 kB view details)

Uploaded CPython 3.10Windows x86-64

forge_agent_sdk-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl (746.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (631.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file forge_agent_sdk-0.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 73ac5552f60d3b670485c6392e396984bb7d927e25604484b54b9a83ae087c63
MD5 65f99aa244e7139174b589df3096074d
BLAKE2b-256 13f80409367685da69f715977d409f91a8aa52b1ef487bd3144e168c5bd6f5c9

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8e695fcaf4f8fde073cd9b8c45e5e65d10b986baf2b81e297740b0e415d13c91
MD5 0db13592a3e1fe06a08fe914024c2e45
BLAKE2b-256 269439c3c74c24973d0012d504498a64a5acd596dcf35ee52c9c3ea54566b0a7

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 982aff8c8acc19cf76609b5da841bf7bb313e5ea61071bb51446e8bf6cc5deaa
MD5 c15723b6db62ab682bb3657beec05123
BLAKE2b-256 58b52d02a092ca94f5f102cf5c1dc41b339783c3c825904918e255ca4e38bacc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 22bd5b8edefeb954a2eada7ee5924a78fc951e2ae1e8a8464d16312b1ac712ce
MD5 ab394b8da641e5ee3204652eae25162e
BLAKE2b-256 5813f764b2fa9eee91328681de81135c85f227f2258d65fca23ffb33704557ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fd0295d31b2a381c1987ba790b5b318b4273194e9f2fff20ee8b2639c10318d8
MD5 1a5a39727fb78a2fca8f01e944a1abf7
BLAKE2b-256 ce0c534ecf2e20639fc0cae1b38ca75ea4999569406b8090d58fa969450749ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 391675a3083a24a1c5dc6b3d1823758be4c1023afbcee2622a913e75e054a74c
MD5 c2f8bb48650733eddc58549880023fe7
BLAKE2b-256 0b07689077e8d544e7f9c2c80cf98caf6fb25017264801569e9cf7b3ba1e1323

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 54f8324b5d799b9098f48725693ea2caa35e7ae1612688aefe21a69465d22231
MD5 699a06e33b376b667eedf16b0ee4f636
BLAKE2b-256 b433b86aa04a9e106e003367b30a89f2e663229d3e92ed2767631a17e7f15040

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2fe08b90d1162b7e561758b543f97579d7f1454c6ad0850776df6ff403063865
MD5 ecd936b1cbcc465e600f9b37c7a8fe0f
BLAKE2b-256 dcc482d2608719aab479b9c308ee688bdad5b3a2cb5ffb9f563b127bc42af496

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b83fc9a8c347e17b7d46b51e83304887753d79df7fe383dd2b72c16397987883
MD5 ed7f0075d05ad5370a64080fdb7eea06
BLAKE2b-256 d8cf8aa89af72fadddde1dcf3eb2c65710d85ce4792fa84bb55b6ba2ffe9a90f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c61e8c10010cf1dfccca0d73e1dd45b95af13082495d3259f3a34fd090a08235
MD5 82c90d35acd812173715691bd0f0cea0
BLAKE2b-256 4c102bf83271c61fb6d9b648754812acf26af797260ef917385a776965405dd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 af9f0237abe50602429001d482079940c359df12c5a5fc6b88cab8bcf3622fb1
MD5 5bdd4aa7187694ad8dab35e77a267cf9
BLAKE2b-256 3db0c5f268bfbde20347cfb37e6a4e9b4a6a8102e49cb46eb92b53ef8b8ac618

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84cc9cf0a6696e637083c52f6f7773121b8df0ba0f1c4cfbff5b03430f3cdd07
MD5 4329241784e15d7448514a9d7980c43d
BLAKE2b-256 aef4e06bd23348b8ac7e99aad5adbbfb3c2f15c52a30828cb62b5d2c2de8e14b

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