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.3-cp314-cp314-win_amd64.whl (511.9 kB view details)

Uploaded CPython 3.14Windows x86-64

forge_agent_sdk-0.1.3-cp314-cp314-manylinux_2_34_x86_64.whl (746.1 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.3-cp314-cp314-macosx_11_0_arm64.whl (629.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

forge_agent_sdk-0.1.3-cp313-cp313-win_amd64.whl (511.9 kB view details)

Uploaded CPython 3.13Windows x86-64

forge_agent_sdk-0.1.3-cp313-cp313-manylinux_2_34_x86_64.whl (746.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.3-cp313-cp313-macosx_11_0_arm64.whl (629.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

forge_agent_sdk-0.1.3-cp312-cp312-win_amd64.whl (511.4 kB view details)

Uploaded CPython 3.12Windows x86-64

forge_agent_sdk-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl (746.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (629.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

forge_agent_sdk-0.1.3-cp311-cp311-win_amd64.whl (512.9 kB view details)

Uploaded CPython 3.11Windows x86-64

forge_agent_sdk-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl (747.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (632.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

forge_agent_sdk-0.1.3-cp310-cp310-win_amd64.whl (515.1 kB view details)

Uploaded CPython 3.10Windows x86-64

forge_agent_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl (749.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

forge_agent_sdk-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (635.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file forge_agent_sdk-0.1.3-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e97853a90024a915b3b0714a37b837fc353f96eec85ee4f63133499e18134741
MD5 4c952d224ab70a0d711ff1d484fafee9
BLAKE2b-256 9757d45fa6d86f4f9195560f5ae1051df016e20ea18d8c773e624fc78a30770f

See more details on using hashes here.

File details

Details for the file forge_agent_sdk-0.1.3-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3633b472fb329d9807e10a55bdd197a0fd23f158c857d04ff51a5b39ac50968a
MD5 a5531f3fb067ef59733866d0665dd567
BLAKE2b-256 c27426f6844ff76070155e5cd609b322428264317b00392ea2c11095903c0610

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20854a7fec28c4576ec5b597a649ed92347241fb51f927896cc84a898cd1d018
MD5 f52c4d1347ec7bacbcef614c30996890
BLAKE2b-256 a0202bbc6ccfd1cc3174b28052945e311215671976187e631503fe5459d730c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5c60bed8ab35f8bd043e7ca7895543caa510434a1cffa6d48ae03f4968d56044
MD5 521b4b03893e6828a2aa7ea58fe9252d
BLAKE2b-256 085816f819a8527df0d38e6de5bd3048fbb880c62050c5a49794d09175abfe0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 34bc8a2e6d02c1031cb3f5ce08839db233866c45ddfecf6ca49ddc764ae0f3b5
MD5 8f0629460b514bcb4224c4436f87b671
BLAKE2b-256 fc6fd56a1bdde6c540c3935b62be0a4f529ea079dc22e32522737721d9f310da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72d6efd07e8beb50c509aa2ba2e6170ddc7629332e06d0d1db8e000dac6b57f8
MD5 6f85258cab104d93e5874852227f1b44
BLAKE2b-256 bc03b18e28ee89ac2bdf15a48bf6e52961af829cb9fd8a0d1ae8d1a2fa6bf365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 889c23396372455a03b7bc4386af1bbd085d0ad2aebbf20751c3e080e5bafd01
MD5 badc50efc6ba8f6d3f63231c738bc8c2
BLAKE2b-256 1fd46bbd31caed16010601f4899227f53ce40dd66073b630d44a51cebd541036

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5d080b9575f4f20c1a864e74f8697cbaf26fd606c4330a4d6775b4efe84e392a
MD5 dda686b10b6d7ebc8082364652ed8c93
BLAKE2b-256 86523110a466d3e1ef9461a7bb2a258ae649d939b445dff1f199f18a5f10b38c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fe45ddcb1e11d7d1dcdef1170046fb845d68ce3bc625f383c4446b695684f35
MD5 f765302bee57c536f1faa65641cfe12f
BLAKE2b-256 ba49cc22f8996c51d97af59c0772ec6044b7206e72b69395450602e5aa0f31f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b14b9b3a53d32049911a7b066136c20e9c182accf8390dfcd205d974dc4e4c41
MD5 9559d7d71de17040a524ecd403fca573
BLAKE2b-256 a56d0998fa1ba0db9c1386dcb5ae6a21a96eb453f8e90fae96d1573b5958fd3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 988c2d1e53957e305834017eb8de79a2241e1ad083d14e50150210a21f492c47
MD5 2fa9c756fc8bc6156abbbfecbc2faea4
BLAKE2b-256 40a6143488e160158989a3794b150a6c510ed73d2e230a21ab3e53bf05da7f68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8565c2b4c5ec0cde12818722bfddd31694e8865599e6436db058412cc7edb640
MD5 191484b42d262529ebca045641843c08
BLAKE2b-256 c631189a62d2d6386ea8a3a95551aa03ba8963de92092b971437f092c8133981

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 99dd09f550ee1c05a38808c52df0482d040ce0e788c9343a4531111bfb68204d
MD5 fec59a6d8460c057cbd9416d01bf6a1b
BLAKE2b-256 49c8b8215fb71fceac52bb62bd7c3697612dbbf567bf134e57ef7b9d4c568465

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f47658fb5b9a2e6fad29bf1ad4df95099eec464256d80c67907a0dce400a46c9
MD5 647b784fee3b0aa751dad4310dbf0a71
BLAKE2b-256 2d50f18389e032397be3b8780339b9f2fa58e6f8a3100b2afedb644fb9afca7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forge_agent_sdk-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8faf67ac020bae2d057f19a9aab5ce73addc154ff59556a90b1276b8f68ec57d
MD5 77466f0a8d1e30df080aa83d33b39d19
BLAKE2b-256 7779b26dd5e899b7447f45e1362ce67591fc39774a7c325f0984377801a75e8f

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