panopticon-cli 0.4.6 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/scripts/heartbeat-hook +149 -0
- package/scripts/install-git-hooks.sh +66 -0
- package/scripts/notify-complete +79 -0
- package/scripts/postinstall.mjs +49 -0
- package/scripts/pre-tool-hook +60 -0
- package/scripts/record-cost-event.js +94 -0
- package/scripts/record-cost-event.ts +113 -0
- package/scripts/restart-dashboard.sh +59 -0
- package/scripts/setup-certs.sh +66 -0
- package/scripts/specialist-stop-hook +106 -0
- package/scripts/stop-hook +58 -0
- package/scripts/validate-merge.sh +119 -0
- package/skills/beads/README.md +120 -0
- package/skills/beads/SKILL.md +214 -0
- package/skills/beads/adr/0001-bd-prime-as-source-of-truth.md +59 -0
- package/skills/beads/resources/AGENTS.md +62 -0
- package/skills/beads/resources/ASYNC_GATES.md +168 -0
- package/skills/beads/resources/BOUNDARIES.md +469 -0
- package/skills/beads/resources/CHEMISTRY_PATTERNS.md +197 -0
- package/skills/beads/resources/CLI_REFERENCE.md +558 -0
- package/skills/beads/resources/DEPENDENCIES.md +747 -0
- package/skills/beads/resources/INTEGRATION_PATTERNS.md +407 -0
- package/skills/beads/resources/ISSUE_CREATION.md +139 -0
- package/skills/beads/resources/MOLECULES.md +354 -0
- package/skills/beads/resources/PATTERNS.md +341 -0
- package/skills/beads/resources/RESUMABILITY.md +207 -0
- package/skills/beads/resources/STATIC_DATA.md +54 -0
- package/skills/beads/resources/TROUBLESHOOTING.md +489 -0
- package/skills/beads/resources/WORKFLOWS.md +623 -0
- package/skills/beads/resources/WORKTREES.md +94 -0
- package/skills/beads-completion-check/SKILL.md +90 -0
- package/skills/beads-panopticon-guide/SKILL.md +171 -0
- package/skills/bug-fix/SKILL.md +32 -0
- package/skills/clear-writing/SKILL.md +105 -0
- package/skills/clear-writing/references/elements-of-style/01-introductory.md +3 -0
- package/skills/clear-writing/references/elements-of-style/02-elementary-rules-of-usage.md +214 -0
- package/skills/clear-writing/references/elements-of-style/03-elementary-principles-of-composition.md +398 -0
- package/skills/clear-writing/references/elements-of-style/04-a-few-matters-of-form.md +89 -0
- package/skills/clear-writing/references/elements-of-style/05-words-and-expressions-commonly-misused.md +342 -0
- package/skills/clear-writing/references/signs-of-ai-writing.md +901 -0
- package/skills/code-review/SKILL.md +37 -0
- package/skills/code-review-performance/SKILL.md +53 -0
- package/skills/code-review-security/SKILL.md +35 -0
- package/skills/dependency-update/SKILL.md +30 -0
- package/skills/feature-work/SKILL.md +39 -0
- package/skills/incident-response/SKILL.md +32 -0
- package/skills/knowledge-capture/SKILL.md +463 -0
- package/skills/onboard-codebase/SKILL.md +34 -0
- package/skills/opus-plan/SKILL.md +400 -0
- package/skills/pan-approve/SKILL.md +136 -0
- package/skills/pan-code-review/SKILL.md +249 -0
- package/skills/pan-config/SKILL.md +164 -0
- package/skills/pan-convoy-synthesis/SKILL.md +249 -0
- package/skills/pan-diagnose/SKILL.md +360 -0
- package/skills/pan-docker/SKILL.md +279 -0
- package/skills/pan-docs/SKILL.md +113 -0
- package/skills/pan-down/SKILL.md +434 -0
- package/skills/pan-health/SKILL.md +240 -0
- package/skills/pan-help/SKILL.md +237 -0
- package/skills/pan-install/SKILL.md +339 -0
- package/skills/pan-issue/SKILL.md +596 -0
- package/skills/pan-kill/SKILL.md +172 -0
- package/skills/pan-logs/SKILL.md +255 -0
- package/skills/pan-network/SKILL.md +320 -0
- package/skills/pan-oversee/SKILL.md +290 -0
- package/skills/pan-plan/SKILL.md +521 -0
- package/skills/pan-projects/SKILL.md +239 -0
- package/skills/pan-quickstart/SKILL.md +440 -0
- package/skills/pan-reload/SKILL.md +44 -0
- package/skills/pan-rescue/SKILL.md +271 -0
- package/skills/pan-restart/SKILL.md +53 -0
- package/skills/pan-setup/SKILL.md +478 -0
- package/skills/pan-skill-creator/SKILL.md +168 -0
- package/skills/pan-skill-creator/references/output-patterns.md +141 -0
- package/skills/pan-skill-creator/references/workflows.md +90 -0
- package/skills/pan-skill-creator/scripts/init_skill.py +176 -0
- package/skills/pan-status/SKILL.md +493 -0
- package/skills/pan-subagent-creator/SKILL.md +295 -0
- package/skills/pan-subagent-creator/assets/validate-readonly-query.sh +35 -0
- package/skills/pan-subagent-creator/references/example-agents.md +308 -0
- package/skills/pan-subagent-creator/scripts/init_agent.py +126 -0
- package/skills/pan-sync/SKILL.md +272 -0
- package/skills/pan-tell/SKILL.md +157 -0
- package/skills/pan-test-config/SKILL.md +208 -0
- package/skills/pan-tracker/SKILL.md +288 -0
- package/skills/pan-up/SKILL.md +458 -0
- package/skills/pan-workspace-config/SKILL.md +303 -0
- package/skills/refactor/SKILL.md +30 -0
- package/skills/refactor-radar/SKILL.md +475 -0
- package/skills/release/SKILL.md +25 -0
- package/skills/send-feedback-to-agent/SKILL.md +98 -0
- package/skills/session-health/SKILL.md +76 -0
- package/skills/session-health/scripts/check_sessions.py +166 -0
- package/skills/skill-creator/SKILL.md +92 -0
- package/skills/skill-creator/scripts/init_skill.py +152 -0
- package/skills/skill-creator/scripts/package_skill.py +123 -0
- package/skills/stitch-design-md/README.md +34 -0
- package/skills/stitch-design-md/SKILL.md +172 -0
- package/skills/stitch-design-md/examples/DESIGN.md +154 -0
- package/skills/stitch-react-components/README.md +36 -0
- package/skills/stitch-react-components/SKILL.md +47 -0
- package/skills/stitch-react-components/examples/gold-standard-card.tsx +80 -0
- package/skills/stitch-react-components/package-lock.json +231 -0
- package/skills/stitch-react-components/package.json +16 -0
- package/skills/stitch-react-components/resources/architecture-checklist.md +15 -0
- package/skills/stitch-react-components/resources/component-template.tsx +37 -0
- package/skills/stitch-react-components/resources/stitch-api-reference.md +14 -0
- package/skills/stitch-react-components/resources/style-guide.json +27 -0
- package/skills/stitch-react-components/scripts/fetch-stitch.sh +30 -0
- package/skills/stitch-react-components/scripts/validate.js +68 -0
- package/skills/stitch-setup/SKILL.md +94 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/work-complete/SKILL.md +79 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan-kill
|
|
3
|
+
description: Stop a running agent
|
|
4
|
+
triggers:
|
|
5
|
+
- pan kill
|
|
6
|
+
- stop agent
|
|
7
|
+
- kill agent
|
|
8
|
+
- terminate agent
|
|
9
|
+
- abort agent
|
|
10
|
+
allowed-tools:
|
|
11
|
+
- Bash
|
|
12
|
+
- Read
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Stop Agent
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
This skill guides you through gracefully stopping a running autonomous agent and cleaning up its resources.
|
|
20
|
+
|
|
21
|
+
## When to Use
|
|
22
|
+
|
|
23
|
+
- Agent is stuck or not making progress
|
|
24
|
+
- Need to reassign the work
|
|
25
|
+
- Agent completed work and should be stopped
|
|
26
|
+
- Emergency stop needed
|
|
27
|
+
- Freeing up system resources
|
|
28
|
+
|
|
29
|
+
## Quick Command
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Using pan CLI
|
|
33
|
+
pan work kill ISSUE-123
|
|
34
|
+
|
|
35
|
+
# Or directly via tmux
|
|
36
|
+
tmux kill-session -t agent-ISSUE-123
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
### 1. Check Agent Status First
|
|
42
|
+
|
|
43
|
+
Before killing, understand what the agent is doing:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# List running agents
|
|
47
|
+
pan work status
|
|
48
|
+
|
|
49
|
+
# Or via tmux
|
|
50
|
+
tmux list-sessions | grep agent
|
|
51
|
+
|
|
52
|
+
# See recent activity
|
|
53
|
+
tmux capture-pane -t agent-ISSUE-123 -p | tail -30
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 2. Graceful Shutdown (Recommended)
|
|
57
|
+
|
|
58
|
+
Give the agent a chance to save state:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Send shutdown message (ALWAYS use pan work tell, NOT raw tmux)
|
|
62
|
+
pan work tell ISSUE-123 "Please save your progress to STATE.md and stop working."
|
|
63
|
+
|
|
64
|
+
# Wait for acknowledgment
|
|
65
|
+
sleep 10
|
|
66
|
+
tmux capture-pane -t agent-ISSUE-123 -p | tail -10
|
|
67
|
+
|
|
68
|
+
# Then kill the session
|
|
69
|
+
tmux kill-session -t agent-ISSUE-123
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**WARNING:** DO NOT use raw `tmux send-keys` - agents often forget the Enter key. Always use `pan work tell` which handles this correctly.
|
|
73
|
+
|
|
74
|
+
### 3. Immediate Stop (If Needed)
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Kill immediately
|
|
78
|
+
tmux kill-session -t agent-ISSUE-123
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 4. Verify Stopped
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Confirm session is gone
|
|
85
|
+
tmux list-sessions | grep agent-ISSUE-123
|
|
86
|
+
|
|
87
|
+
# Should return nothing
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 5. Clean Up (Optional)
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# The workspace remains for inspection
|
|
94
|
+
ls -la /path/to/workspaces/ISSUE-123/
|
|
95
|
+
|
|
96
|
+
# View any uncommitted work
|
|
97
|
+
cd /path/to/workspaces/ISSUE-123
|
|
98
|
+
git status
|
|
99
|
+
git diff
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Kill All Agents
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Kill all agent sessions
|
|
106
|
+
tmux list-sessions -F "#{session_name}" | grep "^agent-" | xargs -I {} tmux kill-session -t {}
|
|
107
|
+
|
|
108
|
+
# Verify all gone
|
|
109
|
+
tmux list-sessions | grep agent
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Preserving Work
|
|
113
|
+
|
|
114
|
+
Before killing, you may want to preserve the agent's progress:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# Attach and review
|
|
118
|
+
tmux attach -t agent-ISSUE-123
|
|
119
|
+
# Ctrl+b d to detach
|
|
120
|
+
|
|
121
|
+
# Or capture the full session
|
|
122
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - > agent-output.txt
|
|
123
|
+
|
|
124
|
+
# Save workspace state
|
|
125
|
+
cd /path/to/workspaces/ISSUE-123
|
|
126
|
+
git stash # Save uncommitted changes
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## After Killing
|
|
130
|
+
|
|
131
|
+
Options for the work:
|
|
132
|
+
|
|
133
|
+
1. **Resume later** - Use `pan work issue ISSUE-123` to spawn a new agent
|
|
134
|
+
2. **Do it yourself** - Work in the existing workspace manually
|
|
135
|
+
3. **Abandon** - Remove the workspace if work is no longer needed
|
|
136
|
+
|
|
137
|
+
## Troubleshooting
|
|
138
|
+
|
|
139
|
+
**Session won't die:**
|
|
140
|
+
```bash
|
|
141
|
+
# Force kill with signal
|
|
142
|
+
tmux kill-session -t agent-ISSUE-123
|
|
143
|
+
|
|
144
|
+
# If that fails, find and kill the process
|
|
145
|
+
ps aux | grep "agent-ISSUE-123"
|
|
146
|
+
kill -9 <PID>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Multiple agents for same issue:**
|
|
150
|
+
```bash
|
|
151
|
+
# List all matching sessions
|
|
152
|
+
tmux list-sessions | grep ISSUE-123
|
|
153
|
+
|
|
154
|
+
# Kill each one
|
|
155
|
+
tmux kill-session -t agent-ISSUE-123
|
|
156
|
+
tmux kill-session -t agent-ISSUE-123-2
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**Can't find the session:**
|
|
160
|
+
```bash
|
|
161
|
+
# List ALL tmux sessions
|
|
162
|
+
tmux list-sessions
|
|
163
|
+
|
|
164
|
+
# Check if process is running outside tmux
|
|
165
|
+
ps aux | grep claude
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Related Skills
|
|
169
|
+
|
|
170
|
+
- `/pan:status` - Check agent status
|
|
171
|
+
- `/pan:tell` - Send message before killing
|
|
172
|
+
- `/pan:rescue` - Recover work from killed agents
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pan-logs
|
|
3
|
+
description: View and analyze agent and system logs
|
|
4
|
+
triggers:
|
|
5
|
+
- pan logs
|
|
6
|
+
- agent logs
|
|
7
|
+
- view logs
|
|
8
|
+
- check logs
|
|
9
|
+
- log analysis
|
|
10
|
+
allowed-tools:
|
|
11
|
+
- Bash
|
|
12
|
+
- Read
|
|
13
|
+
- Grep
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# View Logs
|
|
17
|
+
|
|
18
|
+
## Overview
|
|
19
|
+
|
|
20
|
+
This skill guides you through viewing, filtering, and analyzing logs from agents, the dashboard, and system components.
|
|
21
|
+
|
|
22
|
+
## When to Use
|
|
23
|
+
|
|
24
|
+
- Debugging agent behavior
|
|
25
|
+
- Troubleshooting errors
|
|
26
|
+
- Monitoring system activity
|
|
27
|
+
- Auditing agent actions
|
|
28
|
+
- Post-mortem analysis
|
|
29
|
+
|
|
30
|
+
## Quick Commands
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# View agent output
|
|
34
|
+
tmux capture-pane -t agent-ISSUE-123 -p | tail -100
|
|
35
|
+
|
|
36
|
+
# View dashboard logs
|
|
37
|
+
cat ~/.panopticon/logs/dashboard.log
|
|
38
|
+
|
|
39
|
+
# View all recent activity
|
|
40
|
+
pan logs
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Agent Logs
|
|
44
|
+
|
|
45
|
+
### Live Output
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Watch agent in real-time (Ctrl+b d to detach)
|
|
49
|
+
tmux attach -t agent-ISSUE-123
|
|
50
|
+
|
|
51
|
+
# Or stream output without attaching
|
|
52
|
+
while true; do
|
|
53
|
+
tmux capture-pane -t agent-ISSUE-123 -p | tail -1
|
|
54
|
+
sleep 1
|
|
55
|
+
done
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Capture Full Session
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Capture entire scrollback buffer
|
|
62
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - > agent-full-output.txt
|
|
63
|
+
|
|
64
|
+
# Capture with timestamps (requires configuration)
|
|
65
|
+
tmux capture-pane -t agent-ISSUE-123 -p -e > agent-output-with-escapes.txt
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Search Agent Output
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Search for errors
|
|
72
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - | grep -i error
|
|
73
|
+
|
|
74
|
+
# Search for tool calls
|
|
75
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - | grep -E "(Read|Write|Edit|Bash)"
|
|
76
|
+
|
|
77
|
+
# Search for specific patterns
|
|
78
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - | grep "TODO"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Multiple Agents
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Capture all agents
|
|
85
|
+
for session in $(tmux list-sessions -F "#{session_name}" | grep "^agent-"); do
|
|
86
|
+
echo "=== $session ===" > logs/${session}.txt
|
|
87
|
+
tmux capture-pane -t $session -p -S - >> logs/${session}.txt
|
|
88
|
+
done
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Dashboard Logs
|
|
92
|
+
|
|
93
|
+
### Server Logs
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# If running in foreground, logs go to stdout
|
|
97
|
+
# If running as background process:
|
|
98
|
+
cat ~/.panopticon/logs/server.log
|
|
99
|
+
|
|
100
|
+
# Tail live
|
|
101
|
+
tail -f ~/.panopticon/logs/server.log
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### API Requests
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Filter API calls
|
|
108
|
+
grep "POST\|GET\|PUT\|DELETE" ~/.panopticon/logs/server.log
|
|
109
|
+
|
|
110
|
+
# Filter by endpoint
|
|
111
|
+
grep "/api/agents" ~/.panopticon/logs/server.log
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## System Logs
|
|
115
|
+
|
|
116
|
+
### Panopticon Commands
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Command history (if configured)
|
|
120
|
+
cat ~/.panopticon/logs/commands.log
|
|
121
|
+
|
|
122
|
+
# Or check shell history
|
|
123
|
+
history | grep "pan "
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Docker Logs (if using)
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Traefik logs
|
|
130
|
+
docker logs traefik --tail 100
|
|
131
|
+
|
|
132
|
+
# All container logs
|
|
133
|
+
docker compose logs --tail 50
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Log Levels
|
|
137
|
+
|
|
138
|
+
When viewing logs, look for:
|
|
139
|
+
|
|
140
|
+
| Level | Indicates |
|
|
141
|
+
|-------|-----------|
|
|
142
|
+
| ERROR | Something failed, needs attention |
|
|
143
|
+
| WARN | Potential issues, may need monitoring |
|
|
144
|
+
| INFO | Normal operations |
|
|
145
|
+
| DEBUG | Detailed diagnostic info |
|
|
146
|
+
|
|
147
|
+
## Log Analysis
|
|
148
|
+
|
|
149
|
+
### Count Errors
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# Count errors per agent
|
|
153
|
+
for session in $(tmux list-sessions -F "#{session_name}" | grep "^agent-"); do
|
|
154
|
+
count=$(tmux capture-pane -t $session -p -S - | grep -ci error)
|
|
155
|
+
echo "$session: $count errors"
|
|
156
|
+
done
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Timeline of Actions
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
# If logs have timestamps, extract timeline
|
|
163
|
+
grep -E "^\[.*\]" agent-output.txt | head -50
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Tool Usage Analysis
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Count tool calls by type
|
|
170
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - | \
|
|
171
|
+
grep -oE "(Read|Write|Edit|Bash|Grep|Glob)" | \
|
|
172
|
+
sort | uniq -c | sort -rn
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Log Retention
|
|
176
|
+
|
|
177
|
+
### Save Important Logs
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# Create log archive for an issue
|
|
181
|
+
mkdir -p ~/.panopticon/archives/ISSUE-123
|
|
182
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - > ~/.panopticon/archives/ISSUE-123/agent.log
|
|
183
|
+
cp workspace/.planning/STATE.md ~/.panopticon/archives/ISSUE-123/
|
|
184
|
+
git -C workspace log --oneline -20 > ~/.panopticon/archives/ISSUE-123/commits.log
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Clean Old Logs
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Remove logs older than 7 days
|
|
191
|
+
find ~/.panopticon/logs -type f -mtime +7 -delete
|
|
192
|
+
|
|
193
|
+
# Archive and compress old logs
|
|
194
|
+
tar -czf logs-archive-$(date +%Y%m%d).tar.gz ~/.panopticon/logs/*.log
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Configuring Log Output
|
|
198
|
+
|
|
199
|
+
### Enable tmux Logging
|
|
200
|
+
|
|
201
|
+
Add to `~/.tmux.conf`:
|
|
202
|
+
```
|
|
203
|
+
# Automatic logging
|
|
204
|
+
set -g history-limit 50000
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Dashboard Logging
|
|
208
|
+
|
|
209
|
+
In dashboard config:
|
|
210
|
+
```javascript
|
|
211
|
+
// Enable verbose logging
|
|
212
|
+
LOG_LEVEL=debug
|
|
213
|
+
LOG_FILE=~/.panopticon/logs/dashboard.log
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Troubleshooting
|
|
217
|
+
|
|
218
|
+
### No Output from Agent
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
# Check if session exists
|
|
222
|
+
tmux has-session -t agent-ISSUE-123
|
|
223
|
+
|
|
224
|
+
# Try capturing with different parameters
|
|
225
|
+
tmux capture-pane -t agent-ISSUE-123 -p -J
|
|
226
|
+
|
|
227
|
+
# Check if there's a specific window/pane
|
|
228
|
+
tmux list-panes -t agent-ISSUE-123
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Logs Too Large
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
# Truncate log file
|
|
235
|
+
> ~/.panopticon/logs/server.log
|
|
236
|
+
|
|
237
|
+
# Rotate logs
|
|
238
|
+
mv server.log server.log.1
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Missing Timestamps
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
# Add timestamps when capturing
|
|
245
|
+
tmux capture-pane -t agent-ISSUE-123 -p -S - | \
|
|
246
|
+
while IFS= read -r line; do
|
|
247
|
+
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $line"
|
|
248
|
+
done
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Related Skills
|
|
252
|
+
|
|
253
|
+
- `/pan:diagnose` - Troubleshooting
|
|
254
|
+
- `/pan:health` - System health check
|
|
255
|
+
- `/pan:status` - Agent status
|