Observed since 20 Oct, 21:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Universal agent context tracking. Know what codebase the agent is working in.
Universal agent context tracking.
When an AI agent works on code, trace records which project it's in. Any tool — MCP servers, hooks, scripts — can read ~/.trace/active_project to know the current context.
pip install trace
A Claude Code hook fires on every file operation (Read, Edit, Write). It extracts the git root from the file path and writes it to ~/.trace/active_project. That's it.
Any tool can read this file. No coordination needed.
from trace_pkg import active_project
project = active_project() # Path("/Users/you/your-project") or None
trace # print active project
trace set . # manually set active project
Add to ~/.claude/settings.json:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Read|Edit|Write|Glob|Grep",
"hooks": [
{
"type": "command",
"command": "trace-hook",
"async": true
}
]
}
]
}
}
MCP servers need to know what project the agent is working in. Without trace, each server has to guess from cwd, env vars, or explicit configuration. With trace, there's one source of truth that updates automatically.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 17 Mar 2026 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:018d10251befd12d2255aa4284d2f611db5e7a9ac98db0f5672ba0fcd018b76b