Skip to content
Agent Orchestration
Command

/logs

View Claude Nights Watch execution logs with filtering and follow options

BOOST
From plugin
nights-watch
3696 skills1 agent6 commands3 hooks
+1
Install
> /plugin marketplace add aniketkarne/claudenightswatch
> /plugin install claude-nights-watch@claude-nights-watch-marketplace

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/logs

Context preview

What this command does when you run it.

View Claude Nights Watch execution logs with filtering and follow options

Command definition

logs.md
description: View Claude Nights Watch execution logs with filtering and follow options
usage: /nights-watch logs [OPTIONS]
examples:
  - /nights-watch logs
  - /nights-watch logs -f
  - /nights-watch logs --follow

View Nights Watch Logs

Display execution logs from the Claude Nights Watch daemon, including all prompts sent to Claude, responses received, and status messages.

Usage

/nights-watch logs [OPTIONS]

Options

  • `-f`, `--follow` - Follow log file in real-time (like `tail -f`)
  • No options - Show last 50 lines of logs

What's Logged

Daemon Activity

  • Start/stop events
  • Configuration loaded
  • Monitoring status updates
  • Error messages and warnings

Task Execution

  • **Full Prompts**: Complete prompt sent to Claude (rules + task)
  • **Full Responses**: Everything Claude outputs during execution
  • **Timestamps**: Precise timing of all events
  • **Exit Codes**: Success/failure status

Example Log Entry

[2025-10-11 14:30:00] === Claude Nights Watch Daemon Started ===
[2025-10-11 14:30:00] PID: 12345
[2025-10-11 14:30:00] Task directory: /path/to/project
[2025-10-11 14:30:05] Task file found at /path/to/project/task.md
[2025-10-11 14:30:05] Rules file found at /path/to/project/rules.md
[2025-10-11 15:25:00] Time remaining: 2 minutes
[2025-10-11 15:27:00] Reset imminent (2 minutes), preparing to execute task...
[2025-10-11 15:28:00] Starting task execution from task.md...

=== PROMPT SENT TO CLAUDE ===
IMPORTANT RULES TO FOLLOW:
[... rules content ...]
---END OF RULES---

TASK TO EXECUTE:
[... task content ...]
---END OF TASK---
=== END OF PROMPT ===

=== CLAUDE RESPONSE START ===
[... Claude's complete response ...]
=== CLAUDE RESPONSE END ===

[2025-10-11 15:42:00] Task execution completed successfully

Examples

**View recent logs:**

/nights-watch logs

**Follow logs in real-time:**

/nights-watch logs -f

**Use interactive log viewer:**

# For more advanced viewing with filtering
${CLAUDE_PLUGIN_ROOT}/view-logs.sh

Implementation

${CLAUDE_PLUGIN_ROOT}/claude-nights-watch-manager.sh logs "$@"

Interactive Log Viewer

For advanced log viewing with filtering options, use the interactive viewer:

${CLAUDE_PLUGIN_ROOT}/view-logs.sh

Features:

  • Browse all log files
  • View full logs or last 50 lines
  • Filter to see only prompts
  • Filter to see only responses
  • Search for errors
  • Real-time following

Log Location

Logs are stored in:

${CLAUDE_PLUGIN_ROOT}/logs/claude-nights-watch-daemon.log

See Also

  • `/nights-watch status` - Check daemon status
  • `/nights-watch task` - View current task
Read more
Ships withnights-watch

🚀 NEW: Now available as a Claude Code Plugin! 🎉 Autonomous task execution system for Claude CLI that monitors your usage windows and executes predefined tasks automatically.

Get the whole plugin
Stats
369
Stars
45
Forks
Active
Maintenance
Shell
Language
MIT
License
2d ago
Last commit
1y ago
Created
3h ago
Added

Repo: aniketkarne/claudenightswatch

Other commands on nights-watch.