Commit graph

24 commits

Author SHA1 Message Date
Darkatse
3c4d7db117 feat(agent): add persistent session runtime
Add standalone sessions with a shared profile, continuous JSONL history, and persistent work/tmp directories. Reuse frontend preset assembly and the existing model/tool loop with explicit Chat and Session targets.

Validation: pnpm run check
2026-09-21 22:18:25 -04:00
Darkatse
b6d0bbe5ee feat(agent): add slash command for output revisions
Route /fix through the existing resume lifecycle and revise the last reply's selected swipe from its current saved text. Preserve manual edits, support command cancellation, and keep persistent metadata on the bound message.
2026-09-08 03:09:22 -04:00
Darkatse
a996402de7 docs(agent): simplify and consolidate framework documentation 2026-09-06 20:53:05 -04:00
Darkatse
e3fef1e80b feat(agent): add embedded script kit 2026-08-20 17:25:45 -04:00
Darkatse
f5a453fbcd refactor(agent): simplify skill script runtime boundary 2026-08-20 16:48:17 -04:00
matrix97
3e74e58c9a Merge remote-tracking branch 'origin/dev' into feature/quickjs-script-engine
# Conflicts:
#	src-tauri/Cargo.lock
2026-08-19 20:02:43 +08:00
matrix97
54158a9a90 docs: move SkillScript.md to docs/Agent/ and update references 2026-08-19 18:39:57 +08:00
Darkatse
605ae1b7fd refactor(agent): commit live workspace without checkpoints 2026-08-18 16:20:05 -04:00
matrix97
e6dc5345b4 docs(quickjs): add skill.run_script usage guide and update related docs 2026-08-19 00:05:19 +08:00
Darkatse
40159b499e refactor(agent): make canonical tool descriptors the source of truth 2026-08-04 20:07:20 -04:00
Darkatse
027582c792 refactor: remove obsolete phase terminology 2026-07-22 20:00:59 -04:00
Darkatse
097fa69096 feat(agent): add multi-agent handoff control transfer 2026-06-06 01:19:27 +08:00
Darkatse
3f59ceb792 refactor(agent): replace subagent workspace views with shared paths 2026-05-31 17:35:06 +08:00
Darkatse
c369a64d5f feat(agent): add concurrent background worker scheduling for SubAgents 2026-05-29 00:57:19 +08:00
Darkatse
4d9e210bb6 feat(agent): add first-stage return-mode SubAgent runtime 2026-05-28 02:30:29 +08:00
Darkatse
0fdfda1fc4 feat(agent): add independent preset/model prompt assembly pipeline 2026-05-27 20:30:36 +08:00
Darkatse
4fde5e4981 feat(agent): Add Agent Profile foundation
- add Agent Profile domain models, file repository, resolver, and management commands
- resolve profiles before run creation and persist resolved_profile.json in run inputs
- drive tools, skills, workspace roots, output artifacts, rounds, and budgets from profiles
- support agentSystemPrompt replacement and model-facing tool description overrides
- enforce profile tool policy and skill read budgets at runtime
2026-05-03 21:57:21 -04:00
Darkatse
f990f778c9 feat(agent): Add Agent Skill management and read tools
- Add file-backed Skill storage with import preview, install, export, source refs, and safe file reads
- Expose the Skill Host API and embedded Preset/Character Skill import prompts
- Register skill.list and skill.read in the Agent tool loop
- Cover archive roundtrips, source cleanup, symlink safety, and API contracts
- Refresh Agent docs around the current Skill capability boundary
2026-05-02 22:10:49 -04:00
Darkatse
30fb766f44 feat(agent): Add Responses provider state continuation
- Add run-scoped provider_state for Agent model calls, including
session tracking, message cursors, native continuation metadata, and
OpenAI Responses previous_response_id handling.

- Route OpenAI Responses through WebSocket sessions with incremental
Agent inputs, strip internal provider state from upstream/log payloads,
and persist per-round model responses for diagnostics.

- Document the current Custom OpenAI Responses and Agent provider_state
contracts, replacing stale phase-oriented notes with current behavior.
2026-05-02 02:42:38 -04:00
Darkatse
06cfe0115a feat(agent): Add Phase 2D canonical model gateway
- Route Agent model calls through canonical request and response IR
- Add ChatCompletionExchange for typed normalized responses without splitting legacy generation
- Preserve provider-native metadata for Claude, Gemini, Responses, and Interactions
- Harden tool call ID handling and provider-specific schema adaptation
- Update Agent architecture docs for Phase 2D contracts and follow-up work
2026-05-01 23:10:05 -04:00
Darkatse
d2420cc180 feat(agent): Add Phase 2C context read tools
Add read-only Agent tools for inspecting current chat context and
run-scoped World Info activation.

- Register chat_search, chat_read_messages, and worldinfo_read_activated
- Add message-indexed JSONL readers for character and group chats
- Return chat search snippets with stable message refs instead of full text
- Capture dry-run World Info activation in Agent prompt snapshots
- Keep World Info tool output focused on entry name, lorebook, and content
- Wire context tools through the existing registry, dispatcher, journal, and tool result flow
- Add coverage for chat message reads, chat search dispatch, and activated World Info reads
2026-04-28 23:41:21 -04:00
Darkatse
ba57373318 feat(agent): Add Phase 2B workspace read/write tools
- Add workspace list, read, write, patch, and finish tool support
- Track full-read state before applying precise workspace patches
- Persist tool arguments/results and checkpoint workspace mutations
- Return recoverable tool errors to the model for self-correction
- Raise agent tool loop limit to support longer multi-step runs
- Update Agent docs and Host ABI notes for the Phase 2B baseline
2026-04-26 23:34:42 -04:00
Darkatse
528b3b51c5 feat(agent): Add Phase 2A tool loop foundation
- Implement the minimal Rust-owned agent tool loop with workspace write and
finish tools, prompt snapshot execution, checkpoints, run events, and commit
preparation/finalization.

- Add the frontend dry-run prompt snapshot adapter and explicit agent start
entrypoints for legacy Generate integration and manual prompt snapshots. Keep
legacy Generate and ToolManager behavior unchanged outside agent mode.

- Document the Phase 2A contract, current limitations, workspace layout, event
flow, and manual smoke-test workflow.
2026-04-26 19:58:26 -04:00
Darkatse
f76139f961 feat(agent): Agent Phase 1 runtime foundation
- Introduce the Agent domain model, run/workspace/checkpoint repositories,
and a file-backed workspace store with event journaling.

- Wire the runtime service into Tauri commands and expose the frontend Agent
API for starting, observing, cancelling, reading, and committing runs.

- Derive workspaces from stable chat identity while keeping each run isolated,
and make unsupported Phase 1 paths fail fast.

- Document the Agent architecture, API contract, workspace model, LLM gateway,
tool/MCP boundaries, and implementation plan.
2026-04-26 14:28:08 -04:00