Commit Graph

17 Commits

Author SHA1 Message Date
Haoran
cce031e632 fix: harden subprocess output decoding across lessons 2026-08-26 01:05:16 +08:00
Haoran
922265145b fix: complete readline prompt coverage 2026-08-25 21:56:24 +08:00
Haoran
199402f9d4 fix: use UTF-8 for text file operations 2026-08-24 20:28:37 +08:00
Yang Haoran
985456f4ad Merge pull request #233 from Mr-JingShi/main
refactor: enhance MessageBus.read_inbox with clear parameter
2026-08-14 23:31:44 +08:00
123456wda
36c367429c fix: add missing "> /dev/" dangerous command check in s09/s10/s11
s09_agent_teams.py, s10_team_protocols.py, and s11_autonomous_agents.py
were missing the "> /dev/" entry in their dangerous command blocklist.
This is present in s01, s06, s12, and s_full but was dropped when s09-s11
were written, creating a security regression where commands like
`echo y > /dev/sda` could bypass the blocklist.
2026-05-15 10:56:15 +08:00
chengjiansu
7c7ddd262c refactor: enhance MessageBus.read_inbox with clear parameter
- Add clear=True parameter to read_inbox for optional message clearing
- Update /inbox command to use clear=False for non-destructive reading
- Remove JSON formatting in agent_loop to save tokens
- Use walrus operator in s11 claim_task for cleaner code
2026-04-16 15:56:05 +08:00
CrazyBoyM
40f5a6ecc9 Merge pull request #123: prevent task claiming race condition in s11
Add double-checked validation inside _claim_lock: verify task owner,
status, and blockedBy before claiming. Check claim_task return value
in idle loop to skip failed claims.
2026-03-29 23:57:14 +08:00
CrazyBoyM
5c7b873d3b Merge pull request #118 from deanbear/fix-auto-compact-400
fix: remove hardcoded assistant ack after auto_compact to fix 400
2026-03-29 23:52:02 +08:00
CrazyBoyM
10d90cdcc6 Separate tool name from output across all agent sessions (s03-s_full)
Extends the readability fix from PR #128 (s02) to all remaining sessions.
Tool name and output are now on separate lines, consistent with s01's
existing pattern and improving readability for multi-line tool output.
2026-03-29 23:27:41 +08:00
chablino
42fac6af5a Fix: Add blockedBy check in claim_task to prevent LLM bypassing dependencies 2026-03-23 22:42:24 +08:00
to7for
644b0753c9 Update agents/s11_autonomous_agents.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-23 22:34:56 +08:00
to7for
ea53008ae7 Update agents/s11_autonomous_agents.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-23 22:34:46 +08:00
chablino
0618ec809e Fix: Handle claim_task error response in agent idle loop 2026-03-23 21:42:49 +08:00
bear
950378a29f fix: remove hardcoded assistant acks after system message injection
s08/s09/s10/s11/s_full inject background-results and inbox as user
  messages before LLM calls. The paired hardcoded assistant "Noted..."
  responses were unnecessary — consecutive user messages work fine and
  the fake acks added noise with no functional value.

  Affected: agents/s08, s09, s10, s11, s_full + docs (zh/en/ja s08, s09)
2026-03-23 20:24:42 +08:00
CrazyBoyM
a9c71002d2 the model is the agent, the code is the harness
Comprehensive rewrite establishing the harness engineering narrative
across the entire repository.

README (EN/ZH/JA): added "The Model IS the Agent" manifesto with
historical proof (DQN, OpenAI Five, AlphaStar, Tencent Jueyu),
"What an Agent Is NOT" critique, harness engineer role definition,
"Why Claude Code" as masterclass in harness design, and universe
vision. Consistent framing: model = driver, harness = vehicle.

docs (36 files, 3 languages): injected one-line "Harness layer"
callout after the motto in every session document (s01-s12).

agents (13 Python files): added harness framing comment before
each module docstring.

skills/agent-philosophy.md: full rewrite aligned with harness
narrative.
2026-03-18 01:19:34 +08:00
Gaarahan
aaa93bcfc4 fix(agents): print final assistant response in s02-s12 (#39) 2026-02-28 00:10:39 +08:00
CrazyBoyM
c6a27ef1d7 feat: build an AI agent from 0 to 1 -- 11 progressive sessions
- 11 sessions from basic agent loop to autonomous teams
- Python MVP implementations for each session
- Mental-model-first docs in en/zh/ja
- Interactive web platform with step-through visualizations
- Incremental architecture: each session adds one mechanism
2026-02-21 17:02:43 +08:00