Skip to content
Dashboard

How to build agents with filesystems and bash

Software Engineer

The best agent architecture is already sitting in your terminal

Link to headingHow agents read filesystems

Agent receives task
Explores filesystem (ls, find)
Searches for relevant content (grep, cat)
Sends context + request to LLM
Returns structured output

Link to headingWhy filesystems work for context management

Link to headingMapping your domain to files

/customers/
/cust_12345/
profile.json # High-level info
tickets/
ticket_001.md # Each ticket
ticket_002.md
conversations/
2024-01-15.txt # Daily conversation logs
preferences.json

/documents/
/uploaded/
contract_abc123.pdf
invoice_def456.pdf
/extracted/
contract_abc123.txt
invoice_def456.txt
/analysis/
contract_abc123/
summary.md
key_terms.json
risk_assessment.md
/templates/
contract_analysis_prompt.md
invoice_validation_rules.md

Link to headingCase study: Sales call summary agent

gong-calls/
demo-call-001-companyname-product-demo.md # Current call transcript
metadata.json # Call metadata
previous-calls/
demo-call-000-discovery-call.md # Prior discovery call
demo-call-intro-initial-call.md # Initial intro call
salesforce/
account.md # CRM account record
opportunity.md # Deal/opportunity details
contacts.md # Contact profiles
slack/
slack-channel.md # Slack history
research/
company-research.md # Company background
competitive-intel.md # Competitor analysis
playbooks/
sales-playbook.md # Internal sales playbook

# Explore what's available
$ ls sales-calls/
customer-call-123456-q4.md
metadata.json
# Read the metadata
$ cat sales-calls/metadata.json
# Look for objections
$ grep -i "concern\|worried\|issue\|problem" sales-calls/*.md

Link to headingWhy you should use bash and filesystems

Link to headingGet started

Get started with filesystem agents

The Sales Call Summary template shows the filesystem and bash pattern in production. Deploy it on Vercel and watch the agent explore files in real time.

Deploy the template