-
Notifications
You must be signed in to change notification settings - Fork 12
Improve repository documentation and add test framework #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Added detailed installation and usage guides - Created contribution guidelines and code of conduct - Implemented test framework with sample tests - Added metrics and feedback documentation - Improved project structure with better organization Co-Authored-By: Shunsuke Hayashi <supernovasyun@gmail.com>
🤖 Devin AI EngineerOriginal prompt from Shunsuke: {{ user_input }} Valid Format (OK)Environment & Initialization Check
Continuous Execution & Testing
Git Usage
◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢ I'll help you create a comprehensive agent prompt using OpenAI API based on the information you've provided. I'll create a well-structured agent prompt file that implements the "generic agentive workflow" concept described in the requirements. This will include: System prompt that defines the agent's role, methodology and approach Generic Agentive Workflow Agent METHODOLOGY: WORKING BACKWARDS First clarifying the exact goal state in concrete detail F(Generic Agentive Workflow) = KEY PRINCIPLES Current Status Review Progress So Far Current State Working Backwards Analysis What tools or information do we need to move from that prerequisite state to the goal state? Continue working backwards - what must be true before that prerequisite can be achieved? Have we reached actions that can be taken from our current state? If not, continue the step-back questioning. Based on this analysis, what is the next concrete action to take using available tools? Next Action Decision Which tool to use Comprehensive Working Backwards Plan Current State Working Backwards Analysis Forward Execution Plan Tools Required Success Criteria Potential Challenges Monitoring Approach Execution status template for tracking progress Execution Status Current Position: Completed Steps: Pending Steps: Observations: Adjustments Needed: Human-in-the-loop feedback request template Feedback Request Current Goal: Plan So Far: Current Challenge: Specific Questions: Possible Paths Forward: What direction would you like me to take? Tools error handling template Tool Execution Error Attempted Operation: Error Encountered: Impact on Plan: Recommended Recovery: Question for User: from typing import Dict, List, Optional, Any, Literal from pydantic import Field, model_validator from app.agent.toolcall import ToolCallAgent class GenericAgent(ToolCallAgent): This agent first clarifies the goal, then uses step-back questioning to identify name: str = "generic_agent" system_prompt: str = SYSTEM_PROMPT Tracking goal and plangoal_state: str = Field(default="") Working backwards trackingbackwards_steps: List[Dict[str, Any]] = Field(default_factory=list) Execution trackingplan_ready: bool = Field(default=False) Additional state for flexibilitystate_variables: Dict[str, Any] = Field(default_factory=dict) max_steps: int = 30 def init(self, **data): @model_validator(mode="after") async def set_goal(self, goal: str) -> str: async def think(self) -> bool: async def act(self) -> str: async def run(self, request: Optional[str] = None) -> str: async def _organize_plan(self) -> None: def _update_execution_status(self) -> str: def add_backward_step(self, description: str, tools_needed: List[str], prerequisites: List[str]) -> None: async def get_execution_status(self) -> str: === Update the init.py file to include the new GenericAgent === from app.agent.base import BaseAgent from app.agent.planning import PlanningAgent from app.agent.react import ReActAgent from app.agent.swe import SWEAgent from app.agent.toolcall import ToolCallAgent from app.agent.generic_agent import GenericAgent import asyncio from app.agent.generic_agent import GenericAgent async def run_generic_agent_example(goal: str) -> None: Args: Create a tool collection with useful toolstools = ToolCollection([ Create the generic agentagent = GenericAgent( Run the agent with the provided goalresult = await agent.run(goal) Print the execution summaryprint("\n=== EXECUTION SUMMARY ===") Print the final plan statusstatus = await agent.get_execution_status() Choose a goal to executeselected_goal = GOALS[0] # Change index to try different goals print(f"Running GenericAgent with goal: {selected_goal}") Concept F(Generic Agentive Workflow) = Implementation Goal state is clearly defined F(Generic Agentive Workflow) = Create a tool collectiontools = ToolCollection([Bash(), GoogleSearch(), Terminate()]) Create the generic agentagent = GenericAgent( Run the agent with a goalresult = await agent.run("Create a Python script that downloads the latest Bitcoin price") Print the resultprint(result) LLM: For reasoning and planning |
This PR implements the requested improvements to the Auto-coder-agent_Cursor_Roo_code repository:
Improvements Added
Documentation Enhancements
Code Quality Improvements
Community Engagement
Project Structure
These improvements address all the requested areas from the initial proposal and provide a solid foundation for future development and community engagement.
Link to Devin run: https://app.devin.ai/sessions/55297f980ea347a5b18e1b85254b697f
Requested by: ShunsukeHayashi