Metadata-Version: 2.5
Name: cosmosforge
Version: 0.5.1
Summary: CLI and evaluation service for Harbor-format terminal tasks.
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.110
Requires-Dist: httpx>=0.27
Requires-Dist: python-multipart>=0.0.9
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0
Requires-Dist: toml>=0.10
Requires-Dist: typer>=0.12
Requires-Dist: uvicorn>=0.29
Provides-Extra: server
Requires-Dist: litellm>=1.0; extra == 'server'
Requires-Dist: psycopg[binary]<4,>=3.2; extra == 'server'
Description-Content-Type: text/markdown

# CosmosForge

Evaluation and rollout service for Harbor-format terminal tasks.

A resident service runs on the eval server (FastAPI + harbor); the `cf` CLI
submits tasks and fetches results over HTTP with token auth. All traffic is
tunneled through SSH, so only port 22 needs to be reachable — the HTTP port
never has to be exposed to the internet. `cf init` also uses SSH once, to
provision your token.

## Install

```bash
pip install cosmosforge
cf --version
```

## Quick start

```bash
# set up SSH key authentication first for password-free commands
cf init --host <server-host> --user <your-ssh-user>

# upload a Harbor task directory
cf submit path/to/task          # -> default/<task-name>
cf submit-folder path/to/tasks --name batch1

# run oracle/nop validation; oracle must score 1.0, nop must score 0.0
cf review default/<task-name>   # default: oracle-nop -> RUN_ID + report
cf review batch1 --check "format,ngrams" --detach
cf rollout default/<task-name> -n 2

# list tasks / runs / fetch a past report
cf tasks
cf folders
cf folder batch1
cf runs
cf results <RUN_ID>
```

`cf eval` remains available as an alias for `cf review`.

`cf submit-folder` reuses existing folders and [handles task name conflicts](docs/guides/folder-submission.md).

See the [documentation index](docs/README.md) for CLI guides, service
operations, and design notes.

## Development

```bash
conda activate harbor
python -m pip install -r requirements.txt
python -m pip install -e '.[server]'
pytest
```

See [Development Quick Start](docs/development/development-quick-start.md) for environment
details, linting, and running the local service.
