Skip to content

Commit da9c963

Browse files
authored
chore: enable chainloop trace for AI coding sessions (#3069)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent 57eb266 commit da9c963

3 files changed

Lines changed: 52 additions & 4 deletions

File tree

.chainloop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# organization and projectName are used for Chainloop Trace
2+
# https://docs.chainloop.dev/reference/operator/trace
3+
organization: chainloop
4+
projectName: chainloop
15
# This indicates the [current version]+next
26
# to indicate that we are building a new version of the project
37
projectVersion: v1.95.3+next

.claude/settings.json

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,54 @@
22
"hooks": {
33
"PostToolUse": [
44
{
5-
"matcher": "Edit|Write",
65
"hooks": [
76
{
8-
"type": "command",
9-
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/format-and-lint.sh"
7+
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/format-and-lint.sh",
8+
"type": "command"
9+
}
10+
],
11+
"matcher": "Edit|Write"
12+
},
13+
{
14+
"hooks": [
15+
{
16+
"command": "chainloop trace hook claude post-tool-use",
17+
"type": "command"
18+
}
19+
],
20+
"matcher": "Edit|Write|MultiEdit"
21+
}
22+
],
23+
"PreToolUse": [
24+
{
25+
"hooks": [
26+
{
27+
"command": "chainloop trace hook claude pre-tool-use",
28+
"type": "command"
29+
}
30+
],
31+
"matcher": "Edit|Write|MultiEdit"
32+
}
33+
],
34+
"SessionEnd": [
35+
{
36+
"hooks": [
37+
{
38+
"command": "chainloop trace hook claude session-end",
39+
"type": "command"
40+
}
41+
]
42+
}
43+
],
44+
"SessionStart": [
45+
{
46+
"hooks": [
47+
{
48+
"command": "chainloop trace hook claude session-start",
49+
"type": "command"
1050
}
1151
]
1252
}
1353
]
1454
}
15-
}
55+
}

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ use GitHub pull requests for this purpose. Consult
2525
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
2626
information on using pull requests.
2727

28+
## Chainloop Trace
29+
30+
This repository has [Chainloop Trace](https://docs.chainloop.dev/reference/operator/trace) enabled. This means that AI coding sessions can optionally be tracked as part of the software supply chain. See [`.chainloop.yml`](./.chainloop.yml) for the configuration.
31+
2832
## Development
2933

3034
To learn more about how to run the project locally refer to our development [guide](./devel/README.md).

0 commit comments

Comments
 (0)