Skip to main content

Scriptable interface to a powerful, multi-lingual language server built on top of Tree-sitter

Project description


The SWE that Never Sleeps

PyPI Documentation Slack Community License Follow on X


The Codegen SDK provides a programmatic interface to code agents provided by Codegen.

from codegen.agents.agent import Agent

# Initialize the Agent with your organization ID and API token
agent = Agent(
    org_id="YOUR_ORG_ID",  # Find this at codegen.com/developer
    token="YOUR_API_TOKEN",  # Get this from codegen.com/developer
    # base_url="https://codegen-sh-rest-api.modal.run",  # Optional - defaults to production
)

# Run an agent with a prompt
task = agent.run(prompt="Implement a new feature to sort users by last login.")

# Check the initial status
print(task.status)

# Refresh the task to get updated status (tasks can take time)
task.refresh()

# Check the updated status
print(task.status)

# Once task is complete, you can access the result
if task.status == "completed":
    print(task.result)  # Result often contains code, summaries, or links

Installation and Usage

Install the SDK using pip or uv:

pip install codegen
# or
uv pip install codegen

Get started at codegen.com and get your API token at codegen.com/developer.

You can interact with your AI engineer via API, or chat with it in Slack, Linear, Github, or on our website.

Resources

Contributing

Please see our Contributing Guide for instructions on how to set up the development environment and submit contributions.

Enterprise

For more information on enterprise engagements, please contact us or request a demo.

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.

graph_sitter-0.56.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.34+ ARM64

graph_sitter-0.56.3-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64manylinux: glibc 2.5+ x86-64

graph_sitter-0.56.3-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

graph_sitter-0.56.3-cp313-cp313-macosx_10_13_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

graph_sitter-0.56.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.34+ ARM64

graph_sitter-0.56.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64manylinux: glibc 2.5+ x86-64

graph_sitter-0.56.3-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

graph_sitter-0.56.3-cp312-cp312-macosx_10_13_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

File details

Details for the file graph_sitter-0.56.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 21cd38d3f00be396b36e9883f98f1ea0fe490059bc4e22e05cdc5f435b361d80
MD5 1e81c8df1d6f690c98e458f07a5c516f
BLAKE2b-256 390acab5ee93571e355fc8d9148c3732b94afd17fbb390bb916f2bdd29ef3442

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.3-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2a577ad9c54364b0bd44441f1add4428e0f5b9fc4ddcdadd63d81b73c181d679
MD5 8dc2ff1fbd74010000eb66658d42b574
BLAKE2b-256 c79280f87efe83afd562da757d9bb1babadb0cc23d2178d7dab87bdf7643ce28

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2a66b8e0a25b3406209548ceb660e541c9c4ab5239f09bcd9e618c017421c60
MD5 37e2bc241187343bac1025f061846dba
BLAKE2b-256 3bf7b955ac512309951b52f6d69f0099120163a4add6b68ce73f6247f41aa48b

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.3-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7694a7bada92b55e0ed9371942085cee3253c927f1596d85c1901dbea6508c2c
MD5 9104f28eb43243ef8d8da84542cfde49
BLAKE2b-256 30fcc0cc1d61fc6cc955c1e79d387bedde93b9f04a9ddf19466f8082aa44ab5e

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 67813241699626ee41745e96a40216074384601166bcf682d109b147ae2a15ad
MD5 d03dc7d24dafe61f851188ac7ff09d2e
BLAKE2b-256 9340d1050196ab9326c3b01265210b11ac99fc12da14e5bbc316ebd3d88d3228

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 08e9391c9bffa835d6cba37d9911ef3e2bb8ab9dccb1e503f3de7661849ac431
MD5 d0826a73f9a38e8da5be3ca66e6e4588
BLAKE2b-256 a722dcdd280e916b246773d30bb532224d8e36b47edb33ee7f6e47e2ab20b0eb

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54e83d7c6a42423f451334daf3ef233bb0345027004edd69ed841ab89eda9a66
MD5 3414f3142932a98878703a85e6e89439
BLAKE2b-256 a5e8aa504401c7279d05cf8822c0b68427557e92cde3cbdfa20cae325748023e

See more details on using hashes here.

File details

Details for the file graph_sitter-0.56.3-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for graph_sitter-0.56.3-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 83ab6230fcfdacd212e44e83c0d5bccf53028c6b67e2b2901b128d69f44b9c5c
MD5 3987f03a3fa7168a80c4456adf001e76
BLAKE2b-256 49af521805f5d1e2ae75ed0d0688f505bec6bb104630da6b47703668b1c7c5cd

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