@ctxthuta/cxops 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/agents/backend_engineer/agent.md +21 -24
- package/.agents/agents/cxagents/agent.md +26 -24
- package/.agents/agents/frontend_engineer/agent.md +20 -22
- package/.agents/agents/rnd_researcher/agent.md +22 -20
- package/.agents/agents/software_engineer/agent.md +15 -19
- package/.agents/agents/system_architect/agent.md +29 -18
- package/.agents/agents/uiux_designer/agent.md +30 -18
- package/AGENTS.md +143 -96
- package/README.md +23 -4
- package/bin/cxops.js +100 -11
- package/package.json +1 -1
- package/plugin/agents/backend_engineer.md +21 -24
- package/plugin/agents/cxagents.md +26 -24
- package/plugin/agents/frontend_engineer.md +20 -22
- package/plugin/agents/rnd_researcher.md +22 -20
- package/plugin/agents/software_engineer.md +15 -19
- package/plugin/agents/system_architect.md +29 -18
- package/plugin/agents/uiux_designer.md +30 -18
- package/plugin/rules/AGENTS.md +143 -95
- package/plugin/skills/academic-researcher/SKILL.md +29 -0
- package/plugin/skills/ai-ml-engineer/SKILL.md +28 -0
- package/plugin/skills/backend-engineer/SKILL.md +35 -0
- package/plugin/skills/code-reviewer/SKILL.md +26 -0
- package/plugin/skills/cxagents/SKILL.md +35 -0
- package/plugin/skills/devops-engineer/SKILL.md +27 -0
- package/plugin/skills/frontend-engineer/SKILL.md +41 -0
- package/plugin/skills/qa-engineer/SKILL.md +25 -0
- package/plugin/skills/rnd-researcher/SKILL.md +31 -0
- package/plugin/skills/software-engineer/SKILL.md +28 -0
- package/plugin/skills/system-architect/SKILL.md +43 -0
- package/plugin/skills/uiux-designer/SKILL.md +41 -0
- package/src/agents/personas.py +237 -267
- package/src/main.py +27 -2
- package/src/team.py +2 -2
package/src/main.py
CHANGED
|
@@ -1,18 +1,43 @@
|
|
|
1
1
|
"""CLI Entrypoint for CortexOps Multi-Agent Framework."""
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
|
-
import sys
|
|
5
4
|
import os
|
|
5
|
+
import sys
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
8
|
REPO_ROOT = Path(__file__).resolve().parent.parent
|
|
9
9
|
if str(REPO_ROOT) not in sys.path:
|
|
10
10
|
sys.path.insert(0, str(REPO_ROOT))
|
|
11
11
|
|
|
12
|
+
def load_environment() -> None:
|
|
13
|
+
"""Discovers and loads environment variables from candidate .env files."""
|
|
14
|
+
candidate_paths = [
|
|
15
|
+
Path.cwd() / ".env",
|
|
16
|
+
REPO_ROOT / ".env",
|
|
17
|
+
Path.home() / ".cortexops" / ".env",
|
|
18
|
+
]
|
|
19
|
+
for env_path in candidate_paths:
|
|
20
|
+
if env_path.is_file():
|
|
21
|
+
try:
|
|
22
|
+
with open(env_path, "r", encoding="utf-8") as f:
|
|
23
|
+
for line in f:
|
|
24
|
+
line = line.strip()
|
|
25
|
+
if line and not line.startswith("#") and "=" in line:
|
|
26
|
+
key, val = line.split("=", 1)
|
|
27
|
+
key, val = key.strip(), val.strip()
|
|
28
|
+
if key and key not in os.environ:
|
|
29
|
+
os.environ[key] = val
|
|
30
|
+
except Exception:
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
load_environment()
|
|
34
|
+
|
|
12
35
|
from google.antigravity import Agent
|
|
13
36
|
from src.team import create_cortexops_team
|
|
14
37
|
|
|
15
|
-
|
|
38
|
+
DEFAULT_MODEL = os.environ.get("GEMINI_MODEL", "gemini-3.8-flash")
|
|
39
|
+
|
|
40
|
+
async def run_task(prompt: str, model: str = DEFAULT_MODEL):
|
|
16
41
|
"""Runs a complete software engineering or research lifecycle task with the CortexOps team."""
|
|
17
42
|
config = create_cortexops_team(model=model)
|
|
18
43
|
|
package/src/team.py
CHANGED
|
@@ -65,7 +65,7 @@ SENIOR CODING & HYGIENE INVARIANTS:
|
|
|
65
65
|
- Deterministic gates over agent opinions: test exit code == 0 is required.
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
|
-
def create_cortexops_team(model: str = "gemini-
|
|
68
|
+
def create_cortexops_team(model: str = "gemini-3.8-flash") -> LocalAgentConfig:
|
|
69
69
|
"""Assembles the CortexOps autonomous engineering and research team.
|
|
70
70
|
|
|
71
71
|
The Root Agent acts as the Lead Technical Product Manager & Engineering Director,
|
|
@@ -120,6 +120,6 @@ def create_cortexops_team(model: str = "gemini-2.0-flash") -> LocalAgentConfig:
|
|
|
120
120
|
system_instructions=LEAD_PM_DIRECTOR_INSTRUCTIONS,
|
|
121
121
|
)
|
|
122
122
|
|
|
123
|
-
def create_thea_engineering_team(model: str = "gemini-
|
|
123
|
+
def create_thea_engineering_team(model: str = "gemini-3.8-flash") -> LocalAgentConfig:
|
|
124
124
|
"""Backwards compatibility alias for create_cortexops_team."""
|
|
125
125
|
return create_cortexops_team(model=model)
|