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 identifiersuccess— Whether the task succeededobservation_count— Number of pipeline observation cyclesdetection_count— Issues detectedintervention_count— Interventions appliedto_dict()— Convert to Python dict
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file forge_agent_sdk-0.1.2-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 511.9 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f67bc6a0db0eafd2242c7176e38b31142969bdcc4ddec2a3543e5baa5ce19d3
|
|
| MD5 |
587dc14317d0aac1084aa9bbac0e34a3
|
|
| BLAKE2b-256 |
1482cfd5d0aef1d9a4329540a2cb2e3242c68194cd2ad52b0a7c81eb86d016e0
|
File details
Details for the file forge_agent_sdk-0.1.2-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 745.8 kB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
054258f46b52ca8534fd09cbde52db262168c7edb9331a52fbe03c987b57f560
|
|
| MD5 |
fdd7af0409777d754c7a2dcec49666f3
|
|
| BLAKE2b-256 |
0c09fd78853d40877ea5b566c84c9c789b0d724157b7cfbfb94478847ce4131b
|
File details
Details for the file forge_agent_sdk-0.1.2-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 629.1 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6412c7a1a2c1703f7f823c594ee42b8c0468d6ea104c525d23085e6a38aedd7a
|
|
| MD5 |
32cb2580aa93ea1db3e42bf9f425a95b
|
|
| BLAKE2b-256 |
bdb65097533fb9e2f5e3452da503909dc0965ccd38c40df23fe14ed5c8619c1b
|
File details
Details for the file forge_agent_sdk-0.1.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 512.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625ff317fcc93aed880ae0d331dfd62bbfd7a925c838e78de205376e95a38614
|
|
| MD5 |
001262c97fbff5290a7455b095a96174
|
|
| BLAKE2b-256 |
ea4ad00c43b004f64225e7cf47124ad01967f31fa3cd06e55dbbddaea0321092
|
File details
Details for the file forge_agent_sdk-0.1.2-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 745.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4af9a5cd9d546c8f47a06fca656221d49d2eea10e30ccf3ca4d46518baa6a4da
|
|
| MD5 |
f41c0f4f54e491f348e4a61736e2fa8c
|
|
| BLAKE2b-256 |
778b9595b860a346196f12e868591162fa5657035bea05ad7a07e469ebde87ef
|
File details
Details for the file forge_agent_sdk-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 628.9 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3297643eb775678b4a999e657ca3953c7724d031479065802ef963d57e3d4b9b
|
|
| MD5 |
c7e4cde871c18d34029cf869b33e965a
|
|
| BLAKE2b-256 |
835623ada389a506b48dde9aa4d1c152f63b47212f4de45235f67d29c7fd28e1
|
File details
Details for the file forge_agent_sdk-0.1.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 513.0 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6123e637946816ef4d11a96954ca63dac0505a47b0deaac6eccac03ac57aa58
|
|
| MD5 |
dbf22d5a1b4de2a15f107aeab66140ad
|
|
| BLAKE2b-256 |
18a82b8a02a0d319c72ada7c6e8823df6c9d821726536cdda5051f2bf12000ee
|
File details
Details for the file forge_agent_sdk-0.1.2-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 746.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb263f1da1b5fe95ea9067f6b03531530324ffeb22e1776512abfd0782f43940
|
|
| MD5 |
fc4e64df0e19f53de07beeafe3968e6e
|
|
| BLAKE2b-256 |
91fb025968e89549638e1bdce8c5b2d8db95aaf01a7a9bda445dfd9b90643dbd
|
File details
Details for the file forge_agent_sdk-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 631.2 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa65413d7cccb6f48bdf27edae087e3ffef3bd58b4b42dd15698300f6a8503d8
|
|
| MD5 |
3c238cf39901a7cf23094a41431ef22e
|
|
| BLAKE2b-256 |
213fc8c6319d60dbf02bff3a993d540e6345e19c9a41212c133dc3e3e7fee204
|
File details
Details for the file forge_agent_sdk-0.1.2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 513.2 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1423f184196c91cbb5e669503f31bbba159f15ad471247ddf2c1b322dba122e
|
|
| MD5 |
7fb762524df8855058d855915192adbc
|
|
| BLAKE2b-256 |
5942054c7ef99f3ca8a3ccd41c8fcf996ba39d418d7765c95e016174ad423891
|
File details
Details for the file forge_agent_sdk-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 746.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae2dbbd09100f2a71d701069263a939266f07ebdda0a0f3869da6cd8751c2d2c
|
|
| MD5 |
b5d969301621d74cd4069f14772b0835
|
|
| BLAKE2b-256 |
7a19a494fb0f202365280fc778e94c12f991b298f5d73f55f91e3cc89eab38aa
|
File details
Details for the file forge_agent_sdk-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: forge_agent_sdk-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 631.4 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5193a47fda11977c654c121550b64eb0a4e86b576653cf99fdb2c08a6b5cd114
|
|
| MD5 |
ce27e5559e2e7c02766539c774fca205
|
|
| BLAKE2b-256 |
f98dcfa3ef50e98c64afcab7684fe914b45c59c0287c3881997c804228b32031
|