Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5e207c7
Add Models.Corp backend plan and gitignore entries
jctanner May 15, 2026
3d39b70
Add Models.Corp backend with custom Python agent harness
jctanner May 15, 2026
acb3be0
Fix ruff formatting in agent_backends and container_orchestrator
jctanner May 15, 2026
f0776e4
Fix ruff formatting in mcp_server, personas, and webapp routes
jctanner May 15, 2026
54f85eb
Fix Models.Corp harness: SSL verification, model_id mapping, text too…
jctanner May 15, 2026
3a592a5
Fix Models.Corp agent issues: MCP connectivity, tool filtering, per-a…
jctanner May 15, 2026
6c4f224
Normalize channel names and enable all functional models in model-test
jctanner May 15, 2026
e92af79
Add pluggable conversation memory system for Models.Corp agents
jctanner May 16, 2026
3619b74
Fix agent loop not stopping on signal_done and FIFO memory ordering c…
jctanner May 16, 2026
f5e52fa
Add per-agent eval system with judge personas, fallback posting, and …
jctanner May 17, 2026
8600a24
Add advanced memory strategies (Phase 2): decay, entity, episodic, re…
jctanner May 17, 2026
a684ba7
Add memory-eval scenario and fix hire_agent for dynamic memory config
jctanner May 18, 2026
365dae2
Fix hired agents never coming online — process add_agent between tiers
jctanner May 18, 2026
88b8d1f
Rework memory-eval scenario: pre-configure test agents instead of hir…
jctanner May 18, 2026
955c8e9
Instruct judges to keep eval channels clean — discussion in #judges only
jctanner May 18, 2026
648a5dd
Add scenario document seeding and pre-load test protocol + rubric
jctanner May 18, 2026
430e2e8
Move protocol and rubric to judges-only folder
jctanner May 18, 2026
f106b86
Strip evaluation specifics from judge prompts — wait for event briefing
jctanner May 18, 2026
a967304
Remove evaluation context from agent metadata visible in system prompts
jctanner May 18, 2026
8607ac1
Fold judge amendments back into seed protocol and rubric
jctanner May 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.venv/
var/
.git/
__pycache__/
*.pyc
confidential/
.modelscorp.json
backups/
tmp/
docs/
scenarios/
lib/
tests/
references/
specs/
validation/
*.egg-info/
.env
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ build/
.venv/
application_default_credentials.json
backups/
confidential/
.modelscorp.json
11 changes: 11 additions & 0 deletions .modelscorp.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"endpoint_base": "YOUR_ENDPOINT_HOST",
"endpoint_type": "apicast-staging",
"models": {
"granite-4-0-micro": {"key": "YOUR_KEY", "model_id": "ibm-granite/granite-4.0-micro"},
"granite-4-0-h-tiny": {"key": "YOUR_KEY", "model_id": "ibm-granite/granite-4.0-h-tiny"},
"qwen3-14b": {"key": "YOUR_KEY", "model_id": "Qwen/Qwen3-14B"},
"gemini": {"key": "YOUR_KEY", "model_id": "gemini-2.5-pro", "endpoint_type": "apicast-production", "base_path": "/v1beta/openai"},
"claude": {"key": "YOUR_KEY", "model_id": "claude-sonnet-4-20250514"}
}
}
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PYTHON := $(VENV)/bin/python
PYTEST := $(VENV)/bin/pytest
RUFF := $(VENV)/bin/ruff

.PHONY: help venv install test lint lint-fix clean start build-sandbox
.PHONY: help venv install test lint lint-fix clean start build-agent build-sandbox

help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
Expand All @@ -19,16 +19,19 @@ test: install ## Run tests
$(PYTEST) -v

lint: install ## Check code style
$(RUFF) check lib/ tests/ main.py
$(RUFF) format --check lib/ tests/ main.py
$(RUFF) check lib/ tests/ main.py cosim_agent/
$(RUFF) format --check lib/ tests/ main.py cosim_agent/

lint-fix: install ## Auto-fix lint issues
$(RUFF) check --fix lib/ tests/ main.py
$(RUFF) format lib/ tests/ main.py
$(RUFF) check --fix lib/ tests/ main.py cosim_agent/
$(RUFF) format lib/ tests/ main.py cosim_agent/

start: install ## Start the full stack via honcho
$(UV) run honcho start

build-agent: ## Build the agent container image
podman build -f container/Dockerfile.agent -t agent-image:latest .

build-sandbox: ## Build the sandbox container image
podman build -f container/Dockerfile.sandbox -t cosim-sandbox:latest container/

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The agent image contains Claude Code CLI and telemetry hooks. GCP credentials ar
./scripts/build-agent-image.sh
```

This runs `podman build -f container/Dockerfile.agent -t agent-image:latest container/` after verifying prerequisites.
This runs `podman build -f container/Dockerfile.agent -t agent-image:latest .` after verifying prerequisites.

**What goes into the image:**
- Python 3.13-slim base
Expand Down
8 changes: 6 additions & 2 deletions container/Dockerfile.agent
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& npm install -g @anthropic-ai/claude-code @openai/codex \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

COPY cosim_agent/ /tmp/cosim-agent/cosim_agent/
COPY cosim_agent/pyproject.toml /tmp/cosim-agent/pyproject.toml
RUN pip install --no-cache-dir /tmp/cosim-agent && rm -rf /tmp/cosim-agent

RUN useradd -m -s /bin/bash agent

COPY agent-hooks.json /home/agent/.claude/hooks.json
COPY container/agent-hooks.json /home/agent/.claude/hooks.json

# Credentials directories (files mounted at runtime, not baked into image)
RUN mkdir -p /home/agent/.config/gcloud /home/agent/.codex
Expand All @@ -28,7 +32,7 @@ WORKDIR /home/agent/scratch
CMD ["sleep", "infinity"]

# Usage (podman — Flask+MCP run on host):
# podman build -f container/Dockerfile.agent -t agent-image:latest container/
# podman build -f container/Dockerfile.agent -t agent-image:latest .
# podman run -d --name agent-pm \
# -e AGENT_PERSONA_KEY=pm \
# -e MCP_SERVER_URL=host.containers.internal:5001 \
Expand Down
3 changes: 3 additions & 0 deletions cosim_agent/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""cosim-agent — Models.Corp agent harness for the cosim platform."""

__version__ = "0.1.0"
Loading
Loading