Your tinkering has borne you a faithful companion, a Steel Defender. It's friendly to you and your companions, and it obeys your commands. See its game statistics in the Steel Defender stat block, which uses your Proficiency Bonus (PB) in several places. You determine the creature's appearance and whether it has two legs or four; your choice has no effect on its game statistics.
In combat, the Steel Defender shares your initiative count, but it takes its turn immediately after yours. It can move and use its reaction on its own, but the only action it takes on its turn is the Dodge action, unless you take a bonus action on your turn to command it to take another action. That action can be one in its stat block or some other action. If you are Incapacitated, the defender can take any action of its choice, not just Dodge.
If the Mending spell is cast on it, it regains 2D6 hit points. If it has died within the last hour, you can use your Smith's Tools as an action to revive it, provided you are within 5 ft of it and you expend a spell slot of 1st level or higher. The Steel Defender returns to life after 1 minute with all its hit points restored.
At the end of a long rest, you can create a new Steel Defender if you have Smith's Tools with you. If you already have a defender from this feature, the first one immediately perishes. The Steel Defender also perishes if you die.
Steel Defender
Medium Construct
Armor Class: 12 + your INT modifier (Minimum 1) (Natural Armor)
Hit Points: 5 + 5 times your Artificer level (The Steel Defender has a number of Hit Dice [D8s] equal to your Artificer level)
Speed: 40 ft
Damage Immunities: Poison
Condition Immunities: Charmed, Exhaustion, Poisoned
Senses: Darkvision 60 ft, Passive Perception 10 + (PB x 2)
Languages: Understands the languages you speak
Proficiency Bonus (PB): equals your bonus
Vigilant: The Steel Defender can't be Surprised.
Steel Bond: Add your Proficiency Bonus to any ability check or saving throw the Steel Defender makes.
Actions
Force-Empowered Rend: Steel Defender makes a melee attack using your spell attack modifier to hit, reach 5 ft, one target you can see. On a hit it deals 1D8 + PB Force damage.
Repair (3/Long rest). The magical mechanisms inside the Steel Defender restore 2D8 + PB hit points to itself or to one Construct or object within 5 ft of it.
Reactions
Deflect Attack: The Steel Defender imposes disadvantage on the attack roll of one creature it can see that is within 5 ft of it, provided the attack roll is against a creature other than the Steel Defender.