Skip to content

Example/code agent - #21

Closed
Max Caldwell (maxtheman) wants to merge 2 commits into
langchain-ai:masterfrom
maxtheman:example/code-agent
Closed

Example/code agent#21
Max Caldwell (maxtheman) wants to merge 2 commits into
langchain-ai:masterfrom
maxtheman:example/code-agent

Conversation

@maxtheman

Copy link
Copy Markdown

Description:

Adds a simple agent to the repo that people can run without a tavily dependency.

Changes:

Adds an agent and some way to persist file changes back for demo purposes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't exactly what i meant by a coding agent. I think a coding agent should:

  • have access to the local filesystem (tbd what to do with the built in tools - I actually dont know)
  • have more tools for running terminal commands

@svngoku

svngoku commented Aug 6, 2025

Copy link
Copy Markdown

killa (killagu) pushed a commit to killagu/deepagents that referenced this pull request Dec 15, 2025
james8814 pushed a commit to james8814/deepagents that referenced this pull request May 3, 2026
CTO 第 8 次失误修复 — 5 天 CTO 工作全部未 git commit,由 pmagent 团队应用 ADR v5 langchain-ai#22
audit CTO sync claim 时 catch("我昨天已 sync" vs git status untracked)。

核心架构决策档案
- decisions/0002-fork-customization-strategy.md (ADR-0002 v3) — Plan H+ 三方签字 ACCEPTED
  - 含 ADR 评审 checklist v1+v2+v3+v4+v5(langchain-ai#1-langchain-ai#22 完整体)
  - v5 langchain-ai#22 fact-check 必须含对照实验(CTO 第 6 次失误 + pmagent 5 次同型失误沉淀)
  - v5 langchain-ai#20 角色权限边界 + langchain-ai#21 governance 边界
  - 含 CTO 6 次失误谱系 + 元层观察(langchain-ai#22 不强制纳入)

主设计文档
- 2026-05-02-plan-h-plus-final.md — Plan H+ v3 完整设计(含 src/agent_assembly/ namespace v3 修订)

历史方案档案(HISTORICAL/SUPERSEDED)
- 2026-04-29 ~ 2026-05-02 v1 → v4 → Plan H+ 演进 8 次方向探索
- spike/ 步骤 1+2 reference template

应用 ADR v5 langchain-ai#16 fact-check + langchain-ai#22 实证:
- git status untracked 实证已确认(pmagent v1.6 audit catch)
- 此 commit 修复 5 天工作未 commit 严重失误

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

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
John Kennedy (jkennedyvz) pushed a commit that referenced this pull request Jun 20, 2026
…sistence

Implements a pure-Python Telegram Bot API channel adapter for the talon
host, following the same patterns as the existing WhatsApp channel.

**Telegram channel adapter** ():
-  with env-var mapping (
  prefix) and  alias
-  using  — no bridge subprocess needed
- Long-polling via  with configurable timeout and interval
- MarkdownV2 message formatting with automatic plain-text fallback
-  for images,  for other media types
-  typing indicator
-  for inbound media downloads
- Operator auto-capture from first inbound message
- Configurable exposure modes (default, allowlist, open)

**Offset persistence** (ticket 23):
-  in the session directory
- Atomic writes via
- Loads persisted offset on startup, saves after each polling cycle
- Graceful handling of missing/corrupt/invalid offset files

**CLI wiring** ():
-  flag to enable the Telegram channel
- Updated  factory to accept both  and
- Both channels can coexist simultaneously

**Config** ():
- Added  to
- Added  to  for alias capture

**Tests**:
- 36 unit tests covering config, MarkdownV2 escaping, polling, exposure,
  outbound text/media, edit, typing, inbound media, status, offset
  persistence
- 7 integration tests for  factory and simultaneous channel
  coexistence

Closes #21, #22, #23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants