{"id":47754110,"url":"https://github.com/mehdii000/superioragent","last_synced_at":"2026-04-03T04:01:34.815Z","repository":{"id":346247465,"uuid":"1188354290","full_name":"mehdii000/SuperiorAgent","owner":"mehdii000","description":"A Modular, Session-aware AI Agent with dynamic tool calling capabilties.","archived":false,"fork":false,"pushed_at":"2026-03-23T03:08:17.000Z","size":381,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-23T20:27:48.159Z","etag":null,"topics":["agent","ai","code","ollama","qwen"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mehdii000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-22T00:38:38.000Z","updated_at":"2026-03-23T03:08:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mehdii000/SuperiorAgent","commit_stats":null,"previous_names":["mehdii000/superioragent"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mehdii000/SuperiorAgent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdii000%2FSuperiorAgent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdii000%2FSuperiorAgent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdii000%2FSuperiorAgent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdii000%2FSuperiorAgent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehdii000","download_url":"https://codeload.github.com/mehdii000/SuperiorAgent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehdii000%2FSuperiorAgent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31333229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T03:20:36.090Z","status":"ssl_error","status_checked_at":"2026-04-03T03:20:35.133Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","code","ollama","qwen"],"created_at":"2026-04-03T04:00:36.613Z","updated_at":"2026-04-03T04:01:34.785Z","avatar_url":"https://github.com/mehdii000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Superior Agent 🧠\n\n\u003e [!IMPORTANT]\n\u003e This is a work in progress. The agent ability to perform complex tasks is limited and unpredictable. It's main purpose is to be a learning tool for me to understand how autonomous agents work and to experiment with different architectures and techniques. The code is not production-ready and should not be used in production.\n\nSuperior Agent is a modular, session-aware AI agent designed with tiered reasoning, powered by **Qwen3/Qwen3.5** via **Ollama**. This is a fun hobbyist project exploring the capabilities of autonomous agents in a controlled environment.\n\n\u003cimg width=\"1919\" height=\"995\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4bd1047a-c5ec-4658-a429-2788e82dc57a\" /\u003e\n\n## ✨ Key Features\n\n- **Tiered Reasoning**: Efficiently processes tasks using a structured thinking-to-action pipeline.\n- **Dynamic Tool Discovery**: Automatically discovers tools in the `agent/tools/` directory using AST parsing—no manual registration required!\n- **Lazy-Loading Tools**: Tools are only imported and loaded when the agent actually needs them, keeping the startup light.\n- **Session Awareness**: Tracks artifacts and memory across the current session.\n- **Rich Terminal UI**: Beautifully formatted output using `rich` and `textual`.\n\n## 🛠 Tools System: Adding Your Own\n\nImplementing custom tools is incredibly easy. Each tool is a standalone `.py` file in `superior_agent/agent/tools/`.\n\n### How to Create a Tool\n\n1.  Create a new Python file (e.g., `my_tool.py`).\n2.  Define **exactly one** public function.\n3.  Add a specifically formatted docstring. The agent uses this to understand how and when to use your tool.\n\n**Example (`get_current_time.py`):**\n\n```python\nimport datetime\n\ndef get_current_time() -\u003e str:\n    \"\"\"Description: Retrieves the current local date and time.\n    Returns: The current date and time as a string.\n    When to use: When the user asks for the current time or date.\n    Tags: time, date, current, clock, now (optional)\n    \"\"\"\n    now = datetime.datetime.now()\n    return now.strftime(\"%Y-%m-%d %H:%M:%S\")\n```\n\nThe `Registry` will automatically pick it up, parse the `Description`, `Args`, `Returns`, and `When to use` fields, and make it available to the agent.\n\n## 🚀 Getting Started\n\n### Installation\n\n1.  **Clone the repository**:\n    ```bash\n    git clone https://github.com/your-username/SuperiorAgent.git\n    cd SuperiorAgent\n    ```\n\n2.  **Install dependencies**:\n    We recommend using a virtual environment.\n    ```bash\n    pip install -e .\n    ```\n    For development dependencies (testing):\n    ```bash\n    pip install -e \".[dev]\"\n    ```\n\n### Running the Agent\n\nYou can run the agent as a module:\n\n```bash\npython -m superior_agent\n```\n\n#### Running Locally (Ollama)\nEnsure you have [Ollama](https://ollama.ai/) installed and running. By default, the agent looks for Ollama at `http://localhost:11434` and uses the `qwen3:latest` model. but it's best to use `qwen3.5` even in low parameter count (0.8/2/4b) it's way better than qwen3.\n\n#### Running via Cloud\nIf you want to use a cloud-hosted Ollama-compatible API:\nNOTE: This uses the x-api-key header for authentication. which is not supported by ollama, instead its a wrapper around ollama that you probably will have to code yourself.\n```bash\npython -m superior_agent --ollama-url https://your-cloud-api.com --apikey YOUR_API_KEY\n```\n\n## ⚙️ Command-Line Arguments\n\n| Argument | Description | Default |\n| :--- | :--- | :--- |\n| `--model` | Preferred Ollama model tag | `qwen3.5:4b` |\n| `--ollama-url` | Base URL for the Ollama API | `http://localhost:11434` |\n| `--apikey` | API Key for the request (x-api-key header) | `None` |\n| `--workdir` | Base directory for file-based tools | `cwd` |\n| `--debug` | Enable detailed debug logging | `False` |\n\n## 🧪 Testing\n\nThe project uses `pytest` for automated testing. To run the suite:\n\n```bash\npytest\n```\n\n---\n*Happy Agentic Coding!* 🤖✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehdii000%2Fsuperioragent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehdii000%2Fsuperioragent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehdii000%2Fsuperioragent/lists"}