Commit Graph

4 Commits

Author SHA1 Message Date
3248412cae docs: add AGENTS.md + CLAUDE.md symlink + docs/HANDOFF.md per bearsdev-systems repo standard (Ф4 pilot) 2026-07-26 15:41:24 +03:00
7bfe0dfe0c Fix HOME volume mount, genericize topic, add progress statuses, extract lexicon
- Volume was mounted at ~/.claude only, but claude-code writes auth to
  ~/.claude.json too — that file lived on the ephemeral container layer and
  was lost on every recreate. Now the whole $HOME is on the named volume,
  and claude-config moved outside HOME (/app) so it isn't shadowed by it.
- Default /news topic was hardcoded to AI; now it's a configurable
  DEFAULT_TOPIC (plain "главные новости дня"), topic is fully free-form.
- Prompt now instructs Claude to send interim " ..." progress updates via
  send_to_telegram while researching, not just the final digest — a bare
  request like "call this tool" was already taking 3+ minutes end-to-end,
  so silence read as broken.
- All user-facing/prompt text moved into bot/lib/lexicon.dart.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 21:53:38 +03:00
cb2041fc56 Scope down to local Docker testing, drop Gitea/K3s plumbing for now
This is a pilot project — running it via docker compose locally is enough
for now. Deploy/CI can come back once the project is greenlit for real use.

Also fixes claude invocation: add --strict-mcp-config (verified against
the actual installed claude-code CLI --help) so only agent-news' own MCP
server is loaded, not whatever else might be discoverable in the environment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 20:48:30 +03:00
be09de2ad7 Initial agent-news: Dart Telegram bot + Claude Code runner + MCP bridge
/news spawns claude-code as a local subprocess (single pod, no cross-container
exec on K3s); Claude delivers the digest itself via the send_to_telegram MCP tool.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 20:40:32 +03:00