Repository navigation
Conversation
Ohualtex
force-pushed
the
feat/issue-592-custom-agents
branch
2 times, most recently
from
November 13, 2026 11:54
0408cb2 to
461b22a
Compare
…s-CFM#592) - Define CustomAgent in settings with custom_agents array - Implement custom_agent_save and custom_agent_forget with write-then-commit order - Protect custom agents and active integrations from stale save_settings snapshots - Add in-memory LRU-5 discovery pool with monotonic seq tracking - Support underscore in agent_id validation (^[a-z0-9_-]+$) in recap.rs - Separate explicit invalid tags from Claude Code attribution
… tracking (Louis-CFM#592) - Support underscore in agent validation regex (^[a-z0-9_-]+$) - Add resolvePill, availablePills, and sanitizeDeclared with custom agents support - Hydrate pinned custom agents on cold boot in State.loadIntegrationTasks - Add targeted visual teardown protection (pendingRemovals) for actively viewed cards - Protect concurrent multi-session agent execution in hooks - Expose custom agent commands in Bridge
…ement (Louis-CFM#592) - Add pin icon button to expanded island overview card - Add Custom Agents group to Settings -> Active Pills with color picker, pin toggle, and delete - Render discovered agents chips with add and dismiss actions - Add manual agent registration form with ID validation - Add 13-language localized strings in extra.json
…#592) - Test pure resolution, priority rules, and sanitization - Test cold-boot hydration and slot constraints - Test Stop 5.2s transition and teardown deferral on active cards - Test concurrent multi-session agent tracking
Ohualtex
force-pushed
the
feat/issue-592-custom-agents
branch
from
November 25, 2026 18:48
461b22a to
051f2cd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #592 (
Let third-party agents (coucou_agent) be declared in Active pills so their pill persists).Coucou already handles hook events from third-party agents, but previously any uncataloged agent pill only existed for the duration of its live session. Users could not persist external agents, pin them to the island when idle, or configure personal preferences (display name, custom color) across app restarts.
This PR introduces end-to-end custom agent support across the Rust backend, TypeScript island state, and the Settings window—preserving Coucou's existing minimalist theme, 4-slot limit, and multi-window consistency.
Key Capabilities
Persistent Registration & Cold Boot Rehydration:
coucou_agentor--agent <id>) can be registered with an ID (^[a-z0-9_-]+$, max 24 chars) and an optional custom display name.idletasks on cold boot (State.loadIntegrationTasks).resolvePill,sanitizeDeclared,availablePills) guarantees built-in catalog precedence while ensuring registered custom agents are not stripped.In-Island Pinning:
.icon-btn.pin-btn) to save and pin the agent directly without navigating to Settings.Active Pills Settings & LRU Discovery:
pillColors), display name, pin toggle, and delete action.[+ Add]and[✕ Dismiss]chips.Multi-Window Synchronization & Concurrency Safety:
custom_agent_saveandcustom_agent_forgetuse a strict write-then-commit sequence (disk write validated before in-memory commit).save_settingsprotectscustom_agentsand their associatedactive_integrations/pill_colorsfrom being overwritten by stale webview snapshots.seq) prevent stale discovery state updates across windows.Visual Teardown Protection & Concurrent Sessions:
pendingRemovals): When an unpinned agent session stops, the card is not abruptly destroyed while actively inspected in the expanded island. Removal cleanly defers until the island folds or focus changes.activeSessions); ending one session does not interrupt active sibling sessions.Localization:
extra.json(English, French, German, Spanish, Turkish, Chinese, Japanese, Korean, Hindi, etc.).Verification & Test Suite
cargo test --manifest-path windows/src-tauri/Cargo.toml).npm test), including 13 new comprehensive unit tests inwindows/tests/custom-agents.test.mjs.style.css), no foreign styles or external UI dependencies introduced.Closes #592.