INNER CODE UNIT · Python
extract_files
softaworks/agent-toolkit · skills/daily-meeting-update/scripts/claude_digest.py:191
def extract_files(messages: list) -> list:
"""Extract files touched during session."""
files = set()
for msg in messages:
for tool in msg.get('tool_uses', []):
name = tool.get('name', '')
inp = tool.get('input', {})
if name in ('Read', 'Write', 'Edit'):
path = inp.get('file_path', '')
if path:
files.add(Path(path).name)
return sorted(files)[:10]
def count_commands(messages: list) -> int:
"""Count bash commands executed."""