6 Commits

Author SHA1 Message Date
CrazyBoyM
1c270fb9e7 feat: support MODEL_ID env var for configurable model
All agents now read MODEL_ID from .env (defaults to claude-sonnet-4-5-20250929).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 00:40:15 +08:00
CrazyBoyM
5dbe4092fa feat: support ANTHROPIC_BASE_URL for API proxies
All agents now read ANTHROPIC_BASE_URL from .env for custom endpoints.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 00:32:36 +08:00
CrazyBoyM
bb232a5316 fix(v2): inject NAG_REMINDER inside agent_loop, not between tasks
Previously NAG_REMINDER was only checked in main() after a task completed,
meaning models never saw the reminder during long-running tasks.

Now NAG_REMINDER is injected inside agent_loop when rounds_without_todo > 10,
so models see it during task execution (matching Kode's behavior).

Fixes #14

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 00:15:12 +08:00
CrazyBoyM
120cf7ac99 refactor: remove multi-provider support, use Anthropic SDK directly
- Remove provider_utils.py (241 lines of adapter code)
- Simplify all agent files to use Anthropic SDK directly
- Update model to claude-sonnet-4-5-20250929
- Add python-dotenv with override=True (.env takes priority over env vars)
- Simplify .env.example to only require ANTHROPIC_API_KEY

This keeps the codebase focused on teaching agent concepts
rather than API compatibility layers. Users who need other
providers can use tools like litellm or one-api.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 23:33:32 +08:00
octane0411
ddecf7d845 feat: add multi-provider support (OpenAI/Gemini) via provider_utils 2026-01-11 01:24:47 +08:00
CrazyBoyM
85f44c358a Complete rewrite: original educational content only
- Remove all reverse-engineered Claude Code source code
- Replace with 100% original educational content from mini-claude-code
- Add clear disclaimer: independent project, not affiliated with Anthropic
- 5 progressive agent implementations (v0-v4, ~1100 lines total)
- Include agent-builder skill for teaching agent construction
- Bilingual documentation (EN + ZH)

This repository now focuses purely on teaching how modern AI agents work
through original, from-scratch implementations.

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-31 07:01:42 +08:00