Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: python -m py_compile agent_loop.py agentmain.py ga.py llmcore.py simphtml.py TMWebDriver.py
22 changes: 22 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Repository Agent Instructions

## Scope

- Follow `README.md`, `GETTING_STARTED.md`, and the existing Python entry points before adding new abstractions.
- Treat `mykey.py` and any local credential files as private local state; never print or commit real keys.
- Do not commit secrets, tokens, cookies, generated credentials, browser profiles, private logs, or local machine paths.

## Commands

- Launch app: `python launch.pyw`.
- CLI/helper entry: use `Start-GenericAgent-CLI.ps1` when the task is about the local CLI wrapper.
- Install dependencies only after checking the README and existing environment notes.

## Verification

For Python changes, run the narrowest import, smoke, or entry-point check that does not require real credentials or account actions. For docs-only changes, inspect the touched Markdown and referenced paths.

## Git

- Preserve unrelated dirty changes.
- Do not rewrite history, delete branches, push, publish, or open PRs without explicit confirmation.
20 changes: 20 additions & 0 deletions Start-GenericAgent-CLI.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$ErrorActionPreference = "Stop"

$repo = "E:\codemain\github\GenericAgent"
$python = Join-Path $repo ".venv\Scripts\python.exe"

if (-not (Test-Path -LiteralPath $python)) {
throw "GenericAgent venv not found. Expected: $python"
}

if (-not $env:OPENROUTER_API_KEY) {
throw "OPENROUTER_API_KEY is not set. GenericAgent needs a model API key before it can run."
}

Push-Location $repo
try {
& $python agentmain.py
}
finally {
Pop-Location
}