refactor(athena): remove type assertions and improve agent factories

- Replace 'as AgentConfig' casts with proper typing in agent.ts and council-member-agent.ts
- Extract permission into typed variable following Sisyphus pattern
- Add GPT/non-GPT model branching to council-member-agent
- Use parseModelString for schema validation instead of inline logic
- Add strict() to council and athena config schemas
- Fix athena restriction list (remove redundant athena_council deny)
- Add orchestrator logging for council execution
- Update system prompt to notification-based workflow

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
ismeth
2026-02-18 23:32:08 +01:00
committed by YeonGyu-Kim
parent bbb8fdcca7
commit 6266e70a4b
6 changed files with 43 additions and 23 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ const EXPLORATION_AGENT_DENYLIST: Record<string, boolean> = {
}
const ATHENA_RESTRICTIONS = permissionToToolBooleans(
createAgentToolRestrictions(["write", "edit", "athena_council"]).permission
createAgentToolRestrictions(["write", "edit"]).permission
)
const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {