Skip to content

Refactor#2

Open
matstech wants to merge 2 commits into
mainfrom
refactor
Open

Refactor#2
matstech wants to merge 2 commits into
mainfrom
refactor

Conversation

@matstech
Copy link
Copy Markdown
Contributor

No description provided.

matstech added 2 commits May 17, 2026 22:09
…urgical context

- Migrated core engine to Google ADK for event-driven orchestration.
- Implemented deterministic triage to select optimal review strategies.
- Added surgical context extraction (hunks + skeletons) to reduce token usage.
- Enabled parallel async processing with immediate comment publishing.
- Refactored GitHub provider and main entrypoint for async support.
- Cleaned up unused dependencies and non-functional scaffolding.
Comment thread agent/agent.py
@@ -0,0 +1,30 @@
import os
Comment thread agent/agent.py
@@ -0,0 +1,30 @@
import os
import google.auth
Comment thread agent/context_utils.py
@@ -0,0 +1,94 @@
import re
from typing import List, Dict
Comment thread agent/engine.py
@@ -0,0 +1,134 @@
import asyncio
import logging
from typing import AsyncGenerator, List, Dict
Comment thread integration/github.py
import re
from typing import List, Dict, Optional
from github import Github, Auth
import httpx
Comment thread main.py
from agent.prudence import Prudence
from configuration.config import Configuration
from integration.github import GitHubProvider
import os
Comment thread agent/triage.py
@@ -0,0 +1,40 @@
from enum import Enum
from typing import List, Optional
Comment thread integration/github.py
try:
if "-----BEGIN" not in private_key:
private_key = base64.b64decode(private_key).decode("utf-8")
except Exception:
Comment thread main.py
try:
text = event.content.parts[0].text
print(f"[{event.author}] {text}")
except:
Comment thread main.py
try:
text = event.content.parts[0].text
print(f"[{event.author}] {text}")
except:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant