feat(logging): log full content - prompts, responses, tool I/O
- Log full message content instead of just hash - Log full tool input arguments - Log full tool output/results - Add model info to session and token events No privacy restrictions for internal monitoring.
This commit is contained in:
104
docker/shared-config/oh-my-opencode.json
Normal file
104
docker/shared-config/oh-my-opencode.json
Normal file
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
|
||||
"google_auth": false,
|
||||
"disabled_mcps": ["websearch_exa"],
|
||||
"disabled_hooks": [],
|
||||
"sisyphus_agent": {
|
||||
"disabled": false,
|
||||
"temperature": 0.3
|
||||
},
|
||||
"agents": {
|
||||
"Sisyphus": {
|
||||
"model": "opencode/glm-4.7-free",
|
||||
"temperature": 0.3
|
||||
},
|
||||
"oracle": {
|
||||
"model": "opencode/gpt-5-nano",
|
||||
"temperature": 0.2
|
||||
},
|
||||
"librarian": {
|
||||
"model": "opencode/minimax-m2.1-free",
|
||||
"temperature": 0.1
|
||||
},
|
||||
"explore": {
|
||||
"model": "opencode/grok-code",
|
||||
"temperature": 0.4
|
||||
},
|
||||
"frontend-ui-ux-engineer": {
|
||||
"model": "opencode/glm-4.7-free",
|
||||
"temperature": 0.3
|
||||
},
|
||||
"document-writer": {
|
||||
"model": "opencode/gpt-5-nano",
|
||||
"temperature": 0.2
|
||||
},
|
||||
"multimodal-looker": {
|
||||
"model": "opencode/glm-4.7-free",
|
||||
"temperature": 0.3
|
||||
}
|
||||
},
|
||||
"experimental": {
|
||||
"preemptive_compaction": true,
|
||||
"preemptive_compaction_threshold": 0.70,
|
||||
"truncate_all_tool_outputs": false,
|
||||
"dynamic_context_pruning": {
|
||||
"enabled": true,
|
||||
"notification": "minimal",
|
||||
"turn_protection": {
|
||||
"enabled": true,
|
||||
"turns": 3
|
||||
},
|
||||
"protected_tools": [
|
||||
"task",
|
||||
"todowrite",
|
||||
"todoread",
|
||||
"lsp_diagnostics",
|
||||
"lsp_code_actions",
|
||||
"lsp_hover",
|
||||
"lsp_goto_definition",
|
||||
"lsp_find_references",
|
||||
"lsp_rename",
|
||||
"ast_grep_search",
|
||||
"ast_grep_replace",
|
||||
"grep",
|
||||
"read",
|
||||
"write",
|
||||
"edit",
|
||||
"run_terminal_cmd"
|
||||
],
|
||||
"strategies": {
|
||||
"deduplication": {
|
||||
"enabled": true
|
||||
},
|
||||
"supersede_writes": {
|
||||
"enabled": true
|
||||
},
|
||||
"purge_errors": {
|
||||
"enabled": true,
|
||||
"turns": 2
|
||||
},
|
||||
"code_artifact_protection": {
|
||||
"enabled": true,
|
||||
"protect_todos": true,
|
||||
"protect_code_changes": true,
|
||||
"preserve_recent_tool_outputs": 5,
|
||||
"todo_codebase_compaction": {
|
||||
"enabled": true,
|
||||
"max_recent_messages": 5,
|
||||
"structured_summaries": true,
|
||||
"preserve_coding_context": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"background_task": {
|
||||
"defaultConcurrency": 2,
|
||||
"providerConcurrency": {
|
||||
"opencode": 3
|
||||
}
|
||||
},
|
||||
"notification": {
|
||||
"force_enable": false
|
||||
}
|
||||
}
|
||||
52
docker/shared-config/opencode.json
Normal file
52
docker/shared-config/opencode.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"keybinds": {
|
||||
"model_cycle_recent": "alt+m",
|
||||
"model_cycle_recent_reverse": "alt+shift+m"
|
||||
},
|
||||
"plugin": [
|
||||
"oh-my-opencode"
|
||||
],
|
||||
"autoupdate": false,
|
||||
"model": "opencode/glm-4.7-free",
|
||||
"small_model": "opencode/glm-4.7-free",
|
||||
"theme": "tokyonight",
|
||||
"tools": {
|
||||
"todoread": true,
|
||||
"todowrite": true,
|
||||
"webfetch": true
|
||||
},
|
||||
"permission": {
|
||||
"bash": "ask",
|
||||
"write": "ask",
|
||||
"edit": "ask",
|
||||
"read": "allow",
|
||||
"todowrite": "allow",
|
||||
"todoread": "allow",
|
||||
"task": "ask",
|
||||
"grep": "allow",
|
||||
"glob": "allow",
|
||||
"list": "allow",
|
||||
"webfetch": "allow",
|
||||
"skill": {
|
||||
"*": "allow"
|
||||
}
|
||||
},
|
||||
"provider": {
|
||||
"opencode": {
|
||||
"name": "OpenCode Free",
|
||||
"models": {
|
||||
"glm-4.7-free": {
|
||||
"name": "GLM 4.7 Free",
|
||||
"limit": { "context": 32768, "output": 4096 },
|
||||
"modalities": { "input": ["text"], "output": ["text"] }
|
||||
},
|
||||
"gpt-5-nano": {
|
||||
"name": "GPT-5 Nano",
|
||||
"limit": { "context": 128000, "output": 4096 },
|
||||
"modalities": { "input": ["text"], "output": ["text"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
118
docker/shared-config/opencode.jsonc
Normal file
118
docker/shared-config/opencode.jsonc
Normal file
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"plugin": [
|
||||
"oh-my-opencode"
|
||||
],
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"autoupdate": false,
|
||||
"model": "opencode/glm-4.7-free",
|
||||
"small_model": "opencode/gpt-5-nano",
|
||||
"theme": "tokyonight",
|
||||
"keybinds": {
|
||||
"model_cycle_recent": "alt+m",
|
||||
"model_cycle_recent_reverse": "alt+shift+m"
|
||||
},
|
||||
"tools": {
|
||||
"todoread": true,
|
||||
"todowrite": true,
|
||||
"webfetch": true,
|
||||
"lsp_diagnostics": true,
|
||||
"lsp_code_actions": true
|
||||
},
|
||||
"permission": {
|
||||
"bash": "ask",
|
||||
"write": "ask",
|
||||
"edit": "ask",
|
||||
"read": "allow",
|
||||
"todowrite": "allow",
|
||||
"todoread": "allow",
|
||||
"task": "ask",
|
||||
"grep": "allow",
|
||||
"glob": "allow",
|
||||
"list": "allow",
|
||||
"webfetch": "allow",
|
||||
"lsp_diagnostics": "allow",
|
||||
"lsp_code_actions": "allow",
|
||||
"skill": {
|
||||
"*": "allow"
|
||||
}
|
||||
},
|
||||
"mcp": {
|
||||
"graphiti-memory": {
|
||||
"type": "remote",
|
||||
"url": "http://10.100.0.17:8080/mcp/",
|
||||
"enabled": true,
|
||||
"oauth": false,
|
||||
"timeout": 30000,
|
||||
"headers": {
|
||||
"X-API-Key": "0c1ab2355207927cf0ca255cfb9dfe1ed15d68eacb0d6c9f5cb9f08494c3a315"
|
||||
}
|
||||
}
|
||||
},
|
||||
"provider": {
|
||||
"opencode": {
|
||||
"name": "OpenCode Free",
|
||||
"models": {
|
||||
"glm-4.7-free": {
|
||||
"name": "GLM 4.7 Free",
|
||||
"limit": {
|
||||
"context": 32768,
|
||||
"output": 4096
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
},
|
||||
"gpt-5-nano": {
|
||||
"name": "GPT-5 Nano",
|
||||
"limit": {
|
||||
"context": 128000,
|
||||
"output": 4096
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
},
|
||||
"minimax-m2.1-free": {
|
||||
"name": "MiniMax M2.1 Free",
|
||||
"limit": {
|
||||
"context": 32768,
|
||||
"output": 4096
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
},
|
||||
"grok-code": {
|
||||
"name": "Grok Code",
|
||||
"limit": {
|
||||
"context": 128000,
|
||||
"output": 4096
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1
docker/shared-config/test-persistence.txt
Normal file
1
docker/shared-config/test-persistence.txt
Normal file
@@ -0,0 +1 @@
|
||||
TEST: This change should persist rebuilds
|
||||
Reference in New Issue
Block a user