picoclaw/pkg/agent
美電球 899558bbfa
Feat/issue 1218 agent md context structure (#1705)
* feat(agent): add structured agent definition loader

Parse AGENT.md frontmatter into a runtime definition and pair it with SOUL.md while keeping a legacy AGENTS.md fallback for transition.

Refs #1218

* refactor(agent): build context from structured agent files

Use AGENT.md and SOUL.md as the structured bootstrap source, ignore IDENTITY.md for structured agents, remove USER.md from the new context flow, and update pkg/agent tests accordingly.

Refs #1218

* refactor(onboard): switch workspace templates to AGENT.md

Replace the legacy AGENTS.md, IDENTITY.md, and USER.md templates with a structured AGENT.md plus SOUL.md, and update the onboard template test to assert the new generated files.

Refs #1218

* docs(readme): update workspace layout for AGENT.md

Refresh the documented workspace tree across the README translations so onboarding now points to AGENT.md and SOUL.md instead of the retired AGENTS.md, IDENTITY.md, and USER.md files.

Refs #1218

* feat(agent): restore workspace USER.md context

* docs(readme): document workspace USER.md layout

* fix: sort agent definition imports for gci
2026-03-18 22:42:57 +08:00
..
context.go Feat/issue 1218 agent md context structure (#1705) 2026-03-18 22:42:57 +08:00
context_budget.go fix(agent): findSafeBoundary returns 0 for single-Turn history 2026-03-16 14:48:35 +08:00
context_budget_test.go style(agent): fix gci comment alignment in test 2026-03-16 14:48:35 +08:00
context_cache_test.go Feat/issue 1218 agent md context structure (#1705) 2026-03-18 22:42:57 +08:00
context_test.go fix deepseek-chat bug (#1066) 2026-03-06 16:04:31 +08:00
definition.go Feat/issue 1218 agent md context structure (#1705) 2026-03-18 22:42:57 +08:00
definition_test.go Feat/issue 1218 agent md context structure (#1705) 2026-03-18 22:42:57 +08:00
instance.go refactor(agent): context boundary detection, proactive budget check, and safe compression 2026-03-16 14:48:32 +08:00
instance_test.go enable dupl check 2026-03-01 18:17:32 +11:00
loop.go fix(agent): forceCompression recovers from single oversized Turn 2026-03-17 10:23:16 +08:00
loop_mcp.go Fix/Add warning tips for MCP initialization when no valid servers configured (#1497) 2026-03-13 16:43:00 +08:00
loop_media.go feat: expose local file paths for non-image media to enable agent file tools (#1516) 2026-03-14 12:09:11 +08:00
loop_test.go test(agent): use realistic session data in context retry test 2026-03-16 14:48:35 +08:00
memory.go refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08:00
mock_provider_test.go feat(fmt): Fix formatting 2026-02-19 22:05:15 +02:00
registry.go feat(session): integrate JSONL persistence into agent loop (#1170) 2026-03-10 15:14:09 +08:00
registry_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
steering.go feat(agent): steering (#1517) 2026-03-16 00:08:16 +08:00
steering_test.go feat(agent): steering (#1517) 2026-03-16 00:08:16 +08:00
thinking.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00
thinking_test.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00