{"id":50789685,"url":"https://github.com/thecodedaniel/project_mahoraga","last_synced_at":"2026-06-12T10:02:40.185Z","repository":{"id":363662264,"uuid":"1264306183","full_name":"TheCodeDaniel/project_mahoraga","owner":"TheCodeDaniel","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-09T21:45:53.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T22:06:23.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/TheCodeDaniel.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-06-09T19:02:17.000Z","updated_at":"2026-06-09T21:45:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TheCodeDaniel/project_mahoraga","commit_stats":null,"previous_names":["thecodedaniel/project_mahoraga"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TheCodeDaniel/project_mahoraga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fproject_mahoraga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fproject_mahoraga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fproject_mahoraga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fproject_mahoraga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCodeDaniel","download_url":"https://codeload.github.com/TheCodeDaniel/project_mahoraga/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fproject_mahoraga/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34238715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-12T10:02:39.253Z","updated_at":"2026-06-12T10:02:40.169Z","avatar_url":"https://github.com/TheCodeDaniel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Mahoraga\n\nProject Mahoraga is an agentic AI adaptation system that learns from its own mistakes. When an AI produces a wrong response, Mahoraga opens a case, investigates it, verifies it against live sources, and updates itself — so the same mistake never happens twice. Like its namesake, it adapts to anything.\n\n## Architecture Overview\n\nMahoraga is built from four internal components wired together by a FastAPI service:\n\n- **Critic** (`mahoraga/critic/critic_agent.py`) — Searches DuckDuckGo for the claim, scores source relevance, and returns a verdict (`True`/`False`/`None`), confidence score, top sources, and an optional correction snippet.\n- **Trigger** (`mahoraga/trigger/trigger_evaluator.py`) — Decides whether the adaptation pipeline should fire based on critic confidence, AI self-confidence heuristics (hedge/assertion words), and user flagging.\n- **Adapter** (`mahoraga/adapter/adapter_manager.py`) — Persists confirmed corrections to a local `knowledge_base.json` for downstream fine-tuning.\n- **Orchestrator** (`mahoraga/orchestrator/maestro_hook.py`) — Opens and closes investigation cases (local simulation; UiPath RPA integration pending Lab access).\n\n### HTTP API (`mahoraga/api.py`) — served on port 8000\n\n| Method | Path | Description |\n|--------|------|-------------|\n| `POST` | `/evaluate` | Run the full pipeline (Critic → Trigger → Adapter). Body: `{ \"claim\", \"ai_response\", \"user_flagged\" }`. Returns verdict, confidence, correction, top 3 sources, trigger status. |\n| `POST` | `/case/open` | Open a Maestro case. Body: `{ \"trigger_data\": dict }`. Returns the full case object with a UUID case ID. |\n| `POST` | `/case/close` | Close a Maestro case. Body: `{ \"case_id\", \"resolution\" }`. Returns the updated case object. |\n| `GET`  | `/knowledge` | Return the full knowledge base as a JSON array. |\n| `GET`  | `/health` | Liveness check. Returns `{ \"status\": \"ok\", \"service\": \"project-mahoraga\" }`. |\n\n## Installation\n\nTODO\n\n## Usage\n\nTODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodedaniel%2Fproject_mahoraga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodedaniel%2Fproject_mahoraga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodedaniel%2Fproject_mahoraga/lists"}