Skip to content
Merged
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
9 changes: 7 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ===== Required =====
LLM_API_KEY=your_api_key_here
LLM_MODEL=deepseek-chat
LLM_MODEL=deepseek:<model-id>
LLM_API_BASE=https://api.deepseek.com/v1

# ===== Alternative models (uncomment one) =====
Expand All @@ -21,9 +21,12 @@ LLM_API_BASE=https://api.deepseek.com/v1
# BASH_MAX_OUTPUT=50000 # max bash output chars
# TOOL_RESULT_LIMIT=16000 # max tool result chars fed to LLM
# MAX_CONTEXT_MESSAGES=20 # auto-compress after this many messages
# MINIAGENT_CONTEXT_BUDGET=32768 # new runtime: conservative budget including tool schemas
# Sensitive files: managed tools hide .env*, .git and private-key files by default.
# Explicit opt-in is --allow-sensitive-files; Shell/MCP remain trusted software.
# CONFIRM_DANGEROUS=true # confirm rm -rf, sudo, etc.
# MINIAGENT_STREAM=1 # 1=streaming on, 0=off
# MINIAGENT_HOME=~/.miniagent # session memory storage path
# MINIAGENT_HOME=~/.miniagent # Harness sessions/ and legacy memory storage
# LOG_LEVEL=INFO # logging level (DEBUG/INFO/WARNING/ERROR)

# ===== Optional: Reflection =====
Expand All @@ -35,6 +38,8 @@ LLM_API_BASE=https://api.deepseek.com/v1

# ===== Provider isolation =====
# Prefer LLM_MODEL=provider:model-id with that provider's own credential.
# Model selection is required: CLI --model > JSON llm.model > LLM_MODEL.
# A key or base URL alone never selects a default model. Replace <model-id>.
# OPENAI_API_KEY, DEEPSEEK_API_KEY, ANTHROPIC_API_KEY, DASHSCOPE_API_KEY, etc.
# LLM_API_KEY and LLM_API_BASE are explicit compatibility endpoint overrides.
# Keys from unrelated providers are never searched as a fallback chain.
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lean Harness CI
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
regression:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ['3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade pip uv==0.13.0
- run: uv sync --locked --extra mcp --extra legacy --python ${{ matrix.python }}
- run: uv run --locked --python ${{ matrix.python }} --extra mcp --extra legacy python -m pytest tests -q -m "not live"
- run: uv run --locked --python ${{ matrix.python }} --extra mcp --extra legacy python -m compileall -q miniagent
- name: Native runtime static checks
run: uv run --locked --python ${{ matrix.python }} --extra mcp --extra legacy ruff check --select F miniagent/agent.py miniagent/harness.py miniagent/llm.py miniagent/policy.py miniagent/plugins.py miniagent/cli.py miniagent/cli_runtime.py miniagent/config.py miniagent/logger.py miniagent/tools/registry.py miniagent/extensions/mcp_plugin.py tests/test_runtime_recovery.py tests/test_provider_protocols.py tests/test_cli_runtime.py tests/test_model_selection.py scripts/source_stats.py scripts/minimal_install_smoke.py
- name: Export locked production dependencies
run: uv export --locked --no-dev --extra mcp --extra legacy --no-emit-project --output-file audit-requirements.txt
- name: Audit production dependencies
run: uv run --locked --python ${{ matrix.python }} --extra mcp --extra legacy pip-audit --disable-pip --no-deps -r audit-requirements.txt
- run: uv run --locked --python ${{ matrix.python }} --extra mcp --extra legacy python scripts/source_stats.py
- run: uv build
- name: Minimal installed wheel without optional extras
run: uv run --locked --python ${{ matrix.python }} --extra mcp --extra legacy python scripts/minimal_install_smoke.py
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12
3.11
Loading
Loading