feat(adapter): add Deep Agents export adapter#35
Open
dahlinomine wants to merge 1 commit intoopen-gitagent:mainfrom
Open
feat(adapter): add Deep Agents export adapter#35dahlinomine wants to merge 1 commit intoopen-gitagent:mainfrom
dahlinomine wants to merge 1 commit intoopen-gitagent:mainfrom
Conversation
Adds `gitagent export --format deepagents` which generates a ready-to-run Python file using the deepagents SDK. - Translates agent.yaml + SOUL.md + skills into a create_deep_agent() call - Skills become @tool stubs with TODO placeholders - Compliance constraints injected into system_prompt - Sub-agent hints surfaced as comments with upstream docs link - Multi-agent topology note links to deepagents overview Install: pip install deepagents
Contributor
|
Please resolve conflicts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
gitagent export --format deepagents— generating a ready-to-run Python agent using the Deep Agents SDK (pip install deepagents).This is a follow-up to #26 (LangGraph adapter), replacing it per @shreyas-lyzr's request to target Deep Agents instead.
What's added
src/adapters/deepagents.ts— new export adaptersrc/adapters/index.ts— re-exportedexportToDeepAgentssrc/commands/export.ts— wiredcase 'deepagents'Generated output
For a gitagent directory, running:
gitagent export --format deepagents -d ./my-agent -o agent.pyProduces a Python file that:
create_deep_agentfromdeepagentsskills/→@toolstubs (with TODO placeholders)SOUL.md+RULES.md+ compliance constraints intosystem_prompt__main__REPL loop for quick testingWhy Deep Agents?
Deep Agents is built on LangChain + LangGraph runtime and adds built-in task planning, filesystem context management, subagent-spawning, and long-term memory — a natural fit for complex, multi-step gitagent workflows.